[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Links]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[SamR]
[Java 1.4.2 API]
[Ant Documentation]
Back to BugWorld Presentations. On to Swing (1).
Held: Wednesday, 6 October 2004
Summary: Today we consider general issues with unit testing as well as the particulars of the JUnit testing framework.
Related Pages:
Notes:
Overview:
pair.
getX and getY methods. How do I do so?
getAngle and getRadius.
rotate method.
unitVector method.
/usr/share/java/junit.jar
junit.framework.TestCase.
test.
assert and assertEquals.
setUp (note capitalization) which gets called before each test.
suite method that returns a junit.framework.Test.
suite is as follows.
public static junit.framework.Test suite() {
return new junit.framework.TestSuite(TestClass.class);
}
public static Test suite() {
TestSuite suite= new TestSuite();
suite.addTest(new TestClass("testMethod1"));
suite.addTest(new TestClass("testMethod2"));
return suite;
}
Back to BugWorld Presentations. On to Swing (1).
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Links]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[SamR]
[Java 1.4.2 API]
[Ant Documentation]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Mon Dec 6 08:50:06 2004.
The source to the document was last modified on Mon Aug 30 08:01:15 2004.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS223/2004F/Outlines/outline.18.html.
You may wish to
validate this document's HTML
;
;
Check with Bobby