• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ProjectStage类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.apache.deltaspike.core.api.projectstage.ProjectStage的典型用法代码示例。如果您正苦于以下问题:Java ProjectStage类的具体用法?Java ProjectStage怎么用?Java ProjectStage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ProjectStage类属于org.apache.deltaspike.core.api.projectstage包,在下文中一共展示了ProjectStage类的33个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: ContainerAwareTestContext

点赞 3

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
ContainerAwareTestContext(TestControl testControl, ContainerAwareTestContext parent) {
    this.parent = parent;

    Class<? extends ProjectStage> foundProjectStageClass;
    if (testControl == null) {
        this.testControl = new TestControlLiteral();
        if (parent != null) {
            foundProjectStageClass = parent.testControl.projectStage();
        } else {
            foundProjectStageClass = this.testControl.projectStage();
        }
    } else {
        this.testControl = testControl;
        foundProjectStageClass = this.testControl.projectStage();
    }
    this.projectStage = ProjectStage.valueOf(foundProjectStageClass.getSimpleName());

    ProjectStageProducer.setProjectStage(this.projectStage);
}
 

开发者ID:database-rider,
项目名称:database-rider,
代码行数:20,
代码来源:CdiCucumberTestRunner.java

示例2: showWelcomeMessage

点赞 3

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@PostConstruct
protected void showWelcomeMessage() {
    String versionString = ClassUtils.getJarVersion(InfoBean.class);

    if (versionString != null) {
        this.applicationMessageVersionInfo = " (v" + versionString + ")";
    }

    this.beanValidationVersion =
            ClassUtils.getJarVersion(Validation.buildDefaultValidatorFactory().getValidator().getClass());

    this.jpaVersion =
            ClassUtils.getJarVersion(Persistence.createEntityManagerFactory("demoApplicationPU").getClass());

    if (!ProjectStage.IntegrationTest.equals(this.projectStage)) {
        this.webappMessages.addInfo().msgWelcome();
    }
}
 

开发者ID:apache,
项目名称:tomee,
代码行数:19,
代码来源:InfoBean.java

示例3: ContainerAwareTestContext

