Commits

Christophe Furmaniak committed b6f711c

check that exception message is the one we send through byteman

Comments (0)

Files changed (1)

src/test/java/net/sourceforge/jrrd/TestRRDFile.java

         assertThat(RRDFile.getNbOfBytesToRead(false)).isEqualTo(4);
     }
 
-    @Test(expectedExceptions = RRDException.class)
+    @Test(expectedExceptions = RRDException.class,expectedExceptionsMessageRegExp = "Byteman was here")
     @BMRules(rules = {@BMRule(name = "throw RRDException at RandomAccessFileWrapper init",
             targetClass = "RandomAccessFileWrapper",
             targetMethod = "<init>(File)",