MatrixData matrix = new MatrixData(8, 8);
IFader fader = new Switch(matrix, 50);
List<OutputMapping> ioMapping = new ArrayList<OutputMapping>();
for (int n=0; n<panels+panels; n++) {
ioMapping.add(new OutputMapping(fader, n));
}
//testcase#1: each output has a visual assigned
LayoutModel lom0 = l.getDataForScreen(0, ioMapping);
assertEquals(0, lom0.getOfsX());
assertEquals(0, lom0.getOfsY());
assertEquals(1, lom0.getSameFxOnX());
assertEquals(1, lom0.getSameFxOnY());
assertEquals(0, lom0.getVisualId());
assertEquals(true, lom0.screenDoesNotNeedStretching());
//testcase#2: visual 0 is displayed on ALL outputs
ioMapping.clear();
for (int n=0; n<panels+panels; n++) {
ioMapping.add(new OutputMapping(fader, 0));
}
lom0 = l.getDataForScreen(0, ioMapping);
assertEquals(0, lom0.getOfsX());
assertEquals(0, lom0.getOfsY());
assertEquals(panels, lom0.getSameFxOnX());