diff --git a/src/test/java/com/github/maven_nar/cpptasks/compiler/TestLinkType.java b/src/test/java/com/github/maven_nar/cpptasks/compiler/TestLinkType.java index 79bbc3807..c5cb53753 100644 --- a/src/test/java/com/github/maven_nar/cpptasks/compiler/TestLinkType.java +++ b/src/test/java/com/github/maven_nar/cpptasks/compiler/TestLinkType.java @@ -64,4 +64,14 @@ public void testIsPluginTrue() { type.setOutputType(pluginType); assertTrue(type.isPluginModule()); } + + public void testSetOutputType() throws Exception { + try { + final LinkType type = new LinkType(); + type.setOutputType(null); + TestCase.fail("testSetOutputType should have thrown IllegalArgumentException"); + } catch (IllegalArgumentException expected) { + TestCase.assertEquals("outputType", expected.getMessage()); + } + } }