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

Manik Surtani msurtani at jboss.com
Tue Aug 22 07:45:20 EDT 2006


  User: msurtani
  Date: 06/08/22 07:45:20

  Modified:    tests/functional/org/jboss/cache  GlobalTransactionTest.java
  Log:
  broken exception in meth sig
  
  Revision  Changes    Path
  1.6       +13 -7     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.6
  diff -u -b -r1.5 -r1.6
  --- GlobalTransactionTest.java	5 May 2006 12:06:59 -0000	1.5
  +++ GlobalTransactionTest.java	22 Aug 2006 11:45:20 -0000	1.6
  @@ -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.6 2006/08/22 11:45:20 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;
  @@ -106,7 +112,7 @@
   
         try {
            bis=new ByteArrayInputStream(buf);
  -         in=new ObjectInputStream(bis);
  +         in=new ObjectInputStream(bis);          `
            tx1_copy=(GlobalTransaction)in.readObject();
            tx2_copy=(GlobalTransaction)in.readObject();
         }
  
  
  



More information about the jboss-cvs-commits mailing list