Examples of MarkerAssertion


Examples of org.springframework.ide.eclipse.beans.core.tests.MarkerAssertion

  @Test
  public void testNamespaceValidation() throws Exception {

    MarkerAssertion[] assertions = new MarkerAssertion[] {
        new MarkerAssertion("'java.lang.String' is not a sub type of 'java.util.List'", 13),
        new MarkerAssertion("Class 'java.lang.NoSuchClass' not found", 14),
        new MarkerAssertion("Method 'nosuchmethod' not found in class 'java.lang.String'", 20),
        new MarkerAssertion("Referenced bean 'target2' not found", 21, IMarker.SEVERITY_WARNING),
        new MarkerAssertion("Field 'NO_SUCH_FIELD' not found on class 'org.springframework.core.Ordered'", 25),
        new MarkerAssertion("Class 'org.springframework.core.NoSuchClass' not found", 26) };

    IMarker[] markers = resource.findMarkers(BeansCorePlugin.PLUGIN_ID + ".problemmarker", false,
        IResource.DEPTH_ZERO);
    assertTrue(markers.length >= 8);
    MarkerAssertion.assertMarker(markers, assertions);
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.