Part of fix for [HER-1725] on engine page, 'create new job' form gives NPE

* Engine.java
  made protected getProfileCxmlResource() for clear testability
* EngineTest.java
  added testGetProfileCxmlResource()
This commit is contained in:
szznax
2009-12-11 00:47:06 +00:00
parent 56d6e2ee26
commit bf2eaef6e2
2 changed files with 24 additions and 4 deletions
@@ -0,0 +1,11 @@
package org.archive.crawler.framework;
import org.archive.util.TmpDirTestCase;
public class EngineTest extends TmpDirTestCase {
public void testGetProfileCxmlResource() {
assertNotNull(new Engine(getTmpDir()).getProfileCxmlResource());
}
}