Permalink
Browse files

fix test

  • Loading branch information...
1 parent 831e924 commit 0559ca9315c40a867c249ec926a8a0fe1be67d5f @sotty sotty committed Mar 30, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 drools-mas-core/src/test/java/org/drools/mas/core/tests/TestAgent.java
@@ -514,11 +514,9 @@ public void testExplicitRequestFailure() throws InterruptedException {
assertEquals( Act.FAILURE, mainAgent.getAgentAnswers(req.getId()).get(1).getPerformative() );
Failure fail = (Failure) mainAgent.getAgentAnswers( req.getId() ).get(1).getBody();
- try {
- throw (RuntimeException) fail.getCause().getData();
- } catch (RuntimeException re) {
- System.err.println(re.getMessage());
- }
+ String msg = fail.getCause().getData().toString();
+
+ assertTrue( msg.contains( "can't extract the square root of -9" ) );
}

0 comments on commit 0559ca9

Please sign in to comment.