use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class ElasticSearchComplexQueryTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
super.assemble(module);
// Config module
ModuleAssembly config = module.layer().module("config");
new EntityTestAssembler().assemble(config);
// Index/Query
new ESFilesystemIndexQueryAssembler().withConfigModule(config).withConfigVisibility(Visibility.layer).assemble(module);
ElasticSearchConfiguration esConfig = config.forMixin(ElasticSearchConfiguration.class).declareDefaults();
esConfig.indexNonAggregatedAssociations().set(Boolean.TRUE);
// FileConfig
FileConfigurationOverride override = new FileConfigurationOverride().withData(new File("build/qi4j-data")).withLog(new File("build/qi4j-logs")).withTemporary(new File("build/qi4j-temp"));
module.services(FileConfigurationService.class).setMetaInfo(override);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class MySQLEntityStoreTest method assemble.
@Override
public // START SNIPPET: assembly
void assemble(ModuleAssembly module) throws AssemblyException {
// END SNIPPET: assembly
super.assemble(module);
ModuleAssembly config = module.layer().module("config");
new EntityTestAssembler().assemble(config);
new OrgJsonValueSerializationAssembler().assemble(module);
// START SNIPPET: assembly
// DataSourceService
new DBCPDataSourceServiceAssembler().identifiedBy("mysql-datasource-service").visibleIn(Visibility.module).withConfig(config).withConfigVisibility(Visibility.layer).assemble(module);
// DataSource
new DataSourceAssembler().withDataSourceServiceIdentity("mysql-datasource-service").identifiedBy("mysql-datasource").visibleIn(Visibility.module).withCircuitBreaker().assemble(module);
// SQL EntityStore
new MySQLEntityStoreAssembler().visibleIn(Visibility.application).withConfig(config).withConfigVisibility(Visibility.layer).assemble(module);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class PropertyTypeTest method assemble.
public void assemble(ModuleAssembly module) throws AssemblyException {
new EntityTestAssembler().assemble(module);
module.entities(PersonEntity.class);
module.transients(PersonComposite.class);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class UnitOfWorkInjectionTest method assemble.
public void assemble(ModuleAssembly module) throws AssemblyException {
module.entities(TrialEntity.class);
new EntityTestAssembler().assemble(module);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class ImmutableAssociationTest method assemble.
public void assemble(ModuleAssembly module) throws AssemblyException {
new EntityTestAssembler().assemble(module);
module.entities(PersonEntity.class);
}
Aggregations