RE: unit test

2011-10-04 Thread Robert Scholte

Hi,

 

http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
Just create any missing folder if you need it.

 

-Robert


 Date: Tue, 4 Oct 2011 09:23:56 -0700
 From: amy...@live.fr
 To: dev@maven.apache.org
 Subject: unit test
 
 Hi community,
 This is my first time working with maven, I wanna develop a web application;
 so i used maven-webapp archetype now i wanna add my unit tests using junit
 but i'm not finding the src/test/java ,can i create it under Java
 Resources folder.
 Thank u in advance
 
 
 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/unit-test-tp4869331p4869331.html
 Sent from the Maven Developers mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
 For additional commands, e-mail: dev-h...@maven.apache.org
 
-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



RE: unit test

2011-10-04 Thread Amiragl
Thank u for quick response , i've another question i'll use jpa should i
create a submodule for this?
Thank u in advance 

--
View this message in context: 
http://maven.40175.n5.nabble.com/unit-test-tp4869331p4869564.html
Sent from the Maven Developers mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



RE: unit test

2011-10-04 Thread Robert Scholte

Please don't confuse this mailing list with a superb version of Google.


http://lmgtfy.com/?q=maven+jpa 

probably not.

 

-Robert

 

btw. the dev@ is used for maven development, next time use users@ 


 Date: Tue, 4 Oct 2011 10:15:49 -0700
 From: amy...@live.fr
 To: dev@maven.apache.org
 Subject: RE: unit test
 
 Thank u for quick response , i've another question i'll use jpa should i
 create a submodule for this?
 Thank u in advance 
 
 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/unit-test-tp4869331p4869564.html
 Sent from the Maven Developers mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
 For additional commands, e-mail: dev-h...@maven.apache.org
 
-
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



Re: Unit Test inheritance in a multi-pom project?

2007-03-24 Thread Jim Bethancourt

Hi GreJ,
I believe that is correct.  A mvn install must be done in order to make the
test jars available on the classpath to compile against for the inherited
tests.  I agree that it is unfortunate that an install must be done in order
to run the tests.

Maven developers,
Should I submit a feature request on Jira?  It would be something to the
effect like Test jars / test-classes source directories need to be
available on the classpath within the reactor during the test-compile phase
so users don't need to perform an install in order to compile against code
in other test-jars / test-classes source directories  How's that sound?

It would also be handy to have transitive dependency management of the
test-jars, but that should probably be for another feature request.

Thanks,
Jim

On 3/23/07, GreJ [EMAIL PROTECTED] wrote:



Hi,

Thanks for your answer,

I do several tests, and in fact it doesn't work without install. The test
jar really needed to be installed in the local repository(?).

This is my project layout

-Root
+sslServer
+client

client must use the test-jar generated by the sslServer module. So here is
the dependencies of the client module :
dependencies
dependency
artifactIdsslServer/artifactId
groupIdorg.inpres/groupId
version1.0/version
/dependency
dependency
groupIdorg.inpres/groupId
artifactIdaw-sslServer/artifactId
version1.0/version
typetest-jar/type
/dependency
/dependencies

There is no problem to resolvethe dependency to the org.inpres:sslServer.
By
compile, or package, there is no problem. But the test-jar ist not found
while no install is called.
It's pitty to need to run the install and so to install all the jars if we
just need to compile the tests :(
Is there a praticular reason that the sslServer dependency is found by
compile or packaging, but not the tests?
My aim is just to compile or run the tests, where the tests of the client
need classes from the sslServer...
--
View this message in context:
http://www.nabble.com/Unit-Test-inheritance-in-a-multi-pom-project--tf3442738s177.html#a9644535
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Unit Test inheritance in a multi-pom project?

2007-03-21 Thread Jason van Zyl


On 21 Mar 07, at 3:17 PM 21 Mar 07, Jim Bethancourt wrote:


Hi all,
I'm working on a multi-pom project and would like to inherit from  
classes in

the test hierarchy across modules in the project, and I'm listing each
module as a dependency in the parent pom as well.  I've done several
experiments to see if this is possible and have had no success.   
What would

be the appropriate way to enable inheritance of classes in the test
hierarchy across modules during the test-compile phase of a multi-pom
project?  Is such a feature available right now for Maven 2, or  
should I

submit a JIRA request?


I think this is what you're looking for:

http://maven.apache.org/guides/mini/guide-attached-tests.html



Thanks,
Jim



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unit Test inheritance in a multi-pom project?

2007-03-21 Thread Jim Bethancourt

Cool!  That looks exactly like what I need.  I'll give it a go. ;-)

Thanks,
Jim

On 3/21/07, Jason van Zyl [EMAIL PROTECTED] wrote:



On 21 Mar 07, at 3:17 PM 21 Mar 07, Jim Bethancourt wrote:

 Hi all,
 I'm working on a multi-pom project and would like to inherit from
 classes in
 the test hierarchy across modules in the project, and I'm listing each
 module as a dependency in the parent pom as well.  I've done several
 experiments to see if this is possible and have had no success.
 What would
 be the appropriate way to enable inheritance of classes in the test
 hierarchy across modules during the test-compile phase of a multi-pom
 project?  Is such a feature available right now for Maven 2, or
 should I
 submit a JIRA request?

I think this is what you're looking for:

http://maven.apache.org/guides/mini/guide-attached-tests.html


 Thanks,
 Jim


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Unit Test inheritance in a multi-pom project?

2007-03-21 Thread Jim Bethancourt

Yup!  That did the trick.

Thanks Jason!
Jim

On 3/21/07, Jim Bethancourt [EMAIL PROTECTED] wrote:


Cool!  That looks exactly like what I need.  I'll give it a go. ;-)

Thanks,
Jim

On 3/21/07, Jason van Zyl  [EMAIL PROTECTED] wrote:


 On 21 Mar 07, at 3:17 PM 21 Mar 07, Jim Bethancourt wrote:

  Hi all,
  I'm working on a multi-pom project and would like to inherit from
  classes in
  the test hierarchy across modules in the project, and I'm listing each
  module as a dependency in the parent pom as well.  I've done several
  experiments to see if this is possible and have had no success.
  What would
  be the appropriate way to enable inheritance of classes in the test
  hierarchy across modules during the test-compile phase of a multi-pom
  project?  Is such a feature available right now for Maven 2, or
  should I
  submit a JIRA request?

 I think this is what you're looking for:

 http://maven.apache.org/guides/mini/guide-attached-tests.html

 
  Thanks,
  Jim


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]