You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by ep...@apache.org on 2004/11/04 22:29:38 UTC
cvs commit: jakarta-turbine-fulcrum/cache project.properties
epugh 2004/11/04 13:29:38
Modified: cache/src/test/org/apache/fulcrum/cache CacheTest.java
cache project.properties
Log:
trying to resolve why gump fails with this test.
Revision Changes Path
1.4 +14 -24 jakarta-turbine-fulcrum/cache/src/test/org/apache/fulcrum/cache/CacheTest.java
Index: CacheTest.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-fulcrum/cache/src/test/org/apache/fulcrum/cache/CacheTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- CacheTest.java 26 May 2004 15:14:40 -0000 1.3
+++ CacheTest.java 4 Nov 2004 21:29:38 -0000 1.4
@@ -76,8 +76,9 @@
{
private GlobalCacheService globalCache = null;
- private static final String cacheKey = new String("CacheKey");
- private static final String cacheKey_2 = new String("CacheKey_2");
+ private static final String cacheKey = "CacheKey";
+ private static final String cacheKey_2 = "CacheKey_2";
+ public static final String SKIP_TESTS_KEY = "fulcrum.cache.skip.long.tests";
/**
@@ -89,26 +90,7 @@
{
super(name);
}
- /**
- * Start the tests.
- *
- * @param args the arguments. Not used
- */
- public static void main(String args[])
- {
- TestRunner.main(new String[] { CacheTest.class.getName()});
- }
- /**
- * Creates the test suite.
- *
- * @return a test suite (<code>TestSuite</code>) that includes all methods
- * starting with "test"
- */
- public static Test suite()
- {
- // All methods starting with "test" will be executed in the test suite.
- return new TestSuite(CacheTest.class);
- }
+
protected void setUp() throws Exception
{
super.setUp();
@@ -586,7 +568,15 @@
*/
private long getCacheRefresh()
{
- return ((DefaultGlobalCacheService) globalCache).getCacheCheckFrequency()*1000;
+ String skipTestsProperty = System.getProperty(SKIP_TESTS_KEY,"false");
+ System.out.println("What is the skipTestsProperty:" + skipTestsProperty);
+ if(Boolean.getBoolean(skipTestsProperty)==true){
+ return 0;
+ }
+ else {
+ return ((DefaultGlobalCacheService) globalCache).getCacheCheckFrequency()*1000;
+ }
+
}
/**
1.2 +5 -0 jakarta-turbine-fulcrum/cache/project.properties
Index: project.properties
===================================================================
RCS file: /home/cvs/jakarta-turbine-fulcrum/cache/project.properties,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- project.properties 20 Aug 2003 00:45:46 -0000 1.1
+++ project.properties 4 Nov 2004 21:29:38 -0000 1.2
@@ -1 +1,6 @@
+#Uncomment to reduce how long a test takes.
+#maven.junit.sysproperties=fulcrum.cache.skip.long.tests
+#fulcrum.cache.skip.long.tests=true
+#Help debug failing tests.
+maven.junit.usefile=false
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org