You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Benjamin Graf <be...@gmx.net> on 2020/04/22 12:31:30 UTC

Status of unit tests in module org.netbeans.modules.websvc.editor.hints

Hi everybody,

I try to add a new test case to a unit test in
org.netbeans.modules.websvc.editor.hints but the whole test suite
actually fails with an exception.

Testcase: testRPCStyleWrappedParameterStyle(org.netbeans.modules.websvc.editor.hints.WSHintsTest):    Caused an ERROR
EnvironmentFactory missing
java.lang.UnsupportedOperationException: EnvironmentFactory missing
    at org.netbeans.modules.parsing.impl.Utilities.getEnvFactory(Utilities.java:209)
    at org.netbeans.modules.parsing.impl.Utilities.createEnvironment(Utilities.java:216)
    at org.netbeans.modules.parsing.api.Source.<init>(Source.java:530)
    at org.netbeans.modules.parsing.api.Source.<init>(Source.java:99)
    at org.netbeans.modules.parsing.api.Source$MySourceAccessor.create(Source.java:868)
    at org.netbeans.modules.parsing.implspi.SourceFactory.newSource(SourceFactory.java:66)
    at org.netbeans.modules.parsing.implspi.SourceFactory$DefaultSourceFactory.createSource(SourceFactory.java:84)
    at org.netbeans.modules.parsing.api.Source._get(Source.java:539)
    at org.netbeans.modules.parsing.api.Source.create(Source.java:120)
    at org.netbeans.api.java.source.JavaSource.<init>(JavaSource.java:375)
    at org.netbeans.api.java.source.JavaSource._create(JavaSource.java:193)
    at org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:318)
    at org.netbeans.modules.websvc.editor.hints.WSHintsTestBase.testRule(WSHintsTestBase.java:102)
    at org.netbeans.modules.websvc.editor.hints.WSHintsTest.testRPCStyleWrappedParameterStyle(WSHintsTest.java:89)
    at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
    at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:460)
    at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:386)
    at java.lang.Thread.run(Thread.java:748)

Does anybody know if they actually are runable at all?

Regards

Benjamin


Re: Status of unit tests in module org.netbeans.modules.websvc.editor.hints

Posted by Benjamin Graf <be...@gmx.net>.
Good idea +1

I'm starting with websvc.editor.hints solved with
https://github.com/apache/netbeans/pull/2074

On 23.04.2020 16:04, Eirik Bakke wrote:
> As people resurrect old module unit test suites and make them pass, it would be lovely to get them running as part of the automated Travis build. I assume it's a gradual process.
>
> -- Eirik
>
> -----Original Message-----
> From: Benjamin Graf <be...@gmx.net> 
> Sent: Thursday, April 23, 2020 2:57 AM
> To: dev@netbeans.apache.org
> Subject: Re: Status of unit tests in module org.netbeans.modules.websvc.editor.hints
>
> Hi together,
>
> I finally got it working. One test case really seems to be broken!
>
> Several additional modules are needed for unit testing (parsing.nb,
> java.source.base)
>
> And yes, also nb-javac is still needed! ;-)
>
> Regards
>
> Benjamin
>
> On 22.04.2020 15:08, Hector Espert wrote:
>> I don't know if they are runnable, probably, not.
>>
>> A piece of advice, check if this folder exists:
>> https://github.com/apache/netbeans/blob/4d61753a0600bb555a4fea5a1f0b29
>> f1b909dd5b/enterprise/websvc.editor.hints/nbproject/project.properties
>> #L20
>>
>> El mié., 22 abr. 2020 a las 14:31, Benjamin Graf 
>> (<be...@gmx.net>)
>> escribió:
>>
>>> Hi everybody,
>>>
>>> I try to add a new test case to a unit test in 
>>> org.netbeans.modules.websvc.editor.hints but the whole test suite 
>>> actually fails with an exception.
>>>
>>> Testcase: testRPCStyleWrappedParameterStyle(org.netbeans.modules.websvc.editor.hints.WSHintsTest):    Caused an ERROR
>>> EnvironmentFactory missing
>>> java.lang.UnsupportedOperationException: EnvironmentFactory missing
>>>     at org.netbeans.modules.parsing.impl.Utilities.getEnvFactory(Utilities.java:209)
>>>     at org.netbeans.modules.parsing.impl.Utilities.createEnvironment(Utilities.java:216)
>>>     at org.netbeans.modules.parsing.api.Source.<init>(Source.java:530)
>>>     at org.netbeans.modules.parsing.api.Source.<init>(Source.java:99)
>>>     at org.netbeans.modules.parsing.api.Source$MySourceAccessor.create(Source.java:868)
>>>     at org.netbeans.modules.parsing.implspi.SourceFactory.newSource(SourceFactory.java:66)
>>>     at org.netbeans.modules.parsing.implspi.SourceFactory$DefaultSourceFactory.createSource(SourceFactory.java:84)
>>>     at org.netbeans.modules.parsing.api.Source._get(Source.java:539)
>>>     at org.netbeans.modules.parsing.api.Source.create(Source.java:120)
>>>     at org.netbeans.api.java.source.JavaSource.<init>(JavaSource.java:375)
>>>     at org.netbeans.api.java.source.JavaSource._create(JavaSource.java:193)
>>>     at org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:318)
>>>     at org.netbeans.modules.websvc.editor.hints.WSHintsTestBase.testRule(WSHintsTestBase.java:102)
>>>     at org.netbeans.modules.websvc.editor.hints.WSHintsTest.testRPCStyleWrappedParameterStyle(WSHintsTest.java:89)
>>>     at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
>>>     at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:460)
>>>     at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:386)
>>>     at java.lang.Thread.run(Thread.java:748)
>>>
>>>
>>> Does anybody know if they actually are runable at all?
>>>
>>> Regards
>>>
>>> Benjamin
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>

