User: starksm
Date: 02/04/17 12:06:45
Modified: src/main/org/jboss/test/bank/interfaces Tag: Branch_2_4
BankException.java Customer.java CustomerHome.java
CustomerPK.java Teller.java TellerHome.java
Log:
Add tests of creating and removing an entity using the default commit
option to test caching.
Revision Changes Path
No revision
No revision
1.2.2.1 +2 -14
jbosstest/src/main/org/jboss/test/bank/interfaces/BankException.java
Index: BankException.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/bank/interfaces/BankException.java,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -r1.2 -r1.2.2.1
--- BankException.java 7 Jan 2001 23:14:35 -0000 1.2
+++ BankException.java 17 Apr 2002 19:06:45 -0000 1.2.2.1
@@ -10,8 +10,8 @@
/**
*
* @see <related>
- * @author $Author: peter $
- * @version $Revision: 1.2 $
+ * @author $Author: starksm $
+ * @version $Revision: 1.2.2.1 $
*/
public class BankException
extends Exception
@@ -41,18 +41,3 @@
public String toString() { return super.toString()+", Cause:"+cause; }
}
-
-/*
- * $Id: BankException.java,v 1.2 2001/01/07 23:14:35 peter Exp $
- * Currently locked by:$Locker: $
- * Revision:
- * $Log: BankException.java,v $
- * Revision 1.2 2001/01/07 23:14:35 peter
- * Trying to get JAAS to work within test suite.
- *
- * Revision 1.1.1.1 2000/06/21 15:52:38 oberg
- * Initial import of jBoss test. This module contains CTS tests, some simple
examples, and small bean suites.
- *
- *
- *
- */
1.3.2.1 +3 -21 jbosstest/src/main/org/jboss/test/bank/interfaces/Customer.java
Index: Customer.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/bank/interfaces/Customer.java,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -r1.3 -r1.3.2.1
--- Customer.java 7 Jan 2001 23:14:36 -0000 1.3
+++ Customer.java 17 Apr 2002 19:06:45 -0000 1.3.2.1
@@ -11,8 +11,8 @@
/**
*
* @see <related>
- * @author $Author: peter $
- * @version $Revision: 1.3 $
+ * @author $Author: starksm $
+ * @version $Revision: 1.3.2.1 $
*/
public interface Customer
extends EJBObject
@@ -28,10 +28,7 @@
// Public --------------------------------------------------------
public String getName()
throws RemoteException;
-
- public void setName(String name)
- throws RemoteException;
-
+
public Collection getAccounts()
throws RemoteException;
@@ -41,21 +38,3 @@
public void removeAccount(Account acct)
throws RemoteException;
}
-
-/*
- * $Id: Customer.java,v 1.3 2001/01/07 23:14:36 peter Exp $
- * Currently locked by:$Locker: $
- * Revision:
- * $Log: Customer.java,v $
- * Revision 1.3 2001/01/07 23:14:36 peter
- * Trying to get JAAS to work within test suite.
- *
- * Revision 1.2 2000/09/30 01:00:57 fleury
- * Updated bank tests to work with new jBoss version
- *
- * Revision 1.1.1.1 2000/06/21 15:52:38 oberg
- * Initial import of jBoss test. This module contains CTS tests, some simple
examples, and small bean suites.
- *
- *
- *
- */
1.3.2.1 +2 -18
jbosstest/src/main/org/jboss/test/bank/interfaces/CustomerHome.java
Index: CustomerHome.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/bank/interfaces/CustomerHome.java,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -r1.3 -r1.3.2.1
--- CustomerHome.java 20 Jan 2001 16:32:52 -0000 1.3
+++ CustomerHome.java 17 Apr 2002 19:06:45 -0000 1.3.2.1
@@ -10,9 +10,8 @@
/**
*
- * @see <related>
- * @author $Author: osh $
- * @version $Revision: 1.3 $
+ * @author $Author: starksm $
+ * @version $Revision: 1.3.2.1 $
*/
public interface CustomerHome
extends EJBHome
@@ -37,21 +36,3 @@
public Collection findAll()
throws RemoteException, FinderException;
}
-
-/*
- * $Id: CustomerHome.java,v 1.3 2001/01/20 16:32:52 osh Exp $
- * Currently locked by:$Locker: $
- * Revision:
- * $Log: CustomerHome.java,v $
- * Revision 1.3 2001/01/20 16:32:52 osh
- * More cleanup to avoid verifier warnings.
- *
- * Revision 1.2 2001/01/07 23:14:36 peter
- * Trying to get JAAS to work within test suite.
- *
- * Revision 1.1.1.1 2000/06/21 15:52:38 oberg
- * Initial import of jBoss test. This module contains CTS tests, some simple
examples, and small bean suites.
- *
- *
- *
- */
1.1.1.1.2.1 +16 -5
jbosstest/src/main/org/jboss/test/bank/interfaces/CustomerPK.java
Index: CustomerPK.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/bank/interfaces/CustomerPK.java,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -u -r1.1.1.1 -r1.1.1.1.2.1
--- CustomerPK.java 21 Jun 2000 15:52:38 -0000 1.1.1.1
+++ CustomerPK.java 17 Apr 2002 19:06:45 -0000 1.1.1.1.2.1
@@ -7,8 +7,8 @@
/**
*
* @see <related>
- * @author $Author: oberg $
- * @version $Revision: 1.1.1.1 $
+ * @author $Author: starksm $
+ * @version $Revision: 1.1.1.1.2.1 $
*/
public class CustomerPK
implements java.io.Serializable
@@ -18,13 +18,24 @@
// Attributes ----------------------------------------------------
public String id;
public String name;
-
+
// Public --------------------------------------------------------
+ public CustomerPK()
+ {
+ }
+
+ public CustomerPK(String id, String name)
+ {
+ this.id = id;
+ this.name = name;
+ }
+
public boolean equals(Object pk)
{
- return ((CustomerPK)pk).id.equals(id) && ((CustomerPK)pk).name.equals(name);
+ CustomerPK key = (CustomerPK) pk;
+ return key.id.equals(id) && key.name.equals(name);
}
-
+
public int hashCode()
{
return id.hashCode();
1.2.2.1 +6 -15 jbosstest/src/main/org/jboss/test/bank/interfaces/Teller.java
Index: Teller.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/bank/interfaces/Teller.java,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -r1.2 -r1.2.2.1
--- Teller.java 7 Jan 2001 23:14:36 -0000 1.2
+++ Teller.java 17 Apr 2002 19:06:45 -0000 1.2.2.1
@@ -11,8 +11,8 @@
/**
*
* @see <related>
- * @author $Author: peter $
- * @version $Revision: 1.2 $
+ * @author $Author: starksm $
+ * @version $Revision: 1.2.2.1 $
*/
public interface Teller
extends EJBObject
@@ -31,7 +31,7 @@
public Account createAccount(Customer customer, float balance)
throws RemoteException, BankException;
-
+
public Account getAccount(Customer customer, float balance)
throws RemoteException, BankException;
@@ -40,19 +40,7 @@
public void transferTest(Account from, Account to, float amount, int iter)
throws java.rmi.RemoteException, BankException;
-}
-/*
- * $Id: Teller.java,v 1.2 2001/01/07 23:14:36 peter Exp $
- * Currently locked by:$Locker: $
- * Revision:
- * $Log: Teller.java,v $
- * Revision 1.2 2001/01/07 23:14:36 peter
- * Trying to get JAAS to work within test suite.
- *
- * Revision 1.1.1.1 2000/06/21 15:52:38 oberg
- * Initial import of jBoss test. This module contains CTS tests, some simple
examples, and small bean suites.
- *
- *
- *
- */
+ public void createAndRemove(String customerID, String customerName)
+ throws RemoteException;
+}
1.3.2.1 +2 -17
jbosstest/src/main/org/jboss/test/bank/interfaces/TellerHome.java
Index: TellerHome.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/bank/interfaces/TellerHome.java,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -r1.3 -r1.3.2.1
--- TellerHome.java 20 Jan 2001 16:32:52 -0000 1.3
+++ TellerHome.java 17 Apr 2002 19:06:45 -0000 1.3.2.1
@@ -10,8 +10,8 @@
/**
*
* @see <related>
- * @author $Author: osh $
- * @version $Revision: 1.3 $
+ * @author $Author: starksm $
+ * @version $Revision: 1.3.2.1 $
*/
public interface TellerHome
extends EJBHome
@@ -31,21 +31,3 @@
throws RemoteException, CreateException;
}
-
-/*
- * $Id: TellerHome.java,v 1.3 2001/01/20 16:32:52 osh Exp $
- * Currently locked by:$Locker: $
- * Revision:
- * $Log: TellerHome.java,v $
- * Revision 1.3 2001/01/20 16:32:52 osh
- * More cleanup to avoid verifier warnings.
- *
- * Revision 1.2 2001/01/07 23:14:36 peter
- * Trying to get JAAS to work within test suite.
- *
- * Revision 1.1.1.1 2000/06/21 15:52:38 oberg
- * Initial import of jBoss test. This module contains CTS tests, some simple
examples, and small bean suites.
- *
- *
- *
- */
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development