use of org.apache.deltaspike.core.api.config.view.metadata.ViewConfigResolver in project deltaspike by apache.
the class ViewConfigPathTest method testNamesWizard6.
@Test
public void testNamesWizard6() {
this.viewConfigExtension.addPageDefinition(Pages.Wizard6.Step1.class);
ViewConfigResolver viewConfigResolver = this.viewConfigResolverProducer.createViewConfigResolver();
ViewConfigDescriptor viewConfigDescriptor;
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard6.Step1.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/wizard6/step1.xhtml", viewConfigDescriptor.getViewId());
}
use of org.apache.deltaspike.core.api.config.view.metadata.ViewConfigResolver in project deltaspike by apache.
the class ViewConfigPathTest method testNamesWizard11.
@Test
public void testNamesWizard11() {
this.viewConfigExtension.addPageDefinition(Pages.Wizard11.Step1.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard11.Step2.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard11.Step3.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard11.Step4.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard11.Step5.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard11.Step6.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard11.Step7.class);
ViewConfigResolver viewConfigResolver = this.viewConfigResolverProducer.createViewConfigResolver();
ViewConfigDescriptor viewConfigDescriptor;
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard11.Step1.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/w11/step1.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard11.Step2.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/step2.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard11.Step3.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/w11/step3.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard11.Step4.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/w11/w11b/step4.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard11.Step5.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/w11b/step5.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard11.Step6.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/w11/w11b/step6.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard11.Step7.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/w11/w11b/step7.xhtml", viewConfigDescriptor.getViewId());
}
use of org.apache.deltaspike.core.api.config.view.metadata.ViewConfigResolver in project deltaspike by apache.
the class ViewConfigPathTest method testNamesWizard5.
@Test
public void testNamesWizard5() {
this.viewConfigExtension.addPageDefinition(Pages.Wizard5.Step1.class);
ViewConfigResolver viewConfigResolver = this.viewConfigResolverProducer.createViewConfigResolver();
ViewConfigDescriptor viewConfigDescriptor;
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard5.Step1.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/wizard5/step1.xhtml", viewConfigDescriptor.getViewId());
}
use of org.apache.deltaspike.core.api.config.view.metadata.ViewConfigResolver in project deltaspike by apache.
the class ViewConfigPathTest method testNamesWizard4.
@Test
public void testNamesWizard4() {
this.viewConfigExtension.addPageDefinition(Pages.Wizard4.Step1.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard4.Step2.class);
ViewConfigResolver viewConfigResolver = this.viewConfigResolverProducer.createViewConfigResolver();
ViewConfigDescriptor viewConfigDescriptor;
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard4.Step1.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/wizard4/step1.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard4.Step2.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/step2.xhtml", viewConfigDescriptor.getViewId());
}
use of org.apache.deltaspike.core.api.config.view.metadata.ViewConfigResolver in project deltaspike by apache.
the class ViewConfigPathTest method testNamesWizard10.
@Test
public void testNamesWizard10() {
this.viewConfigExtension.addPageDefinition(Pages.Wizard10.Step1.class);
ViewConfigResolver viewConfigResolver = this.viewConfigResolverProducer.createViewConfigResolver();
ViewConfigDescriptor viewConfigDescriptor;
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard10.Step1.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/w10a/step1.xhtml", viewConfigDescriptor.getViewId());
}
Aggregations