use of org.eclipse.wst.xsl.core.model.Stylesheet in project webtools.sourceediting by eclipse.
the class TestStylesheet method testLoadModel.
@Test
public void testLoadModel() {
Stylesheet model = builder.getStylesheet(getFile("style1.xsl"), false);
assertNotNull("Model failed to load, returned NULL", model);
}
use of org.eclipse.wst.xsl.core.model.Stylesheet in project webtools.sourceediting by eclipse.
the class TestStylesheet method testXSLT2GetVersion.
@Test
public void testXSLT2GetVersion() {
Stylesheet stylesheet = builder.getStylesheet(getFile("XSLT20Test.xsl"), false);
assertNotNull("Model failed to load, returned NULL", stylesheet);
// Line Number is off by 1 from what is displayed in the Editor
assertEquals("Wrong version number returned.", "2.0", stylesheet.getVersion());
}
use of org.eclipse.wst.xsl.core.model.Stylesheet in project webtools.sourceediting by eclipse.
the class TestStylesheet method testGetFunction.
@Test
public void testGetFunction() {
Stylesheet stylesheet = builder.getStylesheet(getFile("XSLT20FunctionTest.xsl"), false);
assertNotNull("Model failed to load, returned NULL", stylesheet);
List<Function> functionList = stylesheet.getFunctions();
assertEquals("Wrong number of global variables returned.", 2, functionList.size());
}
use of org.eclipse.wst.xsl.core.model.Stylesheet in project webtools.sourceediting by eclipse.
the class TestStylesheet method testGetIncludes.
@Test
public void testGetIncludes() {
Stylesheet stylesheet = builder.getStylesheet(getFile("style1.xsl"), false);
assertNotNull("Model failed to load, returned NULL", stylesheet);
List<Include> includeList = stylesheet.getIncludes();
assertEquals("Wrong number of includes returned.", 1, includeList.size());
}
Aggregations