use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class InterfaceCollisionWithRelatedReturnTypesTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
new EntityTestAssembler().assemble(module);
module.entities(Employee.class, Company.class);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class SetAssociationInSideEffectTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
new EntityTestAssembler().assemble(module);
module.entities(Pianist.class, Steinway.class);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class AutoCloseableUoWTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
new EntityTestAssembler().assemble(module);
module.entities(TestEntity.class);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class ImmenseTermTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
// Config module
ModuleAssembly config = module.layer().module("config");
new EntityTestAssembler().assemble(config);
// EntityStore
new EntityTestAssembler().assemble(module);
// Index/Query
new ESFilesystemIndexQueryAssembler().withConfig(config, Visibility.layer).assemble(module);
ElasticSearchConfiguration esConfig = config.forMixin(ElasticSearchConfiguration.class).declareDefaults();
esConfig.indexNonAggregatedAssociations().set(Boolean.TRUE);
// FileConfig
FileConfigurationOverride override = new FileConfigurationOverride().withData(new File(DATA_DIR, "qi4j-data")).withLog(new File(DATA_DIR, "qi4j-logs")).withTemporary(new File(DATA_DIR, "qi4j-temp"));
module.services(FileConfigurationService.class).setMetaInfo(override);
// Entities & Values
module.entities(TestEntity.class, TestEntity2.class);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class NestedValuesConversionTest method assemble.
@Override
public void assemble(ModuleAssembly ma) throws AssemblyException {
new EntityToValueAssembler().assemble(ma);
new EntityTestAssembler().assemble(ma);
ma.entities(FooEntity.class);
ma.values(FooValue.class, BarValue.class);
}
Aggregations