RSS feed
[root]
/
c02
/
code
/
TI Pattern
/
software design
/
document
testable
test
login:
password:
title search:
Search this site
Enter your search terms
Web
www.carfield.com.hk
Submit search form
Prev
Next
Wed Dec 26 16:00:00 GMT 2001
TestDemo2
//: c02:TestDemo2.java // Inheriting from a class that // already has a test is no problem. import com.bruceeckel.test.*; public class TestDemo2 extends TestDemo { public TestDemo2(String s) { super(s); } // You can even use the same name // as the test class in the base class: public static class Test extends UnitTest { public void testA() { System.out.println("TestDemo2.testA"); affirm(1 + 1 == 2); } public void testB() { System.out.println("TestDemo2.testB"); affirm(2 * 2 == 4); } } } ///:~
(google search)
(amazon search)
1
2
3
second
download zip of files only
Prev
Next