Update of /cvsroot/xdoclet/xdoclet2/src/test/java/xdoclet/util/predicates
In directory sc8-pr-cvs1:/tmp/cvs-serv30662/src/test/java/xdoclet/util/predicates
Added Files:
SimplePredicateFactoryTest.java
Log Message:
Initial entry.
--- NEW FILE: SimplePredicateFactoryTest.java ---
package xdoclet.util.predicates;
import junit.framework.TestCase;
/**
* @version $Revision: 1.1 $
* @author <a href="mailto:[EMAIL PROTECTED]">Mathias Bogaert</a>
*/
public class SimplePredicateFactoryTest extends TestCase {
public void testSimplePredicateFactory() {
SimplePredicateFactory factory = new SimplePredicateFactory();
try {
try {
factory.createPredicate(null);
}
catch (PredicateException e) {
fail("caught PredicateException for factory.createPredicate(null)
instead of IllegalArgument");
e.printStackTrace();
}
fail("factory.createPredicate(null) does not throw
IllegalArgumentException");
}
catch (IllegalArgumentException e) {
// good
}
try {
factory.createPredicate("");
fail("factory.createPredicate(\"\") does not throw PredicateException");
}
catch (PredicateException e) {
// good
}
}
}
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel