RSS feed
[root]
/
test
/
bruceeckel
/
com
/
code
/
TI Pattern
/
software design
/
document
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
UnitTest
//: com:bruceeckel:test:UnitTest.java // The basic unit testing class package com.bruceeckel.test; import java.util.*; public class UnitTest { static String testID; static List errors = new ArrayList(); // Override cleanup() if test object // creation allocates non-memory // resources that must be cleaned up: protected void cleanup() {} // Verify the truth of a condition: protected final void affirm(boolean condition){ if(!condition) errors.add("failed: " + testID); } } ///:~
(google search)
(amazon search)
1
2
3
second
download zip of files only
Prev
Next