Search in sources :

Example 16 with EntityTestAssembler

use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.

the class QueryPerformanceTest method createConfigurationLayer.

private LayerAssembly createConfigurationLayer(ApplicationAssembly applicationAssembly) throws AssemblyException {
    LayerAssembly layer = applicationAssembly.layer(LAYER_CONFIGURATION);
    ModuleAssembly module = layer.module(MODULE_CONFIG);
    module.entities(NativeConfiguration.class).visibleIn(Visibility.application);
    module.entities(JdbmConfiguration.class).visibleIn(Visibility.application);
    new EntityTestAssembler().assemble(module);
    return layer;
}
Also used : JdbmConfiguration(org.qi4j.entitystore.jdbm.JdbmConfiguration) EntityTestAssembler(org.qi4j.test.EntityTestAssembler) NativeConfiguration(org.qi4j.library.rdf.repository.NativeConfiguration)

Example 17 with EntityTestAssembler

use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.

the class JdbmEntityStorePerformanceTest method createAssembler.

private static Assembler createAssembler() {
    return new Assembler() {

        public void assemble(ModuleAssembly module) throws AssemblyException {
            new JdbmEntityStoreAssembler(Visibility.module).assemble(module);
            ModuleAssembly configModule = module.layer().module("Config");
            configModule.entities(JdbmConfiguration.class).visibleIn(Visibility.layer);
            new EntityTestAssembler(Visibility.module).assemble(configModule);
            module.services(EhCachePoolService.class);
            configModule.entities(EhCacheConfiguration.class).visibleIn(Visibility.layer);
        }
    };
}
Also used : ModuleAssembly(org.qi4j.bootstrap.ModuleAssembly) JdbmConfiguration(org.qi4j.entitystore.jdbm.JdbmConfiguration) EntityTestAssembler(org.qi4j.test.EntityTestAssembler) EhCacheConfiguration(org.qi4j.cache.ehcache.EhCacheConfiguration) EhCacheAssembler(org.qi4j.cache.ehcache.assembly.EhCacheAssembler) JdbmEntityStoreAssembler(org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler) Assembler(org.qi4j.bootstrap.Assembler) EntityTestAssembler(org.qi4j.test.EntityTestAssembler) JdbmEntityStoreAssembler(org.qi4j.entitystore.jdbm.assembly.JdbmEntityStoreAssembler)

Example 18 with EntityTestAssembler

use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.

the class EnvisageSample method assemble.

@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
    module.entities(CarEntity.class);
    module.entities(AnimalEntity.class);
    new RdfMemoryStoreAssembler().assemble(module);
    new EntityTestAssembler().assemble(module);
}
Also used : RdfMemoryStoreAssembler(org.qi4j.index.rdf.assembly.RdfMemoryStoreAssembler) EntityTestAssembler(org.qi4j.test.EntityTestAssembler)

Example 19 with EntityTestAssembler

use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.

the class QI273Test method assemble.

public void assemble(ModuleAssembly module) throws AssemblyException {
    new EntityTestAssembler().assemble(module);
    module.entities(SomeDomainEntity.class);
}
Also used : EntityTestAssembler(org.qi4j.test.EntityTestAssembler)

Example 20 with EntityTestAssembler

use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.

the class RemovalTest method assemble.

public void assemble(ModuleAssembly module) throws AssemblyException {
    module.entities(TestEntity.class);
    module.entities(PidRegulator.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