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

SQL/PHP: Table design question -

NHibernate Passing Session to the Repository -

c# - XMLDocument.Validate Error: System.InvalidOperationException : The XmlSchemaSet on the document is either null or has no schemas in it -