Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/1.4/test/mockobjects
In directory usw-pr-cvs1:/tmp/cvs-serv32087/src/jdk/1.4/test/mockobjects
Added Files:
MatchesTest.java
Removed Files:
Test_Matches.java
Log Message:
Renamed Test_Matches to MatchesTest to match other test classes
--- NEW FILE: MatchesTest.java ---
/*
* Date: 21-Oct-2002
*/
package test.mockobjects;
import com.mockobjects.dynamic.Matches;
import com.mockobjects.dynamic.Predicate;
import junit.framework.TestCase;
public class MatchesTest extends TestCase {
public MatchesTest(String name) {
super(name);
}
public void testMatches() {
Predicate p = new Matches("^hello, (.*)\\.$");
assertTrue(p.eval("hello, world."));
assertTrue(p.eval("hello, mum."));
assertTrue(!p.eval("hello world."));
assertTrue(!p.eval("hello, world"));
assertTrue(!p.eval("goodbye, world."));
}
}
--- Test_Matches.java DELETED ---
|