use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class SimpleAlarmModelTest method assemble.
@SuppressWarnings({ "unchecked" })
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(TestAlarmModel.class);
module.services(AlarmSystemService.class);
new EntityTestAssembler().assemble(module);
module.entities(AlarmPointEntity.class);
module.values(AlarmEvent.class);
module.values(AlarmCategory.class);
module.values(AlarmStatus.class);
module.forMixin(AlarmHistory.class).declareDefaults().maxSize().set(10);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class StandardAlarmModelTest method assemble.
@SuppressWarnings({ "unchecked" })
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(TestAlarmModel.class);
module.services(AlarmSystemService.class);
new EntityTestAssembler().assemble(module);
module.entities(AlarmPointEntity.class);
module.values(AlarmEvent.class);
module.values(AlarmCategory.class);
module.values(AlarmStatus.class);
module.forMixin(AlarmHistory.class).declareDefaults().maxSize().set(10);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class AlarmHistoryImplTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(TestAlarmModel.class);
module.services(AlarmSystemService.class);
module.entities(AlarmPointEntity.class);
new EntityTestAssembler().assemble(module);
module.values(AlarmStatus.class);
module.values(AlarmCategory.class);
module.values(AlarmEvent.class);
module.entities(AlarmPointEntity.class);
module.forMixin(AlarmHistory.class).declareDefaults().maxSize().set(30);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class EntitySerializerTest method assemble.
public void assemble(ModuleAssembly module) throws AssemblyException {
new EntityTestAssembler().assemble(module);
new OrgJsonValueSerializationAssembler().assemble(module);
module.entities(TestEntity.class);
module.values(TestValue.class, Test2Value.class);
module.objects(EntityStateSerializer.class, EntitySerializerTest.class);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class TracingTest method assemble.
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(SomeService.class).instantiateOnStartup();
module.services(SomeService2.class).instantiateOnStartup();
new TracingAssembler().assemble(module);
new EntityTestAssembler().assemble(module);
new RdfMemoryStoreAssembler().assemble(module);
module.services(UuidIdentityGeneratorService.class);
module.entities(CompositeTraceRecordEntity.class);
module.entities(EntityTraceRecordEntity.class);
module.entities(ServiceTraceRecordEntity.class);
}
Aggregations