use of org.eclipse.wst.xsl.ui.internal.templates.TemplateContextTypeXSL in project webtools.sourceediting by eclipse.
the class TestTemplateContextTypeXSL method testDollarVariableAvailable.
@Test
public void testDollarVariableAvailable() throws Exception {
TemplateContextTypeXSL contextType = new TemplateContextTypeXSL();
Iterator<TemplateVariableResolver> variables = contextType.resolvers();
while (variables.hasNext()) {
TemplateVariableResolver resolver = variables.next();
if (resolver.getType().equals("dollar")) {
return;
}
}
fail("User variable resolver was not found.");
}
use of org.eclipse.wst.xsl.ui.internal.templates.TemplateContextTypeXSL in project webtools.sourceediting by eclipse.
the class TestTemplateContextTypeXSL method testUserVariableAvailable.
@Test
public void testUserVariableAvailable() throws Exception {
TemplateContextTypeXSL contextType = new TemplateContextTypeXSL();
Iterator<TemplateVariableResolver> variables = contextType.resolvers();
while (variables.hasNext()) {
TemplateVariableResolver resolver = variables.next();
if (resolver.getType().equals("user")) {
return;
}
}
fail("User variable resolver was not found.");
}
use of org.eclipse.wst.xsl.ui.internal.templates.TemplateContextTypeXSL in project webtools.sourceediting by eclipse.
the class TestTemplateContextTypeXSL method testTimeVariableAvailable.
@Test
public void testTimeVariableAvailable() throws Exception {
TemplateContextTypeXSL contextType = new TemplateContextTypeXSL();
Iterator<TemplateVariableResolver> variables = contextType.resolvers();
while (variables.hasNext()) {
TemplateVariableResolver resolver = variables.next();
if (resolver.getType().equals("time")) {
return;
}
}
fail("Time variable resolver was not found.");
}
use of org.eclipse.wst.xsl.ui.internal.templates.TemplateContextTypeXSL in project webtools.sourceediting by eclipse.
the class TestTemplateContextTypeXSL method testYearVariableAvailable.
@Test
public void testYearVariableAvailable() throws Exception {
TemplateContextTypeXSL contextType = new TemplateContextTypeXSL();
Iterator<TemplateVariableResolver> variables = contextType.resolvers();
while (variables.hasNext()) {
TemplateVariableResolver resolver = variables.next();
if (resolver.getType().equals("year")) {
return;
}
}
fail("Year variable resolver was not found.");
}
use of org.eclipse.wst.xsl.ui.internal.templates.TemplateContextTypeXSL in project webtools.sourceediting by eclipse.
the class TestTemplateContextTypeXSL method testXSLVersionVariableAvailable.
@Test
public void testXSLVersionVariableAvailable() throws Exception {
TemplateContextTypeXSL contextType = new TemplateContextTypeXSL();
Iterator<TemplateVariableResolver> variables = contextType.resolvers();
while (variables.hasNext()) {
TemplateVariableResolver resolver = variables.next();
if (resolver.getType().equals("xsl_version")) {
return;
}
}
fail("XSL Version variable resolver was not found.");
}
Aggregations