use of org.eclipse.xsd.XSDSchemaDirective in project webtools.sourceediting by eclipse.
the class XSDUnusedTests method testImport004.
public void testImport004() {
XSDSchema schema = getXSDSchema(TC_ROOT_FOLDER + "/Unused/test/Main003.xsd");
importManager.performRemoval(schema);
List list = importManager.getUnusedXSDDirectives();
assertTrue(list.size() == 2);
XSDSchemaDirective d1 = (XSDSchemaDirective) list.get(1);
assertTrue("../Import1.xsd".equals(d1.getSchemaLocation()));
XSDSchemaDirective d2 = (XSDSchemaDirective) list.get(0);
assertTrue("../Include1.xsd".equals(d2.getSchemaLocation()));
}
use of org.eclipse.xsd.XSDSchemaDirective in project webtools.sourceediting by eclipse.
the class XSDUnusedTests method testImport006.
public void testImport006() {
XSDSchema schema = getXSDSchema(TC_ROOT_FOLDER + "/Unused/test/Main005.xsd");
importManager.performRemoval(schema);
List list = importManager.getUnusedXSDDirectives();
assertTrue(list.size() == 5);
XSDSchemaDirective d1 = (XSDSchemaDirective) list.get(1);
assertTrue("../Import1.xsd".equals(d1.getSchemaLocation()));
XSDSchemaDirective d2 = (XSDSchemaDirective) list.get(2);
assertTrue("../Import2.xsd".equals(d2.getSchemaLocation()));
XSDSchemaDirective d3 = (XSDSchemaDirective) list.get(3);
assertTrue("../Import3.xsd".equals(d3.getSchemaLocation()));
XSDSchemaDirective d4 = (XSDSchemaDirective) list.get(4);
assertTrue("../Import4.xsd".equals(d4.getSchemaLocation()));
XSDSchemaDirective d5 = (XSDSchemaDirective) list.get(0);
assertTrue("../Include1.xsd".equals(d5.getSchemaLocation()));
}
use of org.eclipse.xsd.XSDSchemaDirective in project webtools.sourceediting by eclipse.
the class XSDUnusedTests method testImport012.
public void testImport012() {
XSDSchema schema = getXSDSchema(TC_ROOT_FOLDER + "/Unused/test/Main009b.xsd");
importManager.performRemoval(schema);
List list = importManager.getUnusedXSDDirectives();
assertTrue(list.size() == 2);
XSDSchemaDirective d1 = (XSDSchemaDirective) list.get(0);
assertTrue("../Include2.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 testImport016.
public void testImport016() {
XSDSchema schema = getXSDSchema(TC_ROOT_FOLDER + "/Unused/test/Main009f.xsd");
importManager.performRemoval(schema);
List list = importManager.getUnusedXSDDirectives();
assertTrue(list.size() == 5);
XSDSchemaDirective d1 = (XSDSchemaDirective) list.get(0);
assertTrue("../Include1.xsd".equals(d1.getSchemaLocation()));
XSDSchemaDirective d2 = (XSDSchemaDirective) list.get(1);
assertTrue("../A.xsd".equals(d2.getSchemaLocation()));
XSDSchemaDirective d3 = (XSDSchemaDirective) list.get(2);
assertTrue("../Include5.xsd".equals(d3.getSchemaLocation()));
XSDSchemaDirective d4 = (XSDSchemaDirective) list.get(3);
assertTrue("../Include2.xsd".equals(d4.getSchemaLocation()));
XSDSchemaDirective d5 = (XSDSchemaDirective) list.get(4);
assertTrue("../Include3.xsd".equals(d5.getSchemaLocation()));
}
use of org.eclipse.xsd.XSDSchemaDirective in project webtools.sourceediting by eclipse.
the class XSDUnusedTests method testImport007.
public void testImport007() {
XSDSchema schema = getXSDSchema(TC_ROOT_FOLDER + "/Unused/test/Main006.xsd");
importManager.performRemoval(schema);
List list = importManager.getUnusedXSDDirectives();
assertTrue(list.size() == 1);
XSDSchemaDirective d1 = (XSDSchemaDirective) list.get(0);
assertTrue("../Import1.xsd".equals(d1.getSchemaLocation()));
}
Aggregations