Added original test case

This commit is contained in:
Clément Fournier
2017-03-23 22:27:17 +01:00
committed by Juan Martín Sotuyo Dodero
parent b9bb0ca373
commit d2642920ec

View File

@ -285,6 +285,13 @@ public class SimpleExpectedExceptionTest {
thrown.expect(NullPointerException.class);
throw new NullPointerException();
}
@Test
public void throwsIllegalArgumentExceptionIfIconIsNull() {
thrown.expect(IllegalArgumentException.class);
thrown.expectMessage("Icon is null, not a file, or doesn't exist.");
new DigitalAssetManager(null, null);
}
}
]]></code>
</test-code>