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 {
public AccessObject1 do();
}
public interface AccessObject1 {
}
project-another module (depends project-core)
public TestSomeThing {
DAO dao = new MockDAO();
AccessObject1 ao = new MockAccessObject();
...
}
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.
project-dao-mock (depends project-dao)
public class MockAccessObject implements AccessObject1..
This means in turn, that I COULD NOT use the mock objects in the project-dao
(circular dependencies), but I NEED them for my junit tests...
So what? I'm confused ;-)
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]