Fix broken test

* Engine.java
    tolerate (with return-false-forfailure rather than NPE) non-job directories
* EngineTest.java
    use empty temp job directory rather than (possibly full-of-junk) general junit-tests directory
This commit is contained in:
gojomo committed 2010-04-27 00:44:36 +00:00
1 parent 57c857d5c6
commit b639873dae
2 files changed
+10 -3

No files matched your search

@@ -131,7 +131,7 @@ public class Engine {
public boolean accept(File dir, String name) {
return name.endsWith(".cxml");
}});
if(candidateConfigs.length == 0) {
if(candidateConfigs==null || candidateConfigs.length == 0) {
// no CXML file found!
return false;
}