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,
: 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
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
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
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 {