Examples of AssertThrows


Examples of org.springframework.test.AssertThrows

    PropertyEditor urlEditor = new URLEditor();
    assertEquals("", urlEditor.getAsText());
  }

  public void testCtorWithNullResourceEditor() throws Exception {
    new AssertThrows(IllegalArgumentException.class) {
      public void test() throws Exception {
        new URLEditor(null);
      }
    }.runTest();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.