import java.util.List;
/**
- * Test implementation of IOutputLocationManager. By default returns the
- * same location for both resources and classes, however, setter methods
- * enable the user to specify different location for these. Note that the
- * user is unable to specify different output location for different class
- * files.
+ * Test implementation of IOutputLocationManager. By default returns the same location for both resources and classes, however,
+ * setter methods enable the user to specify different location for these. Note that the user is unable to specify different output
+ * location for different class files.
*/
public class TestOutputLocationManager implements IOutputLocationManager {
private File classOutputLoc;
private File resourceOutputLoc;
private List allOutputLocations;
-
+
public TestOutputLocationManager(String testProjectPath) {
this.testProjectOutputPath = testProjectPath + File.separator + "bin";
}
initLocations();
return resourceOutputLoc;
}
-
+
// -------------- setter methods useful for testing -------------
public void setOutputLocForClass(File f) {
classOutputLoc = f;
}
-
+
public void setOutputLocForResource(File f) {
resourceOutputLoc = f;
}
public List getAllOutputLocations() {
- if(allOutputLocations == null) {
+ if (allOutputLocations == null) {
allOutputLocations = new ArrayList();
initLocations();
allOutputLocations.add(classOutputLoc);
initLocations();
return classOutputLoc;
}
-
+
private void initLocations() {
if (classOutputLoc == null) {
classOutputLoc = new File(testProjectOutputPath);
public String getSourceFolderForFile(File sourceFile) {
return null;
}
-
+
+ public void reportClassFileWrite(String outputfile) {
+ }
}