diff options
Diffstat (limited to 'docs/teaching/exercises/tests/Test.java')
-rw-r--r-- | docs/teaching/exercises/tests/Test.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/docs/teaching/exercises/tests/Test.java b/docs/teaching/exercises/tests/Test.java index e4f5b60f9..17d8b12e6 100644 --- a/docs/teaching/exercises/tests/Test.java +++ b/docs/teaching/exercises/tests/Test.java @@ -1,13 +1,13 @@ /* ******************************************************************* * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). - * All rights reserved. - * This program and the accompanying materials are made available - * under the terms of the Common Public License v1.0 - * which accompanies this distribution and is available at - * http://www.eclipse.org/legal/cpl-v10.html - * - * Contributors: - * PARC initial implementation + * All rights reserved. + * This program and the accompanying materials are made available + * under the terms of the Common Public License v1.0 + * which accompanies this distribution and is available at + * http://www.eclipse.org/legal/cpl-v10.html + * + * Contributors: + * PARC initial implementation * ******************************************************************/ package tests; @@ -31,12 +31,12 @@ public class Test extends TestCase { Group g; public void setUp() { - p1 = new Point(10, 100); - p2 = new Point(20, 200); - l1 = new Line(p1, p2); + p1 = new Point(10, 100); + p2 = new Point(20, 200); + l1 = new Line(p1, p2); bb = new Box(5, 5, 10, 10); sloth1 = new SlothfulPoint(0, 0); - g = new Group(p1); + g = new Group(p1); } public final void testCreate() { @@ -48,17 +48,17 @@ public class Test extends TestCase { } public final void testSetPoint() { - p1.setX(20); + p1.setX(20); assertEquals(p1.getX(), 20); assertEquals(p1.getY(), 100); - p1.setY(10); + p1.setY(10); assertEquals(p1.getX(), 20); assertEquals(p1.getY(), 10); } public final void testMoveLine1() { - l1.move(40, 40); + l1.move(40, 40); assertEquals(l1.getP1(), p1); assertEquals(l1.getP2(), p2); @@ -70,7 +70,7 @@ public class Test extends TestCase { } public final void testMoveLine2() { - l1.move(-10, -10); + l1.move(-10, -10); assertEquals(p1.getX(), 0); assertEquals(p1.getY(), 90); |