本文整理汇总了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);
}
}
示例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);
}
}
示例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();
}
};
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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