Show AgilePlannerWebUITest.java syntax highlighted
package webui;
import java.sql.Timestamp;
import org.junit.Assert;
import org.junit.Test;
public class AgilePlannerWebUITest {
@Test
public void testPatterns() {
// String floatpattern = "\\d+[\\.{1}\\d+]";
String floatpattern = "\\d+(\\.{1}\\d+)?";
String timestamppattern = "(\\d){4}-(\\d){2}-(\\d){2}\\s(\\d){2}:(\\d){2}:(\\d){2}";
String f = "12345";
String ts = "2007-99-14 37:88:12";
Assert.assertTrue(f.matches(floatpattern));
Assert.assertTrue(ts.matches(timestamppattern));
Timestamp t = Timestamp.valueOf("2007-99-14 37:88:12");
System.out.println(t.toString());
}
}
See more files for this project here
The MASE project investigates methods to support the coordination and executable acceptance testing of software projects. Keywords: Agile methods, distributed teams, Extreme Programming. See http://ebe.cpsc.ucalgary.ca/ebe for more information.
Project homepage:
http://sourceforge.net/projects/mase
Programming language(s): Java,XML
License: other
AgilePlannerWebUITest.java