RE: Status of unit tests in module org.netbeans.modules.websvc.editor.hints

Posted by Eirik Bakke <eb...@ultorg.com>.
As people resurrect old module unit test suites and make them pass, it would be lovely to get them running as part of the automated Travis build. I assume it's a gradual process.

-- Eirik

-----Original Message-----
From: Benjamin Graf <be...@gmx.net> 
Sent: Thursday, April 23, 2020 2:57 AM
To: dev@netbeans.apache.org
Subject: Re: Status of unit tests in module org.netbeans.modules.websvc.editor.hints

Hi together,

I finally got it working. One test case really seems to be broken!

Several additional modules are needed for unit testing (parsing.nb,
java.source.base)

And yes, also nb-javac is still needed! ;-)

Regards

Benjamin

On 22.04.2020 15:08, Hector Espert wrote:
> I don't know if they are runnable, probably, not.
>
> A piece of advice, check if this folder exists:
> https://github.com/apache/netbeans/blob/4d61753a0600bb555a4fea5a1f0b29
> f1b909dd5b/enterprise/websvc.editor.hints/nbproject/project.properties
> #L20
>
> El mié., 22 abr. 2020 a las 14:31, Benjamin Graf 
> (<be...@gmx.net>)
> escribió:
>
>> Hi everybody,
>>
>> I try to add a new test case to a unit test in 
>> org.netbeans.modules.websvc.editor.hints but the whole test suite 
>> actually fails with an exception.
>>
>> Testcase: testRPCStyleWrappedParameterStyle(org.netbeans.modules.websvc.editor.hints.WSHintsTest):    Caused an ERROR
>> EnvironmentFactory missing
>> java.lang.UnsupportedOperationException: EnvironmentFactory missing
>>     at org.netbeans.modules.parsing.impl.Utilities.getEnvFactory(Utilities.java:209)
>>     at org.netbeans.modules.parsing.impl.Utilities.createEnvironment(Utilities.java:216)
>>     at org.netbeans.modules.parsing.api.Source.<init>(Source.java:530)
>>     at org.netbeans.modules.parsing.api.Source.<init>(Source.java:99)
>>     at org.netbeans.modules.parsing.api.Source$MySourceAccessor.create(Source.java:868)
>>     at org.netbeans.modules.parsing.implspi.SourceFactory.newSource(SourceFactory.java:66)
>>     at org.netbeans.modules.parsing.implspi.SourceFactory$DefaultSourceFactory.createSource(SourceFactory.java:84)
>>     at org.netbeans.modules.parsing.api.Source._get(Source.java:539)
>>     at org.netbeans.modules.parsing.api.Source.create(Source.java:120)
>>     at org.netbeans.api.java.source.JavaSource.<init>(JavaSource.java:375)
>>     at org.netbeans.api.java.source.JavaSource._create(JavaSource.java:193)
>>     at org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:318)
>>     at org.netbeans.modules.websvc.editor.hints.WSHintsTestBase.testRule(WSHintsTestBase.java:102)
>>     at org.netbeans.modules.websvc.editor.hints.WSHintsTest.testRPCStyleWrappedParameterStyle(WSHintsTest.java:89)
>>     at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
>>     at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:460)
>>     at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:386)
>>     at java.lang.Thread.run(Thread.java:748)
>>
>>
>> Does anybody know if they actually are runable at all?
>>
>> Regards
>>
>> Benjamin
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: Status of unit tests in module org.netbeans.modules.websvc.editor.hints

Posted by Benjamin Graf <be...@gmx.net>.
Hi together,

I finally got it working. One test case really seems to be broken!

Several additional modules are needed for unit testing (parsing.nb,
java.source.base)

And yes, also nb-javac is still needed! ;-)

Regards

Benjamin