点赞 3

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
ContainerAwareTestContext(TestControl testControl, ContainerAwareTestContext parent)
{
    this.parent = parent;

    Class<? extends ProjectStage> foundProjectStageClass;
    if (testControl == null)
    {
        this.testControl = new TestControlLiteral();
        if (parent != null)
        {
            foundProjectStageClass = parent.testControl.projectStage();
        }
        else
        {
            foundProjectStageClass = this.testControl.projectStage();
        }
    }
    else
    {
        this.testControl = testControl;
        foundProjectStageClass = this.testControl.projectStage();
    }
    this.projectStage = ProjectStage.valueOf(foundProjectStageClass.getSimpleName());

    ProjectStageProducer.setProjectStage(this.projectStage);
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:27,
代码来源:CdiTestRunner.java

示例4: createResource

点赞 3

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Override
public Resource createResource(String resourceName, String libraryName)
{
    Resource resource = wrapped.createResource(resourceName, libraryName);

    if (activated && resource != null && libraryName != null && LIBRARY.equals(libraryName))
    {
        if (ProjectStageProducer.getInstance().getProjectStage() == ProjectStage.Development)
        {
            resource = wrapped.createResource(resourceName, LIBRARY_UNCOMPRESSED);
        }
        
        resource = new DeltaSpikeResource(resource, version);
    }

    return resource;
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:18,
代码来源:DeltaSpikeResourceHandler.java

示例5: performProjectStageDependentCleanup

点赞 3

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
private static void performProjectStageDependentCleanup()
{
    ProjectStage currentProjectStage = ProjectStageProducer.getInstance().getProjectStage();

    if (previouslyDetectedProjectStage != currentProjectStage)
    {
        previouslyDetectedProjectStage = currentProjectStage;
        //don't use #clear to support parallel access to #isActivated (+ reset) without synchronization
        activationStatusCache = new ConcurrentHashMap<Class<? extends Deactivatable>, Boolean>();

        //#clear is ok here due to the handling in the synchronized method #initDeactivatableCacheFor
        classDeactivatorMap.clear();
    }
    else if (currentProjectStage == ProjectStage.UnitTest || currentProjectStage == ProjectStage.Development)
    {
        activationStatusCache = new ConcurrentHashMap<Class<? extends Deactivatable>, Boolean>();
    }
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:19,
代码来源:ClassDeactivationUtils.java

示例6: resolveProjectStage

点赞 3

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
/**
 * Resolves the project-stage configured for DeltaSpike
 * @return the resolved {@link ProjectStage} or <code>null</code> if none defined.
 */
protected ProjectStage resolveProjectStage()
{
    for (String configLocation : CONFIG_SETTING_KEYS)
    {
        String stageName = ConfigResolver.getPropertyValue(configLocation);

        if (stageName != null && !stageName.isEmpty())
        {
            return ProjectStage.valueOf(stageName);
        }

    }

    return null;
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:20,
代码来源:ProjectStageProducer.java

示例7: initProjectStage

点赞 3

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
protected void initProjectStage()
{
    // switch into paranoia mode
    synchronized (ProjectStageProducer.class)
    {
        if (projectStage == null)
        {
            projectStage = resolveProjectStage();

            if (projectStage == null)
            {
                projectStage = ProjectStage.Production;
            }

            LOG.info("Computed the following DeltaSpike ProjectStage: " + projectStage);
        }
    }
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:19,
代码来源:ProjectStageProducer.java

示例8: testGetProjectStageAwarePropertyValue

点赞 3

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Test
public void testGetProjectStageAwarePropertyValue()
{
    ProjectStageProducer.setProjectStage(ProjectStage.UnitTest);
    Assert.assertNull(ConfigResolver.getProjectStageAwarePropertyValue("notexisting", null));

    Assert.assertEquals("testvalue", ConfigResolver.getPropertyValue("testkey"));
    Assert.assertEquals("unittestvalue", ConfigResolver.getProjectStageAwarePropertyValue("testkey"));
    Assert.assertEquals("unittestvalue", ConfigResolver.getProjectStageAwarePropertyValue("testkey", null));

    Assert.assertEquals("testvalue", ConfigResolver.getPropertyValue("testkey2"));
    Assert.assertEquals("testvalue", ConfigResolver.getProjectStageAwarePropertyValue("testkey2"));
    Assert.assertEquals("testvalue", ConfigResolver.getProjectStageAwarePropertyValue("testkey2", null));

    Assert.assertEquals("testvalue", ConfigResolver.getPropertyValue("testkey3"));
    Assert.assertEquals("", ConfigResolver.getProjectStageAwarePropertyValue("testkey3"));
    Assert.assertEquals(DEFAULT_VALUE, ConfigResolver.getProjectStageAwarePropertyValue("testkey3", DEFAULT_VALUE));

    Assert.assertEquals(DEFAULT_VALUE, ConfigResolver.getProjectStageAwarePropertyValue("deltaspike.test.projectstagefallback", DEFAULT_VALUE));
    Assert.assertEquals("", ConfigResolver.getProjectStageAwarePropertyValue("deltaspike.test.projectstagefallback"));

    Assert.assertEquals(DEFAULT_VALUE, ConfigResolver.resolve("deltaspike.test.projectstagefallback").as(String.class).withDefault(DEFAULT_VALUE).withCurrentProjectStage(true).getValue());
    Assert.assertEquals("", ConfigResolver.resolve("deltaspike.test.projectstagefallback").as(String.class).withCurrentProjectStage(true).getValue());
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:25,
代码来源:ConfigResolverTest.java

示例9: evalExcludeInProjectStage

点赞 3

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
private boolean evalExcludeInProjectStage(ProcessAnnotatedType processAnnotatedType, Exclude exclude,
    ProjectStage currentlyConfiguredProjectStage)
{
    Class<? extends ProjectStage>[] activatedIn = exclude.ifProjectStage();

    if (activatedIn.length == 0)
    {
        return true;
    }

    if (isInProjectStage(activatedIn, currentlyConfiguredProjectStage))
    {
        veto(processAnnotatedType, "IfProjectState");
        return false;
    }
    return true;
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:18,
代码来源:ExcludeExtension.java

示例10: evalExcludeNotInProjectStage

点赞 3

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
private boolean evalExcludeNotInProjectStage(ProcessAnnotatedType processAnnotatedType, Exclude exclude,
    ProjectStage currentlyConfiguredProjectStage)
{
    Class<? extends ProjectStage>[] notIn = exclude.exceptIfProjectStage();

    if (notIn.length == 0)
    {
        return true;
    }

    if (!isInProjectStage(notIn, currentlyConfiguredProjectStage))
    {
        veto(processAnnotatedType, "ExceptIfProjectState");
        return false;
    }
    return true;
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:18,
代码来源:ExcludeExtension.java

示例11: isInProjectStage

点赞 3

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
private boolean isInProjectStage(Class<? extends ProjectStage>[] activatedIn,
    ProjectStage currentlyConfiguredProjectStage)
{
    if (activatedIn != null && activatedIn.length > 0)
    {
        for (Class<? extends ProjectStage> activated : activatedIn)
        {
            if (currentlyConfiguredProjectStage.getClass().equals(activated))
            {
                return true;
            }
        }
    }

    return false;
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:17,
代码来源:ExcludeExtension.java

示例12: testProjectStages

点赞 3

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Test
public void testProjectStages() throws Exception
{
    ProjectStage ps = ProjectStage.Development;
    Assert.assertNotNull(ps);

    ProjectStage psOther = ProjectStage.valueOf("CustomProjectStage");
    Assert.assertNotNull(psOther);

    psOther = TestProjectStages.CustomProjectStage;
    Assert.assertNotNull(psOther);

    ProjectStage psProd = ProjectStage.valueOf("Production");
    Assert.assertNotNull(psProd);

    ProjectStage[] values = ProjectStage.values();
    Assert.assertNotNull(values);
    Assert.assertTrue(values.length == 7);
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:20,
代码来源:ProjectStageTest.java

示例13: currentManager

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Produces
public Manager currentManager() {
    if (ProjectStage.UnitTest.equals(projectStage)) {
        return new Manager("test");
    } else if (ProjectStage.Development.equals(projectStage)) {
        return new Manager("dev");
    }
    return new Manager(projectStage.toString());
}
 

开发者ID:apache,
项目名称:tomee,
代码行数:10,
代码来源:ManagerFactory.java

示例14: war

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
protected static WebArchive war(final String projectStageName) {
    return ShrinkWrap.create(WebArchive.class)
            .addClasses(ProjectStageProducer.class, BaseTestForProjectStage.class, Manager.class, ManagerFactory.class)
            .addAsResource(new StringAsset("org.apache.deltaspike.ProjectStage = " + projectStageName), ArchivePaths.create(ProjectStageProducer.CONFIG_PATH))
            .addAsServiceProvider(ConfigSourceProvider.class, ProjectStageProducer.class)
            .addAsLibraries(JarLocation.jarLocation(ProjectStage.class))
            .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
}
 

开发者ID:apache,
项目名称:tomee,
代码行数:9,
代码来源:BaseTestForProjectStage.java

示例15: configForTestContainerStageUnitTest

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Test
@TestControl(projectStage = ProjectStage.UnitTest.class) //just for internal tests
public void configForTestContainerStageUnitTest()
{
    Assert.assertNotNull(CdiTestSuiteRunner.getTestContainerConfig());
    Assert.assertEquals("jdbc:hsqldb:mem:demoDB",
        CdiTestSuiteRunner.getTestContainerConfig().getProperty("demoDatabase.JdbcUrl"));
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:9,
代码来源:ContainerConfigTest.java

示例16: configForTestContainerStageIntegrationTest

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Test
@TestControl(projectStage = ProjectStage.IntegrationTest.class) //just for internal tests
public void configForTestContainerStageIntegrationTest()
{
    Assert.assertNotNull(CdiTestSuiteRunner.getTestContainerConfig());
    Assert.assertEquals("jdbc:hsqldb:file:demoDB",
        CdiTestSuiteRunner.getTestContainerConfig().getProperty("demoDatabase.JdbcUrl"));
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:9,
代码来源:ContainerConfigTest.java

示例17: logConvertedBean

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
private void logConvertedBean(AnnotatedType annotatedType, Class<? extends Annotation> jsf2ScopeAnnotation)
{
    ProjectStage projectStage = ProjectStageProducer.getInstance().getProjectStage();

    if (projectStage == ProjectStage.Development)
    {
        logger.info("JSF2 bean was converted to a CDI bean. Type: " + annotatedType.getJavaClass().getName() +
                " original scope: " + jsf2ScopeAnnotation.getName());
    }
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:11,
代码来源:MappedJsf2ScopeExtension.java

示例18: getProjectStage

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
/**
 * We can only produce @Dependent scopes since an enum is final.
 * @return current ProjectStage
 */
@Produces
@Dependent
@Default
public ProjectStage getProjectStage()
{
    if (projectStage == null)
    {
        //triggers initialization
        getInstance();
    }
    return projectStage;
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:17,
代码来源:ProjectStageProducer.java

示例19: testGetPropertyAwarePropertyValue

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Test
public void testGetPropertyAwarePropertyValue()
{
    ProjectStageProducer.setProjectStage(ProjectStage.UnitTest);

    Assert.assertNull(ConfigResolver.getPropertyAwarePropertyValue("notexisting", null));

    Assert.assertEquals("testvalue", ConfigResolver.getPropertyValue("testkey"));
    Assert.assertEquals("unittestvalue", ConfigResolver.getPropertyAwarePropertyValue("testkey", "dbvendor"));
    Assert.assertEquals("unittestvalue", ConfigResolver.getPropertyAwarePropertyValue("testkey", "dbvendor", null));

    Assert.assertEquals("testvalue", ConfigResolver.getPropertyValue("testkey2"));
    Assert.assertEquals("testvalue", ConfigResolver.getPropertyAwarePropertyValue("testkey2", "dbvendor"));
    Assert.assertEquals("testvalue", ConfigResolver.getPropertyAwarePropertyValue("testkey2", "dbvendor", null));

    Assert.assertEquals("testvalue", ConfigResolver.getPropertyValue("testkey3"));
    Assert.assertEquals("", ConfigResolver.getPropertyAwarePropertyValue("testkey3", "dbvendor"));
    Assert.assertEquals(DEFAULT_VALUE, ConfigResolver.getPropertyAwarePropertyValue("testkey3", "dbvendor", DEFAULT_VALUE));

    Assert.assertEquals("TestDataSource", ConfigResolver.getPropertyAwarePropertyValue("dataSource", "dbvendor"));
    Assert.assertEquals("PostgreDataSource", ConfigResolver.getPropertyAwarePropertyValue("dataSource", "dbvendor2"));
    Assert.assertEquals("UnitTestDataSource", ConfigResolver.getPropertyAwarePropertyValue("dataSource", "dbvendorX"));

    Assert.assertEquals("TestDataSource", ConfigResolver.getPropertyAwarePropertyValue("dataSource", "dbvendor", null));
    Assert.assertEquals("PostgreDataSource", ConfigResolver.getPropertyAwarePropertyValue("dataSource", "dbvendor2", null));
    Assert.assertEquals("UnitTestDataSource", ConfigResolver.getPropertyAwarePropertyValue("dataSource", "dbvendorX", null));
    Assert.assertEquals(DEFAULT_VALUE, ConfigResolver.getPropertyAwarePropertyValue("dataSourceX", "dbvendorX", DEFAULT_VALUE));
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:29,
代码来源:ConfigResolverTest.java

示例20: deactivationResultInProjectStageUnitTest

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Test
public void deactivationResultInProjectStageUnitTest()
{
    ProjectStageProducer.setProjectStage(ProjectStage.UnitTest);

    final Class<? extends Deactivatable> classToCheck = TestDeactivatable.class;
    EditableTestDeactivator.activate(classToCheck);
    Assert.assertEquals(true, ClassDeactivationUtils.isActivated(classToCheck));

    EditableTestDeactivator.deactivate(classToCheck);
    Assert.assertEquals(false, ClassDeactivationUtils.isActivated(classToCheck));
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:13,
代码来源:ProjectStageDependentClassDeactivationTest.java

示例21: deactivationResultInProjectStageDevelopment

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Test
public void deactivationResultInProjectStageDevelopment()
{
    ProjectStageProducer.setProjectStage(ProjectStage.Development);

    final Class<? extends Deactivatable> classToCheck = TestDeactivatable.class;
    EditableTestDeactivator.activate(classToCheck);
    Assert.assertEquals(true, ClassDeactivationUtils.isActivated(classToCheck));

    EditableTestDeactivator.deactivate(classToCheck);
    Assert.assertEquals(false, ClassDeactivationUtils.isActivated(classToCheck));
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:13,
代码来源:ProjectStageDependentClassDeactivationTest.java

示例22: deactivationResultInProjectStageProduction

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Test
public void deactivationResultInProjectStageProduction()
{
    ProjectStageProducer.setProjectStage(ProjectStage.Production);

    final Class<? extends Deactivatable> classToCheck = TestDeactivatable.class;
    EditableTestDeactivator.activate(classToCheck);
    Assert.assertEquals(true, ClassDeactivationUtils.isActivated(classToCheck));

    EditableTestDeactivator.deactivate(classToCheck);
    Assert.assertEquals(true, ClassDeactivationUtils.isActivated(classToCheck)); //due to the cached result
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:13,
代码来源:ProjectStageDependentClassDeactivationTest.java

示例23: deactivationResultInProjectStageIntegrationTest

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Test
public void deactivationResultInProjectStageIntegrationTest()
{
    ProjectStageProducer.setProjectStage(ProjectStage.IntegrationTest);

    final Class<? extends Deactivatable> classToCheck = TestDeactivatable.class;
    EditableTestDeactivator.activate(classToCheck);
    Assert.assertEquals(true, ClassDeactivationUtils.isActivated(classToCheck));

    EditableTestDeactivator.deactivate(classToCheck);
    Assert.assertEquals(true, ClassDeactivationUtils.isActivated(classToCheck)); //due to the cached result
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:13,
代码来源:ProjectStageDependentClassDeactivationTest.java

示例24: deactivationResultInProjectStageStaging

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Test
public void deactivationResultInProjectStageStaging()
{
    ProjectStageProducer.setProjectStage(ProjectStage.Staging);

    final Class<? extends Deactivatable> classToCheck = TestDeactivatable.class;
    EditableTestDeactivator.activate(classToCheck);
    Assert.assertEquals(true, ClassDeactivationUtils.isActivated(classToCheck));

    EditableTestDeactivator.deactivate(classToCheck);
    Assert.assertEquals(true, ClassDeactivationUtils.isActivated(classToCheck)); //due to the cached result
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:13,
代码来源:ProjectStageDependentClassDeactivationTest.java

示例25: deactivationResultInProjectStageSystemTest

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Test
public void deactivationResultInProjectStageSystemTest()
{
    ProjectStageProducer.setProjectStage(ProjectStage.SystemTest);

    final Class<? extends Deactivatable> classToCheck = TestDeactivatable.class;
    EditableTestDeactivator.activate(classToCheck);
    Assert.assertEquals(true, ClassDeactivationUtils.isActivated(classToCheck));

    EditableTestDeactivator.deactivate(classToCheck);
    Assert.assertEquals(true, ClassDeactivationUtils.isActivated(classToCheck)); //due to the cached result
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:13,
代码来源:ProjectStageDependentClassDeactivationTest.java

示例26: vetoCustomProjectStageBeans

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
protected void vetoCustomProjectStageBeans(ProcessAnnotatedType processAnnotatedType)
{
    //currently there is a veto for all project-stage implementations,
    //but we still need @Typed() for the provided implementations in case of the deactivation of this behaviour
    if (ProjectStage.class.isAssignableFrom(processAnnotatedType.getAnnotatedType().getJavaClass()))
    {
        processAnnotatedType.veto();
    }
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:10,
代码来源:ExcludeExtension.java

示例27: war

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Deployment
public static WebArchive war() {
    return BaseTestForProjectStage.war(ProjectStage.Production.toString());
}
 

开发者ID:apache,
项目名称:tomee,
代码行数:5,
代码来源:ProductionProjectStageTest.java

示例28: war

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Deployment
public static WebArchive war() {
    return BaseTestForProjectStage.war(ProjectStage.UnitTest.toString());
}
 

开发者ID:apache,
项目名称:tomee,
代码行数:5,
代码来源:TestingProjectStageTest.java

示例29: war

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Deployment
public static WebArchive war() {
    return BaseTestForProjectStage.war(ProjectStage.Development.toString());
}
 

开发者ID:apache,
项目名称:tomee,
代码行数:5,
代码来源:DevProjectStageTest.java

示例30: projectStage

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Override
public Class<? extends ProjectStage> projectStage()
{
    return defaultInstance.projectStage();
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:6,
代码来源:TestControlLiteral.java

示例31: firstProjectStageTest

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Test
public void firstProjectStageTest()
{
    Assert.assertEquals(ProjectStage.Development, this.projectStage);
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:6,
代码来源:ProjectStageTestControlTest.java

示例32: secondProjectStageTest

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Test
@TestControl(projectStage = ProjectStage.UnitTest.class) //can be a custom stage - e.g. for a special test
public void secondProjectStageTest()
{
    Assert.assertEquals(ProjectStage.UnitTest, this.projectStage);
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:7,
代码来源:ProjectStageTestControlTest.java

示例33: init

点赞 2

import org.apache.deltaspike.core.api.projectstage.ProjectStage; //导入依赖的package包/类
@Before
public void init()
{
    ProjectStageProducer.setProjectStage(ProjectStage.UnitTest);
}
 

开发者ID:apache,
项目名称:deltaspike,
代码行数:6,
代码来源:DefaultTransactionScopedNestedTransactionTest.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)