nunit - ExpectedException in jUnit? -


Is NUINt's expected expiation or estront equivalent.Thank you & lt;> jUnit?

Junior 4:

  @Test (expected = org.dom4j .DocumentException.class) should be zero () {getFile (zero); }  

Junior 3:

  zero test styleTroxation (try {try {getFile (null); Failed ("expected exception document exception"); } Hold (DocumentException E) {}}  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -