a_iNumRows = ppc.getNumberRows(1);
assertEquals(a_iNumRows, 3);
// Check the fragments
Fragment a_oFrag = ppc
.getFragmentAtNewCoordinate(new CoordinateImpl(0, 0, 0, 0));
assertNotNull("null fragment found at 0,0", a_oFrag);
assertEquals(a_oFrag.getId(), "1");
assertEquals(a_oFrag.getName(), "frag1");
a_oFrag = ppc.getFragmentAtNewCoordinate(new CoordinateImpl(0, 1,
0, 1));
assertNotNull("null fragment found at 0,1", a_oFrag);
assertEquals(a_oFrag.getId(), "2");
assertEquals(a_oFrag.getName(), "frag2");
a_oFrag = ppc.getFragmentAtNewCoordinate(new CoordinateImpl(1, 0,
1, 0));
assertNotNull("null fragment found at 1,0", a_oFrag);
assertEquals(a_oFrag.getId(), "3");
assertEquals(a_oFrag.getName(), "frag3");
a_oFrag = ppc.getFragmentAtNewCoordinate(new CoordinateImpl(1, 1,
1, 1));
assertNotNull("null fragment found at 1,1", a_oFrag);
assertEquals(a_oFrag.getId(), "4");
assertEquals(a_oFrag.getName(), "frag4");
a_oFrag = ppc.getFragmentAtNewCoordinate(new CoordinateImpl(1, 2,
1, 2));
assertNotNull("null fragment found at 1,2", a_oFrag);
assertEquals(a_oFrag.getId(), "5");
assertEquals(a_oFrag.getName(), "frag5");