当前位置: 首页>>代码示例>>Java>>正文


Java IsisSystemForTest类代码示例

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


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

示例1: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
public static void initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if(isft == null) {
        isft = new IsisSystemForTest.Builder()
                .withLoggingAt(org.apache.log4j.Level.INFO)
                .with(new DomainAppAppManifest() {
                    @Override
                    public Map<String, String> getConfigurationProperties() {
                        final Map<String, String> map = Maps.newHashMap();
                        Util.withJavaxJdoRunInMemoryProperties(map);
                        Util.withDataNucleusProperties(map);
                        Util.withIsisIntegTestProperties(map);
                        return map;
                    }
                })
                .build();
        isft.setUpSystem();
        IsisSystemForTest.set(isft);
    }
}
 
开发者ID:bibryam,项目名称:rotabuilder,代码行数:21,代码来源:DomainAppSystemInitializer.java

示例2: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
public static void initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if(isft == null) {
        isft = new IsisSystemForTest.Builder()
                .withLoggingAt(org.apache.log4j.Level.INFO)
                .with(new PacinetesAppAppManifest() {
                    @Override
                    public Map<String, String> getConfigurationProperties() {
                        final Map<String, String> map = Maps.newHashMap();
                        Util.withJavaxJdoRunInMemoryProperties(map);
                        Util.withDataNucleusProperties(map);
                        Util.withIsisIntegTestProperties(map);
                        return map;
                    }
                })
                .build();
        isft.setUpSystem();
        IsisSystemForTest.set(isft);
    }
}
 
开发者ID:leandrogonqn,项目名称:Proyecto2017Seguros,代码行数:21,代码来源:DomainAppSystemInitializer.java

示例3: apply

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
@Override
public Statement apply(final Statement base, final FrameworkMethod method, final Object target) {
    final IsisSystemForTest isft = getIsisSystemForTest(); // creates and starts running if required
    return new Statement() {
        @Override
        public void evaluate() throws Throwable {
            isft.beginTran();
            base.evaluate();
            // if an exception is thrown by any test, then we don't attempt to cleanup (eg by calling bounceSystem)#
            // because - in any case - we only ever install the fixtures once for ALL of the tests.
            // therefore, just fix the first test that fails and don't worry about any other test failures beyond that
            // (fix them up one by one)
            isft.commitTran();
        }
    };
}
 
开发者ID:bhargavgolla,项目名称:isisJavaScript,代码行数:17,代码来源:AbstractIntegTest.java

示例4: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
public static void initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if(isft == null) {
        isft = new IsisSystemForTest.Builder()
                .withLoggingAt(org.apache.log4j.Level.INFO)
                .with(new EcpCrmAppManifest())
                .with(new IsisConfigurationForJdoIntegTests())
                .build();
        isft.setUpSystem();
        IsisSystemForTest.set(isft);
    }
}
 
开发者ID:incodehq,项目名称:ecpcrm,代码行数:13,代码来源:EcpCrmSystemInitializer.java

示例5: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
public static void initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if(isft == null) {
        isft = new IsisSystemForTest.Builder()
                .withLoggingAt(org.apache.log4j.Level.INFO)
                .with(new DomainAppAppManifest())
                .with(new IsisConfigurationForJdoIntegTests())
                .build();
        isft.setUpSystem();
        IsisSystemForTest.set(isft);
    }
}
 
开发者ID:isisaddons-legacy,项目名称:isis-app-quickstart,代码行数:13,代码来源:DomainAppSystemInitializer.java

示例6: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
public static void initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if(isft == null) {
        isft = new IsisSystemForTest.Builder()
                .withLoggingAt(org.apache.log4j.Level.INFO)
                .with(new DomainAppAppManifest())
                .with(new IsisConfigurationForJdoIntegTests())
                .build()
                .setUpSystem();
        IsisSystemForTest.set(isft);
    }
}
 
开发者ID:isisaddons,项目名称:isis-app-simpledsl,代码行数:13,代码来源:DomainAppSystemInitializer.java

示例7: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
public static IsisSystemForTest initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if(isft == null) {
        isft = IsisSystemForTest.builder()
                .withLoggingAt(org.apache.log4j.Level.INFO)
                .with(new IsisConfigurationForJdoIntegTests())
                .with(new ToDoAppAppManifest())
                .with(new AuthenticationRequestNameOnly("todoapp-admin"))
                .build()
                .setUpSystem();
        IsisSystemForTest.set(isft);
    }
    return isft;
}
 
开发者ID:isisaddons,项目名称:isis-app-todoapp,代码行数:15,代码来源:ToDoAppSystemInitializer.java

