Created
October 1, 2014 14:52
-
-
Save 573/a1079dcbb648a25a83ae to your computer and use it in GitHub Desktop.
Didnt know smth like that is valid...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// java class | |
... | |
@Rule public ExpectedException exc; | |
... | |
@Test | |
public void testLoggingOnXRule() throws IOException { | |
(exc = ExpectedException.none()).expect(org.drools.runtime.rule.ConsequenceException.class); | |
(exc = ExpectedException.none()).expectMessage(StringStartsWith.startsWith(MessageFormat.format("Exception executing consequence for rule {0} in defaultpkg: java.lang.NullPointerException", "\"X Rule\""))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment