use of name.herlin.command.UnsetInputPropertiesException in project pmd-eclipse-plugin by pmd.
the class DetectCutAndPasteCmdTest method testDetectCutAndPasteCmdNullArg5.
/**
* Test robustness #5
*
* @throws CommandException
*/
@Test
public void testDetectCutAndPasteCmdNullArg5() throws CommandException {
try {
final DetectCutAndPasteCmd cmd = new DetectCutAndPasteCmd();
cmd.setProject(null);
cmd.setRenderer(new SimpleRenderer());
cmd.setReportName(null);
cmd.performExecute();
Assert.fail();
} catch (final UnsetInputPropertiesException e) {
// yes cool
}
}
use of name.herlin.command.UnsetInputPropertiesException in project pmd-eclipse-plugin by pmd.
the class DetectCutAndPasteCmdTest method testDetectCutAndPasteCmdNullArg3.
/**
* Test robustness #3
*
* @throws CommandException
*/
@Test
public void testDetectCutAndPasteCmdNullArg3() throws CommandException {
try {
final DetectCutAndPasteCmd cmd = new DetectCutAndPasteCmd();
cmd.setProject(this.testProject);
cmd.setRenderer(new SimpleRenderer());
cmd.setReportName(null);
cmd.performExecute();
Assert.fail();
} catch (final UnsetInputPropertiesException e) {
// yes cool
}
}
Aggregations