示例8: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
public static IsisSystemForTest initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if(isft == null) {
        isft = new SimpleAppSystemBuilder().build().setUpSystem();
        IsisSystemForTest.set(isft);
    }
    return isft;
}
 
开发者ID:danhaywood,项目名称:isis-app-petclinic,代码行数:9,代码来源:PetClinicAppSystemInitializer.java

示例9: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
public static IsisSystemForTest initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if(isft == null) {
        isft = new ToDoSystemBuilder().build().setUpSystem();
        IsisSystemForTest.set(isft);
    }
    return isft;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:9,代码来源:ToDoSystemInitializer.java

示例10: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
public static void initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if(isft == null) {
        isft = new IsisSystemForTest.Builder()
                .with(new KitchensinkAppManifest())
                .with(new IsisConfigurationForJdoIntegTests())
                .build()
                .setUpSystem();
        IsisSystemForTest.set(isft);
    }
}
 
开发者ID:isisaddons,项目名称:isis-app-kitchensink,代码行数:12,代码来源:KitchensinkAppSystemInitializer.java

示例11: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
public static IsisSystemForTest initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if(isft == null) {
        isft = new IsisSystemForTest.Builder()
                .withLoggingAt(Level.INFO)
                .with(new AuditAppManifest())
                .with(new IsisConfigurationForJdoIntegTests())
                .build()
                .setUpSystem();
        IsisSystemForTest.set(isft);
    }
    return isft;
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-audit,代码行数:14,代码来源:AuditModuleSystemInitializer.java

示例12: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
public static IsisSystemForTest initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if(isft == null) {
        isft = new IsisSystemForTest.Builder()
                .withLoggingAt(org.apache.log4j.Level.INFO)
                .with(new ExcelAppManifest())
                .with(new IsisConfigurationForJdoIntegTests())
                .build()
                .setUpSystem();
        IsisSystemForTest.set(isft);
    }
    return isft;
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-excel,代码行数:14,代码来源:ExcelModuleModuleSystemInitializer.java

示例13: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
public static IsisSystemForTest initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if(isft == null) {
        isft = new IsisSystemForTest.Builder()
                .withLoggingAt(Level.INFO)
                .with(new SettingsAppManifest())
                .with(new IsisConfigurationForJdoIntegTests())
                .build()
                .setUpSystem();
        IsisSystemForTest.set(isft);
    }
    return isft;
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-settings,代码行数:14,代码来源:SettingsModuleSystemInitializer.java

示例14: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
/**
 * Holds an instance of an {@link org.apache.isis.core.integtestsupport.IsisSystemForTest} as a {@link ThreadLocal} on
 * the current thread, initialized with Estatio's domain services and with
 * {@link org.estatio.fixture.EstatioBaseLineFixture reference data fixture}.
 */
private static IsisSystemForTest initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if (isft == null) {
        isft = new EstatioIntegTestBuilderForMigration().build().setUpSystem();
        IsisSystemForTest.set(isft);
    }
    return isft;
}
 
开发者ID:estatio,项目名称:estatio,代码行数:14,代码来源:EstatioIntegrationTestForMigration.java

示例15: initIsft

import org.apache.isis.core.integtestsupport.IsisSystemForTest; //导入依赖的package包/类
public static IsisSystemForTest initIsft() {
    IsisSystemForTest isft = IsisSystemForTest.getElseNull();
    if(isft == null) {
        isft = new IsisSystemForTest.Builder()
                .withLoggingAt(org.apache.log4j.Level.INFO)
                .with(new AppManifest() {
                    @Override
                    public List<Class<?>> getModules() {
                        return Lists.<Class<?>>newArrayList(
                                SecurityModule.class
                        );
                    }

                    @Override
                    public List<Class<?>> getAdditionalServices() {
                        return null;
                    }

                    @Override
                    public String getAuthenticationMechanism() {
                        return null;
                    }

                    @Override
                    public String getAuthorizationMechanism() {
                        return null;
                    }

                    @Override
                    public List<Class<? extends FixtureScript>> getFixtures() {
                        return null;
                    }

                    @Override
                    public Map<String, String> getConfigurationProperties() {
                        return null;
                    }
                })
                .with(new IsisConfigurationForJdoIntegTests())
                .build()
                .setUpSystem();
        IsisSystemForTest.set(isft);
    }
    return isft;
}
 
开发者ID:isisaddons-legacy,项目名称:isis-module-security,代码行数:46,代码来源:SecurityModuleAppSystemInitializer.java


注:本文中的org.apache.isis.core.integtestsupport.IsisSystemForTest类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。