* @param harness the test harness to use
*/
private void testUnknownLayer(TestHarness harness)
{
harness.checkPoint("unknownLayer");
JLayeredPane l = new JLayeredPane();
// We add one component to layer 1 and one to layer 3 and check what
// happens when we request the components in layer -1 (negative), 0
// (positive and less then the minimum layer), 2 (between the layers),
// 4 (greater than the maximum layer).
JLabel l1 = new JLabel("Hello");
l.setLayer(l1, 1);
l.add(l1);
JLabel l2 = new JLabel("World");
l.setLayer(l2, 3);
l.add(l2);
harness.check(l.getComponentsInLayer(-1).length, 0);
harness.check(l.getComponentsInLayer(-0).length, 0);
harness.check(l.getComponentsInLayer(-2).length, 0);
harness.check(l.getComponentsInLayer(-4).length, 0);
}