Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

fail method java

try{
  // do stuff...
  fail("Exception not thrown");
}catch(Exception e){
  assertTrue(e.hasSomeFlag());
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fail #method #java
ADD COMMENT
Topic
Name
6+2 =