diff options
author | ehilsdal <ehilsdal> | 2003-08-28 16:04:53 +0000 |
---|---|---|
committer | ehilsdal <ehilsdal> | 2003-08-28 16:04:53 +0000 |
commit | bfad02fdb1896db16facfe6a93dd9b4125518de2 (patch) | |
tree | b8824d3075a294688e00138f556c919213e8dd02 /docs/teaching/exercises/tests/Test2e.java | |
parent | 094127ec8a9353d832ba1601acdbf743f7442a8c (diff) | |
download | aspectj-bfad02fdb1896db16facfe6a93dd9b4125518de2.tar.gz aspectj-bfad02fdb1896db16facfe6a93dd9b4125518de2.zip |
removed unnecessary constructors and untabified
Diffstat (limited to 'docs/teaching/exercises/tests/Test2e.java')
-rw-r--r-- | docs/teaching/exercises/tests/Test2e.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/teaching/exercises/tests/Test2e.java b/docs/teaching/exercises/tests/Test2e.java index 09ab65790..6ec31d608 100644 --- a/docs/teaching/exercises/tests/Test2e.java +++ b/docs/teaching/exercises/tests/Test2e.java @@ -17,23 +17,22 @@ import figures.*; import junit.framework.*; public class Test2e extends TestCase { - public Test2e(String name) { super(name); } public static void main(String[] args) { junit.textui.TestRunner.run(Test.class); junit.textui.TestRunner.run(Test2e.class); } - public void testSloth() { - Point sp = new SlothfulPoint(10, 10); + public void testNonMoving() { + Point sp = new Point(10, 10) { public void move(int x, int y) {} }; try { sp.move(10, 10); fail("should have thrown IllegalStateException"); } catch (IllegalStateException e) { } } - public void testNonSloth() { - Point p1 = new Point(10, 100); + public void testMoving() { + Point p1 = new Point(10, 100); p1.move(3, 30); } } |