use of org.apache.deltaspike.core.api.config.view.metadata.ViewConfigResolver in project deltaspike by apache.
the class ViewConfigPathTest method testNamesWizard7.
@Test
public void testNamesWizard7() {
this.viewConfigExtension.addPageDefinition(Pages.Wizard7.Step1.class);
ViewConfigResolver viewConfigResolver = this.viewConfigResolverProducer.createViewConfigResolver();
ViewConfigDescriptor viewConfigDescriptor;
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard7.Step1.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/wizard7/step1.xhtml", viewConfigDescriptor.getViewId());
}
use of org.apache.deltaspike.core.api.config.view.metadata.ViewConfigResolver in project deltaspike by apache.
the class ViewConfigPathTest method testNamesWizard9.
@Test
public void testNamesWizard9() {
this.viewConfigExtension.addPageDefinition(Pages.Wizard9.Step1.class);
ViewConfigResolver viewConfigResolver = this.viewConfigResolverProducer.createViewConfigResolver();
ViewConfigDescriptor viewConfigDescriptor;
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard9.Step1.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/w9/step1.xhtml", viewConfigDescriptor.getViewId());
}
use of org.apache.deltaspike.core.api.config.view.metadata.ViewConfigResolver in project deltaspike by apache.
the class ViewConfigPathTest method testNamesWizard12.
@Test
public void testNamesWizard12() {
this.viewConfigExtension.addPageDefinition(Pages.Wizard12.Step1.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard12.Step2.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard12.Step3.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard12.Step4.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard12.Step5.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard12.Step6.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard12.Step7.class);
ViewConfigResolver viewConfigResolver = this.viewConfigResolverProducer.createViewConfigResolver();
ViewConfigDescriptor viewConfigDescriptor;
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard12.Step1.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/w12/step1.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard12.Step2.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/step2.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard12.Step3.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/w12/step3.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard12.Step4.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/w12/w12b/step4.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard12.Step5.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/w12b/step5.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard12.Step6.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/w12/w12b/step6.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard12.Step7.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/w12/w12b/step7.xhtml", viewConfigDescriptor.getViewId());
}
use of org.apache.deltaspike.core.api.config.view.metadata.ViewConfigResolver in project deltaspike by apache.
the class ViewConfigPathTest method testNamesWizard13.
@Test
public void testNamesWizard13() {
this.viewConfigExtension.addPageDefinition(Pages.Wizard13.Step1.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard13.Step2.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard13.Step3.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard13.Step4.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard13.Step5.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard13.Step6.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard13.Step7.class);
ViewConfigResolver viewConfigResolver = this.viewConfigResolverProducer.createViewConfigResolver();
ViewConfigDescriptor viewConfigDescriptor;
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard13.Step1.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/w13a/step1.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard13.Step2.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/step2.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard13.Step3.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/w13a/step3.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard13.Step4.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/w13a/w13b/step4.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard13.Step5.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/w13b/step5.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard13.Step6.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/w13a/w13b/step6.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard13.Step7.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/w13a/w13b/step7.xhtml", viewConfigDescriptor.getViewId());
}
use of org.apache.deltaspike.core.api.config.view.metadata.ViewConfigResolver in project deltaspike by apache.
the class ViewConfigPathTest method testNamesWizard2.
@Test
public void testNamesWizard2() {
this.viewConfigExtension.addPageDefinition(Pages.Wizard2.Step1.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard2.Step2.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard2.Step3.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard2.Step4.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard2.Step5.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard2.Step6.class);
this.viewConfigExtension.addPageDefinition(Pages.Wizard2.Step7.class);
ViewConfigResolver viewConfigResolver = this.viewConfigResolverProducer.createViewConfigResolver();
ViewConfigDescriptor viewConfigDescriptor;
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard2.Step1.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/wizard2/step1.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard2.Step2.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/step2.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard2.Step3.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/wizard2/step3.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard2.Step4.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/wizard2/w2/step4.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard2.Step5.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/w2/step5.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard2.Step6.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/wizard2/w2b/step6.xhtml", viewConfigDescriptor.getViewId());
viewConfigDescriptor = viewConfigResolver.getViewConfigDescriptor(Pages.Wizard2.Step7.class);
Assert.assertNotNull(viewConfigDescriptor);
Assert.assertEquals("/pages/wizard2/w2b/step7.xhtml", viewConfigDescriptor.getViewId());
}
Aggregations