Examples of determineProjectStage()


Examples of org.apache.myfaces.extensions.cdi.core.impl.projectstage.ProjectStageProducer.determineProjectStage()

        Assert.assertNotNull(psp);

        // first manually reset the ProjectStage
        ProjectStageProducer.setProjectStage(null);

        psp.determineProjectStage();

        ProjectStage ps = psp.getProjectStage();
        Assert.assertNotNull(ps);
        Assert.assertEquals(ps, ProjectStage.Production);
        Assert.assertTrue(ps == ProjectStage.Production);
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.core.impl.projectstage.ProjectStageProducer.determineProjectStage()

        {
            // we need to do this manually because there is no dependency injection in place
            // at this time
            ProjectStageProducer psp = ProjectStageProducer.getInstance();

            psp.determineProjectStage();
            ProjectStage projectStage = psp.getProjectStage();

            if (projectStage == ProjectStage.UnitTest)
            {
                // for unit tests, we use the mock context
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.core.impl.projectstage.ProjectStageProducer.determineProjectStage()

        try
        {
            ProjectStageProducer projectStageProducer = ProjectStageProducer.getInstance();

            //noinspection ConstantConditions
            projectStageProducer.determineProjectStage();
            return projectStageProducer.getProjectStage();
        }
        catch (Exception e)
        {
            if (!(e instanceof RuntimeException))
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.