On 22.04.2020 15:08, Hector Espert wrote:
> I don't know if they are runnable, probably, not.
>
> A piece of advice, check if this folder exists:
> https://github.com/apache/netbeans/blob/4d61753a0600bb555a4fea5a1f0b29f1b909dd5b/enterprise/websvc.editor.hints/nbproject/project.properties#L20
>
> El mié., 22 abr. 2020 a las 14:31, Benjamin Graf (<be...@gmx.net>)
> escribió:
>
>> Hi everybody,
>>
>> I try to add a new test case to a unit test in
>> org.netbeans.modules.websvc.editor.hints but the whole test suite actually
>> fails with an exception.
>>
>> Testcase: testRPCStyleWrappedParameterStyle(org.netbeans.modules.websvc.editor.hints.WSHintsTest):    Caused an ERROR
>> EnvironmentFactory missing
>> java.lang.UnsupportedOperationException: EnvironmentFactory missing
>>     at org.netbeans.modules.parsing.impl.Utilities.getEnvFactory(Utilities.java:209)
>>     at org.netbeans.modules.parsing.impl.Utilities.createEnvironment(Utilities.java:216)
>>     at org.netbeans.modules.parsing.api.Source.<init>(Source.java:530)
>>     at org.netbeans.modules.parsing.api.Source.<init>(Source.java:99)
>>     at org.netbeans.modules.parsing.api.Source$MySourceAccessor.create(Source.java:868)
>>     at org.netbeans.modules.parsing.implspi.SourceFactory.newSource(SourceFactory.java:66)
>>     at org.netbeans.modules.parsing.implspi.SourceFactory$DefaultSourceFactory.createSource(SourceFactory.java:84)
>>     at org.netbeans.modules.parsing.api.Source._get(Source.java:539)
>>     at org.netbeans.modules.parsing.api.Source.create(Source.java:120)
>>     at org.netbeans.api.java.source.JavaSource.<init>(JavaSource.java:375)
>>     at org.netbeans.api.java.source.JavaSource._create(JavaSource.java:193)
>>     at org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:318)
>>     at org.netbeans.modules.websvc.editor.hints.WSHintsTestBase.testRule(WSHintsTestBase.java:102)
>>     at org.netbeans.modules.websvc.editor.hints.WSHintsTest.testRPCStyleWrappedParameterStyle(WSHintsTest.java:89)
>>     at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
>>     at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:460)
>>     at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:386)
>>     at java.lang.Thread.run(Thread.java:748)
>>
>>
>> Does anybody know if they actually are runable at all?
>>
>> Regards
>>
>> Benjamin
>>


Re: Status of unit tests in module org.netbeans.modules.websvc.editor.hints

Posted by Hector Espert <he...@gmail.com>.
I don't know if they are runnable, probably, not.

A piece of advice, check if this folder exists:
https://github.com/apache/netbeans/blob/4d61753a0600bb555a4fea5a1f0b29f1b909dd5b/enterprise/websvc.editor.hints/nbproject/project.properties#L20

El mié., 22 abr. 2020 a las 14:31, Benjamin Graf (<be...@gmx.net>)
escribió:

> Hi everybody,
>
> I try to add a new test case to a unit test in
> org.netbeans.modules.websvc.editor.hints but the whole test suite actually
> fails with an exception.
>
> Testcase: testRPCStyleWrappedParameterStyle(org.netbeans.modules.websvc.editor.hints.WSHintsTest):    Caused an ERROR
> EnvironmentFactory missing
> java.lang.UnsupportedOperationException: EnvironmentFactory missing
>     at org.netbeans.modules.parsing.impl.Utilities.getEnvFactory(Utilities.java:209)
>     at org.netbeans.modules.parsing.impl.Utilities.createEnvironment(Utilities.java:216)
>     at org.netbeans.modules.parsing.api.Source.<init>(Source.java:530)
>     at org.netbeans.modules.parsing.api.Source.<init>(Source.java:99)
>     at org.netbeans.modules.parsing.api.Source$MySourceAccessor.create(Source.java:868)
>     at org.netbeans.modules.parsing.implspi.SourceFactory.newSource(SourceFactory.java:66)
>     at org.netbeans.modules.parsing.implspi.SourceFactory$DefaultSourceFactory.createSource(SourceFactory.java:84)
>     at org.netbeans.modules.parsing.api.Source._get(Source.java:539)
>     at org.netbeans.modules.parsing.api.Source.create(Source.java:120)
>     at org.netbeans.api.java.source.JavaSource.<init>(JavaSource.java:375)
>     at org.netbeans.api.java.source.JavaSource._create(JavaSource.java:193)
>     at org.netbeans.api.java.source.JavaSource.forFileObject(JavaSource.java:318)
>     at org.netbeans.modules.websvc.editor.hints.WSHintsTestBase.testRule(WSHintsTestBase.java:102)
>     at org.netbeans.modules.websvc.editor.hints.WSHintsTest.testRPCStyleWrappedParameterStyle(WSHintsTest.java:89)
>     at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
>     at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:460)
>     at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:386)
>     at java.lang.Thread.run(Thread.java:748)
>
>
> Does anybody know if they actually are runable at all?
>
> Regards
>
> Benjamin
>