use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class DeclareConfigurationDefaultsTest method assemble.
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(FooServiceComposite.class).identifiedBy("bazar");
module.entities(FooConfigurationComposite.class);
new EntityTestAssembler().assemble(module);
FooConfigurationComposite config = module.forMixin(FooConfigurationComposite.class).declareDefaults();
config.foo().set("bar");
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class StateFieldTest method assemble.
public void assemble(ModuleAssembly module) throws AssemblyException {
new EntityTestAssembler().assemble(module);
module.entities(PersonEntity.class);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class ConfigurationTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.services(MyService.class).instantiateOnStartup();
module.entities(MyConfig.class);
module.values(PersonDetails.class, Address.class, City.class, Country.class);
new EntityTestAssembler().assemble(module);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class PropertyErrorTest method assemble.
public void assemble(ModuleAssembly module) throws AssemblyException {
new EntityTestAssembler().assemble(module);
module.entities(PersonEntity.class);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class IterableQuerySourceTest method setUp.
@Before
public void setUp() throws UnitOfWorkCompletionException, ActivationException, AssemblyException {
SingletonAssembler assembler = new SingletonAssembler() {
public void assemble(ModuleAssembly module) throws AssemblyException {
Iterable<Class<?>> entities = ClassScanner.findClasses(DomainEntity.class);
for (Class entity : entities) {
module.entities(entity);
}
module.values(ContactsValue.class, ContactValue.class);
new EntityTestAssembler().assemble(module);
}
};
uow = assembler.module().newUnitOfWork();
Network.populate(uow, assembler.module());
uow.complete();
uow = assembler.module().newUnitOfWork();
Network.refresh(uow);
qbf = assembler.module();
}
Aggregations