geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgenen...@apache.org
Subject svn commit: r465933 - in /geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache: command/RemoveEntryCommandTest.java transports/tcp/AbstractServer.java transports/tcp/TCPNotification.java transports/tcp/TCPNotificationTest.java
Date Thu, 19 Oct 2006 23:31:26 GMT
Author: jgenender
Date: Thu Oct 19 16:31:26 2006
New Revision: 465933

URL: http://svn.apache.org/viewvc?view=rev&rev=465933
Log:
Get unit tests to run

Added:
    geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TCPNotificationTest.java
      - copied, changed from r465926, geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TCPNotification.java
Removed:
    geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TCPNotification.java
Modified:
    geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/RemoveEntryCommandTest.java
    geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/AbstractServer.java

Modified: geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/RemoveEntryCommandTest.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/RemoveEntryCommandTest.java?view=diff&rev=465933&r1=465932&r2=465933
==============================================================================
--- geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/RemoveEntryCommandTest.java
(original)
+++ geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/command/RemoveEntryCommandTest.java
Thu Oct 19 16:31:26 2006
@@ -41,6 +41,7 @@
 
         //Set up a cache
         CacheManager cacheMgr = CacheManager.create();
+        cacheMgr.removalAll();
         cacheMgr.addCache(cacheName);
         Cache cache = cacheMgr.getCache(cacheName);
         assert cache != null;

Modified: geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/AbstractServer.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/AbstractServer.java?view=diff&rev=465933&r1=465932&r2=465933
==============================================================================
--- geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/AbstractServer.java
(original)
+++ geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/AbstractServer.java
Thu Oct 19 16:31:26 2006
@@ -69,6 +69,7 @@
         
         client.close();
         client2.close();
+        info.getCacheManager().removalAll();
     }
     
     protected void sendCommand(Socket socket, BaseCommand command) throws IOException{

Copied: geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TCPNotificationTest.java
(from r465926, geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TCPNotification.java)
URL: http://svn.apache.org/viewvc/geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TCPNotificationTest.java?view=diff&rev=465933&p1=geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TCPNotification.java&r1=465926&p2=geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TCPNotificationTest.java&r2=465933
==============================================================================
--- geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TCPNotification.java
(original)
+++ geronimo/sandbox/gcache/server/src/test/java/org/apache/geronimo/gcache/transports/tcp/TCPNotificationTest.java
Thu Oct 19 16:31:26 2006
@@ -29,14 +29,14 @@
 import org.apache.geronimo.gcache.command.PutSessionCommand;
 import org.testng.annotations.Test;
 
-public class TCPNotification extends AbstractServer {
+public class TCPNotificationTest extends AbstractServer {
     
     @Test
     public void notificationTest() throws Exception{
 	
 	GetCacheCommand command = new GetCacheCommand();
 	
-	command.setCacheName("Test");
+	command.setCacheName("Notify");
 	
 	//Send the getCache request from client 1
 	sendCommand(client, command);



Mime
View raw message