use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class NoMetricsInstalledTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.entities(Person.class);
new EntityTestAssembler().assemble(module);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class SolrQueryServiceTest method assemble.
public void assemble(ModuleAssembly module) throws AssemblyException {
module.layer().application().setMode(Application.Mode.test);
module.services(FileConfigurationService.class).instantiateOnStartup();
new EntityTestAssembler().assemble(module);
// START SNIPPET: assembly
new SolrAssembler().assemble(module);
// END SNIPPET: assembly
module.entities(TestEntity.class);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class EntityBuilderWithStateTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
new EntityTestAssembler().assemble(module);
module.entities(SomeEntity.class);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class MemcacheCachePoolTest method assemble.
@Override
public // START SNIPPET: assembly
void assemble(ModuleAssembly module) throws AssemblyException {
// END SNIPPET: assembly
ModuleAssembly confModule = module.layer().module("confModule");
new EntityTestAssembler().visibleIn(Visibility.layer).assemble(confModule);
// START SNIPPET: assembly
new MemcacheAssembler().visibleIn(Visibility.module).withConfig(confModule, Visibility.layer).assemble(module);
// END SNIPPET: assembly
MemcacheConfiguration memcacheConf = confModule.forMixin(MemcacheConfiguration.class).declareDefaults();
memcacheConf.protocol().set("binary");
//memcacheConf.username().set( "foo" );
//memcacheConf.password().set( "bar" );
// START SNIPPET: assembly
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class ValueCompositeTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.values(SomeValue.class, AnotherValue.class, AssociationValue.class);
module.entities(SomeEntity.class);
new EntityTestAssembler().assemble(module);
}
Aggregations