Author: tv
Date: Thu Jan 19 10:46:34 2017
New Revision: 1779451
URL: http://svn.apache.org/viewvc?rev=1779451&view=rev
Log:
Fix test. Alive-Status is deprecated
Modified:
commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitUnitTest.java
Modified:
commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitUnitTest.java
URL:
http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitUnitTest.java?rev=1779451&r1=1779450&r2=1779451&view=diff
==============================================================================
---
commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitUnitTest.java
(original)
+++
commons/proper/jcs/trunk/commons-jcs-core/src/test/java/org/apache/commons/jcs/auxiliary/remote/RemoteCacheNoWaitUnitTest.java
Thu Jan 19 10:46:34 2017
@@ -1,5 +1,16 @@
package org.apache.commons.jcs.auxiliary.remote;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.commons.jcs.engine.CacheElement;
+import org.apache.commons.jcs.engine.CacheStatus;
+import org.apache.commons.jcs.engine.behavior.ICacheElement;
+import org.apache.commons.jcs.engine.behavior.ICacheEventQueue;
+import org.apache.commons.jcs.utils.timing.SleepUtil;
+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -20,16 +31,6 @@ package org.apache.commons.jcs.auxiliary
*/
import junit.framework.TestCase;
-import org.apache.commons.jcs.engine.CacheElement;
-import org.apache.commons.jcs.engine.CacheStatus;
-import org.apache.commons.jcs.engine.behavior.ICacheElement;
-import org.apache.commons.jcs.engine.behavior.ICacheEventQueue;
-import org.apache.commons.jcs.utils.timing.SleepUtil;
-
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Map;
-import java.util.Set;
/**
* Unit tests for the remote cache no wait. The no wait manages a queue on top
of the client.
@@ -198,7 +199,7 @@ public class RemoteCacheNoWaitUnitTest
// DO WORK
noWait.update( element );
SleepUtil.sleepAtLeast( 10 );
- ICacheEventQueue<String, String> originalQueue =
noWait.getCacheEventQueue();
+ // ICacheEventQueue<String, String> originalQueue =
noWait.getCacheEventQueue();
noWait.fixCache( service );
@@ -208,7 +209,7 @@ public class RemoteCacheNoWaitUnitTest
// VERIFY
assertEquals( "Wrong status", service, client.fixed );
- assertFalse( "Original queue should not alive",
originalQueue.isAlive() );
+ // assertFalse( "Original queue should not alive",
originalQueue.isAlive() );
assertTrue( "New queue should be alive." + newQueue,
newQueue.isAlive() );
}
}