@Test
public void createApplicationUsingArrayOfAssemblers()
throws AssemblyException
{
Energy4Java boot = new Energy4Java();
Assembler[][][] assemblers = new Assembler[][][]
{
{ // User Interface layer
{
new ViewAssembler()
}
},
{ // Application layer
{
new DomainApplicationAssembler()
}
},
{ // Domain layer
{
new DomainModelAssembler()
}
},
{ // Infrastructure layer
{
new InfrastructureAssembler()
}
}
};
boot.newApplication( new ApplicationAssemblerAdapter( assemblers )
{
} );
}