Project project = new Project();
arg.setIf("cond");
assertTrue(!arg.isActive(project));
}
public void testIsActive4() {
DefineArgument arg = new DefineArgument();
arg.setName("TEST");
Project project = new Project();
project.setProperty("cond", "false");
arg.setIf("cond");
try {
boolean isActive = arg.isActive(project);
} catch (BuildException ex) {
return;
}
fail("Should throw exception for suspicious value");
}