Two classes with same name in src/main/java and src/test/java

2011-01-03 Thread Manuel Doninger
Hi, i have the following constellation: I have a class Feature.java and a class MapData.java in my folder src/main/java. The Feature contains some work to do, and the MapData is contains a HashMap which is populated with data from a database and their methods are called in Feature. Now i want to

Re: Two classes with same name in src/main/java and src/test/java

2011-01-03 Thread Samuli Saarinen
Hello, You could use jmockit [1] and replace the functionality in MapData. Or you could change the Feature class to accept MapData as contructor arg or with setter and replace it in tests with another implementation of MapData... br, Samuli [1] http://code.google.com/p/jmockit/ On