|
@@ -152,7 +152,7 @@ public class ModifiedSelectorTest extends BaseSelectorTest { |
|
|
|
|
|
|
|
|
public void testIllegalCustomAlgorithm() { |
|
|
public void testIllegalCustomAlgorithm() { |
|
|
try { |
|
|
try { |
|
|
String algo = getAlgoName("java.lang.Object"); |
|
|
|
|
|
|
|
|
getAlgoName("java.lang.Object"); |
|
|
fail("Illegal classname used."); |
|
|
fail("Illegal classname used."); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
assertTrue("Wrong exception type: " + e.getClass().getName(), e instanceof BuildException); |
|
|
assertTrue("Wrong exception type: " + e.getClass().getName(), e instanceof BuildException); |
|
@@ -167,7 +167,7 @@ public class ModifiedSelectorTest extends BaseSelectorTest { |
|
|
public void testNonExistentCustomAlgorithm() { |
|
|
public void testNonExistentCustomAlgorithm() { |
|
|
boolean noExcThrown = false; |
|
|
boolean noExcThrown = false; |
|
|
try { |
|
|
try { |
|
|
String algo = getAlgoName("non.existent.custom.Algorithm"); |
|
|
|
|
|
|
|
|
getAlgoName("non.existent.custom.Algorithm"); |
|
|
noExcThrown = true; |
|
|
noExcThrown = true; |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
if (noExcThrown) { |
|
|
if (noExcThrown) { |
|
@@ -367,8 +367,7 @@ public class ModifiedSelectorTest extends BaseSelectorTest { |
|
|
|
|
|
|
|
|
s.setUpdate(true); |
|
|
s.setUpdate(true); |
|
|
|
|
|
|
|
|
// does the selection |
|
|
|
|
|
String results = selectionString(s); |
|
|
|
|
|
|
|
|
selectionString(s); |
|
|
|
|
|
|
|
|
// evaluate correctness |
|
|
// evaluate correctness |
|
|
assertTrue("Cache file is not created.", cachefile.exists()); |
|
|
assertTrue("Cache file is not created.", cachefile.exists()); |
|
@@ -404,8 +403,7 @@ public class ModifiedSelectorTest extends BaseSelectorTest { |
|
|
s.addParam(createParam("cache.cachefile", cachefile.getAbsolutePath())); |
|
|
s.addParam(createParam("cache.cachefile", cachefile.getAbsolutePath())); |
|
|
s.addParam(createParam("cache", "propertyfile")); |
|
|
s.addParam(createParam("cache", "propertyfile")); |
|
|
|
|
|
|
|
|
// does the selection |
|
|
|
|
|
String results = selectionString(s); |
|
|
|
|
|
|
|
|
selectionString(s); |
|
|
|
|
|
|
|
|
// evaluate correctness |
|
|
// evaluate correctness |
|
|
assertTrue("Cache file is not created.", cachefile.exists()); |
|
|
assertTrue("Cache file is not created.", cachefile.exists()); |
|
|