1 /* 2 * Copyright (c) 2002-2003 The XDoclet Team. 3 * All rights reserved. 4 */ 5 6 package xdoclet.util.predicates; 7 8 import junit.framework.TestCase; 9 10 /*** 11 * @version $Revision: 1.3 $ 12 * @author <a href="mailto:mbo@jcs.be">Mathias Bogaert</a> 13 */ 14 public class OrTest extends TestCase { 15 public OrTest(String s) { 16 super(s); 17 } 18 19 public void testOr() { 20 Or trueOrFalse = new Or(); 21 trueOrFalse.add(new True()); 22 trueOrFalse.add(new False()); 23 assertTrue(trueOrFalse.evaluate(null)); 24 25 Or falseOrFalse = new Or(); 26 falseOrFalse.add(new False()); 27 falseOrFalse.add(new False()); 28 assertTrue(!falseOrFalse.evaluate(null)); 29 30 Or trueOrTrue = new Or(); 31 trueOrTrue.add(new True()); 32 trueOrTrue.add(new True()); 33 assertTrue(trueOrTrue.evaluate(null)); 34 } 35 }

This page was automatically generated by Maven