[jboss-cvs] JBossCache/tests/functional/org/jboss/cache ...

Manik Surtani msurtani at jboss.com
Fri Nov 3 04:48:13 EST 2006


  User: msurtani
  Date: 06/11/03 04:48:13

  Modified:    tests/functional/org/jboss/cache  Tag:
                        Branch_JBossCache_1_4_0 GlobalTransactionTest.java
  Log:
  JG compat
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.2.1   +12 -6     JBossCache/tests/functional/org/jboss/cache/GlobalTransactionTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: GlobalTransactionTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/GlobalTransactionTest.java,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -b -r1.5 -r1.5.2.1
  --- GlobalTransactionTest.java	5 May 2006 12:06:59 -0000	1.5
  +++ GlobalTransactionTest.java	3 Nov 2006 09:48:13 -0000	1.5.2.1
  @@ -13,11 +13,12 @@
   import org.jgroups.stack.IpAddress;
   
   import java.io.*;
  +import java.net.UnknownHostException;
   
   
   /**
    * @author <a href="mailto:bela at jboss.org">Bela Ban</a> Apr 14, 2003
  - * @version $Id: GlobalTransactionTest.java,v 1.5 2006/05/05 12:06:59 msurtani Exp $
  + * @version $Id: GlobalTransactionTest.java,v 1.5.2.1 2006/11/03 09:48:13 msurtani Exp $
    */
   public class GlobalTransactionTest extends TestCase {
   
  @@ -27,7 +28,8 @@
   
   
   
  -   public void testEquality() {
  +   public void testEquality() throws UnknownHostException
  +   {
         IpAddress a1=new IpAddress("localhost", 4444);
         GlobalTransaction tx1, tx2;
   
  @@ -42,21 +44,24 @@
   
      }
   
  -   public void testEqualityWithOtherObject() {
  +   public void testEqualityWithOtherObject() throws UnknownHostException
  +   {
         IpAddress a1=new IpAddress("localhost", 4444);
         GlobalTransaction tx1=GlobalTransaction.create(a1);
         System.out.println("\ntx1: " + tx1);
         assertFalse(tx1.equals(Thread.currentThread()));
      }
   
  -   public void testEqualityWithNull() {
  +   public void testEqualityWithNull() throws UnknownHostException
  +   {
         IpAddress a1=new IpAddress("localhost", 4444);
         GlobalTransaction tx1=GlobalTransaction.create(a1);
         System.out.println("\ntx1: " + tx1);
         assertFalse(tx1.equals(null));
      }
   
  -   public void testHashcode() {
  +   public void testHashcode() throws UnknownHostException
  +   {
         IpAddress a1=new IpAddress("localhost", 4444);
         GlobalTransaction tx1, tx2;
   
  @@ -79,7 +84,8 @@
      }
   
   
  -   public void testExternalization() {
  +   public void testExternalization() throws UnknownHostException
  +   {
         IpAddress a1=new IpAddress("localhost", 4444);
         IpAddress a2=new IpAddress("localhost", 5555);
         GlobalTransaction tx1, tx2, tx1_copy=null, tx2_copy=null;
  
  
  



More information about the jboss-cvs-commits mailing list