Added original test case
This commit is contained in:

committed by
Juan Martín Sotuyo Dodero

parent
b9bb0ca373
commit
d2642920ec
@ -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>
|
||||
|
Reference in New Issue
Block a user