NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

NB + Maven + Embedded Glassfish Plugin + JUnit

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
_Dennis_



Joined: 10 Mar 2011
Posts: 2

PostPosted: Thu Mar 10, 2011 8:55 am    Post subject: NB + Maven + Embedded Glassfish Plugin + JUnit Reply with quote

Hello everybody,

i'm using the embedded glassfish 3.1 with JUnit4 for testing. The embedded glassfish should be started by the maven-embedded-glassfish-plugin as described here.

How does Netbeans 6.9.1 run the Unittest if I'm opening a Testclass and running the test by clicking CTRL+F6? Does NB respect the Maven Lifecycle?

Reason: I'm trying to test with NB but the testclass can't lookup jndi ressources, because the embedded glassfish has not been started.

Best regards

Dennis
Back to top
_Dennis_



Joined: 10 Mar 2011
Posts: 2

PostPosted: Thu Mar 10, 2011 9:27 am    Post subject: Reply with quote

After some testing, I expect that NB runs
Code:
mvn test-compile
and then runs the JunitTest without maven. Can anybody confirm that?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo