svn commit: r13903 - trunk/tests/org/argouml/TestDependencies.java
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: mvw
Date: 2007-12-11 09:05:09-0800
New Revision: 13903
Modified:
trunk/tests/org/argouml/TestDependencies.java
Log:
Add a timestamp - so I can see when the test was run...
Modified: trunk/tests/org/argouml/TestDependencies.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/tests/org/argouml/TestDependencies.java?view=diff&rev=13903&p1=trunk/tests/org/argouml/TestDependencies.java&p2=trunk/tests/org/argouml/TestDependencies.java&r1=13902&r2=13903
==============================================================================
--- trunk/tests/org/argouml/TestDependencies.java (original)
+++ trunk/tests/org/argouml/TestDependencies.java 2007-12-11 09:05:09-0800
@@ -25,7 +25,9 @@
package org.argouml;
import java.io.IOException;
+import java.text.SimpleDateFormat;
import java.util.ArrayList;
+import java.util.Calendar;
import java.util.Collection;
import java.util.List;
@@ -112,6 +114,8 @@
// really is one - tfm 20070702
// "org.argouml.uml.cognitive.critics",
};
+
+ suite.addTest(new TimeStamp());
for (int i = 0; i < clean.length; i++) {
suite.addTest(new CheckDependencyCycle(jdepend, clean[i]));
}
@@ -162,6 +166,29 @@
return suite;
}
+
+ static class DateUtils {
+ static final String DATE_FORMAT_NOW = "yyyy-MM-dd HH:mm:ss Z";
+
+ public static String now() {
+ Calendar cal = Calendar.getInstance();
+ SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
+ return sdf.format(cal.getTime());
+ }
+
+ }
+
+ static class TimeStamp extends TestCase {
+
+ TimeStamp() {
+ super("Timestamp: " + DateUtils.now());
+ }
+
+ @SuppressWarnings("unchecked")
+ public void runTest() {
+ // do nothing by design
+ }
+ }
static class CheckDependencyCycle extends TestCase {
private String packageName;