Re: Maven, junit and Mock Classes

2007-11-21 Thread Jan Torben Heuer
Antonio Petrelli wrote: Mock classes can stay in the src/test/java directory. What's the problem? That directory is not available as dependency. Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: Re: Maven, junit and Mock Classes

2007-11-21 Thread Siegmann Daniel, NY
: Wednesday, November 21, 2007 11:06 AM To: users@maven.apache.org Subject: Re: Maven, junit and Mock Classes Antonio Petrelli wrote: Mock classes can stay in the src/test/java directory. What's the problem? That directory is not available as dependency. Jan

Re: Maven, junit and Mock Classes

2007-11-20 Thread Francois Fernandes
Guten Tag Jan Torben Heuer, Hi Jan, So where can I put both Mock Objects? Obviously not in the dao, because testclasses are not dependencies. So I would end up with a project for each or all MockObjects. You may specify the test-classes as a dependency using the test-jar mojo of the jar

Re: Maven, junit and Mock Classes

2007-11-20 Thread Antonio Petrelli
2007/11/20, Jan Torben Heuer [EMAIL PROTECTED]: I have have (again) a design question, where to place Mock Classes for junit. Mock classes can stay in the src/test/java directory. What's the problem? Antonio

Maven, junit and Mock Classes

2007-11-20 Thread Jan Torben Heuer
I have have (again) a design question, where to place Mock Classes for junit. Example: project-core (depends project-dao) public TestSomeCoreFunctions { DAO dao = new MockDAO(); ... } project-dao public interface dao {