Search in sources :

Example 71 with EntityTestAssembler

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);
}
Also used : EntityTestAssembler(org.qi4j.test.EntityTestAssembler)

Example 72 with EntityTestAssembler

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);
}
Also used : FileConfigurationService(org.qi4j.library.fileconfig.FileConfigurationService) EntityTestAssembler(org.qi4j.test.EntityTestAssembler)

Example 73 with EntityTestAssembler

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);
}
Also used : EntityTestAssembler(org.qi4j.test.EntityTestAssembler)

Example 74 with EntityTestAssembler

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
}
Also used : ModuleAssembly(org.qi4j.bootstrap.ModuleAssembly) EntityTestAssembler(org.qi4j.test.EntityTestAssembler)

Example 75 with EntityTestAssembler

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);
}
Also used : EntityTestAssembler(org.qi4j.test.EntityTestAssembler)

Aggregations

EntityTestAssembler (org.qi4j.test.EntityTestAssembler)137 ModuleAssembly (org.qi4j.bootstrap.ModuleAssembly)51 OrgJsonValueSerializationAssembler (org.qi4j.valueserialization.orgjson.OrgJsonValueSerializationAssembler)20 SingletonAssembler (org.qi4j.bootstrap.SingletonAssembler)13 RdfMemoryStoreAssembler (org.qi4j.index.rdf.assembly.RdfMemoryStoreAssembler)10 Test (org.junit.Test)9 FileConfigurationService (org.qi4j.library.fileconfig.FileConfigurationService)8 DataSourceAssembler (org.qi4j.library.sql.assembly.DataSourceAssembler)8 NativeConfiguration (org.qi4j.library.rdf.repository.NativeConfiguration)7 AssemblyException (org.qi4j.bootstrap.AssemblyException)6 ShiroIniConfiguration (org.qi4j.library.shiro.ini.ShiroIniConfiguration)6 DBCPDataSourceServiceAssembler (org.qi4j.library.sql.dbcp.DBCPDataSourceServiceAssembler)6 File (java.io.File)5 UnitOfWork (org.qi4j.api.unitofwork.UnitOfWork)5 RdfNativeSesameStoreAssembler (org.qi4j.index.rdf.assembly.RdfNativeSesameStoreAssembler)5 Module (org.qi4j.api.structure.Module)4 JdbmConfiguration (org.qi4j.entitystore.jdbm.JdbmConfiguration)4 JdbmEntityStoreAssembler (org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler)4 ESFilesystemIndexQueryAssembler (org.qi4j.index.elasticsearch.assembly.ESFilesystemIndexQueryAssembler)4 CurrentUserUoWPrincipal (org.qi4j.library.eventsourcing.domain.factory.CurrentUserUoWPrincipal)4