use of org.eclipse.xsd.XSDSchemaDirective in project webtools.sourceediting by eclipse.
the class XSDUnusedTests method testImport017.
public void testImport017() {
XSDSchema schema = getXSDSchema(TC_ROOT_FOLDER + "/Unused/test/Main009g.xsd");
importManager.performRemoval(schema);
List list = importManager.getUnusedXSDDirectives();
assertTrue(list.size() == 2);
XSDSchemaDirective d1 = (XSDSchemaDirective) list.get(0);
assertTrue("../Include1.xsd".equals(d1.getSchemaLocation()));
XSDSchemaDirective d2 = (XSDSchemaDirective) list.get(1);
assertTrue("../Include2.xsd".equals(d2.getSchemaLocation()));
}
use of org.eclipse.xsd.XSDSchemaDirective in project webtools.sourceediting by eclipse.
the class XSDUnusedTests method testImport014.
public void testImport014() {
XSDSchema schema = getXSDSchema(TC_ROOT_FOLDER + "/Unused/test/Main009d.xsd");
importManager.performRemoval(schema);
List list = importManager.getUnusedXSDDirectives();
assertTrue(list.size() == 2);
XSDSchemaDirective d1 = (XSDSchemaDirective) list.get(0);
assertTrue("../Include1.xsd".equals(d1.getSchemaLocation()));
XSDSchemaDirective d2 = (XSDSchemaDirective) list.get(1);
assertTrue("../Include3.xsd".equals(d2.getSchemaLocation()));
}
use of org.eclipse.xsd.XSDSchemaDirective in project webtools.sourceediting by eclipse.
the class XSDUnusedTests method testImport015.
public void testImport015() {
XSDSchema schema = getXSDSchema(TC_ROOT_FOLDER + "/Unused/test/Main009e.xsd");
importManager.performRemoval(schema);
List list = importManager.getUnusedXSDDirectives();
assertTrue(list.size() == 1);
XSDSchemaDirective d1 = (XSDSchemaDirective) list.get(0);
assertTrue("../Include2.xsd".equals(d1.getSchemaLocation()));
}
use of org.eclipse.xsd.XSDSchemaDirective in project webtools.sourceediting by eclipse.
the class XSDUnusedTests method testImport018.
public void testImport018() {
XSDSchema schema = getXSDSchema(TC_ROOT_FOLDER + "/Unused/test/Main009h.xsd");
importManager.performRemoval(schema);
List list = importManager.getUnusedXSDDirectives();
assertTrue(list.size() == 3);
XSDSchemaDirective d1 = (XSDSchemaDirective) list.get(0);
assertTrue("../Include1.xsd".equals(d1.getSchemaLocation()));
XSDSchemaDirective d2 = (XSDSchemaDirective) list.get(1);
assertTrue("../Include5.xsd".equals(d2.getSchemaLocation()));
XSDSchemaDirective d3 = (XSDSchemaDirective) list.get(2);
assertTrue("../Include3.xsd".equals(d3.getSchemaLocation()));
}
use of org.eclipse.xsd.XSDSchemaDirective in project webtools.sourceediting by eclipse.
the class XSDUnusedTests method testCircularIncludes002.
public void testCircularIncludes002() {
XSDSchema schema = getXSDSchema(TC_ROOT_FOLDER + "/Includes/circular/test/Main002.xsd");
importManager.performRemoval(schema);
List list = importManager.getUnusedXSDDirectives();
assertTrue(list.size() == 6);
XSDSchemaDirective d1 = (XSDSchemaDirective) list.get(0);
assertTrue("../Include1.xsd".equals(d1.getSchemaLocation()));
XSDSchemaDirective d2 = (XSDSchemaDirective) list.get(1);
assertTrue("../Include2.xsd".equals(d2.getSchemaLocation()));
XSDSchemaDirective d3 = (XSDSchemaDirective) list.get(2);
assertTrue("../Include3.xsd".equals(d3.getSchemaLocation()));
XSDSchemaDirective d4 = (XSDSchemaDirective) list.get(3);
assertTrue("../Include4.xsd".equals(d4.getSchemaLocation()));
XSDSchemaDirective d5 = (XSDSchemaDirective) list.get(4);
assertTrue("../Include5.xsd".equals(d5.getSchemaLocation()));
XSDSchemaDirective d6 = (XSDSchemaDirective) list.get(5);
assertTrue("../Include6.xsd".equals(d6.getSchemaLocation()));
}
Aggregations