Not with testng: http://testng.org/javadoc/org/testng/Assert.html