use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class HasUoWFileTest method assemble.
@Override
public // START SNIPPET: assembly
void assemble(ModuleAssembly module) throws AssemblyException {
new UoWFileAssembler().assemble(module);
module.entities(TestedEntity.class).withMixins(TestedFileLocatorMixin.class);
// END SNIPPET: assembly
module.services(TestService.class);
new EntityTestAssembler().assemble(module);
// START SNIPPET: assembly
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class AbstractAnyQueryTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
// @formatter:off
module.entities(MaleEntity.class, FemaleEntity.class, CityEntity.class, DomainEntity.class, AccountEntity.class, CatEntity.class);
module.values(URL.class, Address.class, Protocol.class, Host.class, Port.class, File.class, QueryParam.class);
// @formatter:on
new EntityTestAssembler().assemble(module);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class AbstractNamedQueryTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
super.assemble(module);
new EntityTestAssembler().assemble(module);
String[] query = queryStrings();
for (int i = 0; i < query.length; i++) {
String queryName = String.format("script%02d", i + 1);
if (query[i].length() != 0) {
Specification<Composite> expression = createNamedQueryDescriptor(queryName, query[i]);
queries.put(queryName, expression);
}
}
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class AbstractValueCompositeSerializationTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
module.values(SomeValue.class, AnotherValue.class, FooValue.class, CustomFooValue.class, SpecificCollection.class);
new EntityTestAssembler().assemble(module);
module.entities(BarEntity.class);
}
use of org.qi4j.test.EntityTestAssembler in project qi4j-sdk by Qi4j.
the class EhCacheTest method assemble.
@Override
public void assemble(ModuleAssembly module) throws AssemblyException {
new EhCacheAssembler(Visibility.module).assemble(module);
ModuleAssembly confModule = module.layer().module("confModule");
new EntityTestAssembler(Visibility.layer).assemble(confModule);
}
Aggregations