[jboss-cvs] jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay ...

Shane Bryzak sbryzak at redhat.com
Thu Aug 23 00:25:49 EDT 2007


  User: sbryzak2
  Date: 07/08/23 00:25:49

  Modified:    examples/seambay/src/org/jboss/seam/example/seambay   
                        AuctionAction.java BidAction.java
                        CategoryAction.java
  Log:
  added some unit tests
  
  Revision  Changes    Path
  1.17      +0 -1      jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/AuctionAction.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AuctionAction.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/AuctionAction.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -b -r1.16 -r1.17
  --- AuctionAction.java	21 Aug 2007 01:57:15 -0000	1.16
  +++ AuctionAction.java	23 Aug 2007 04:25:49 -0000	1.17
  @@ -5,7 +5,6 @@
   import java.io.Serializable;
   import java.util.ArrayList;
   import java.util.Calendar;
  -import java.util.Date;
   import java.util.GregorianCalendar;
   import java.util.List;
   
  
  
  
  1.8       +5 -0      jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BidAction.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/BidAction.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- BidAction.java	6 Aug 2007 03:41:19 -0000	1.7
  +++ BidAction.java	23 Aug 2007 04:25:49 -0000	1.8
  @@ -81,6 +81,11 @@
         
         // This is where the tricky bidding logic happens
         
  +      if (!entityManager.contains(bid.getAuction()))
  +      {
  +         bid.setAuction(entityManager.find(Auction.class, bid.getAuction().getAuctionId()));
  +      }
  +      
         entityManager.lock(bid.getAuction(), LockModeType.WRITE);
         entityManager.refresh(bid.getAuction());
         
  
  
  
  1.5       +5 -0      jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/CategoryAction.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CategoryAction.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/src/org/jboss/seam/example/seambay/CategoryAction.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- CategoryAction.java	4 Jul 2007 05:40:11 -0000	1.4
  +++ CategoryAction.java	23 Aug 2007 04:25:49 -0000	1.5
  @@ -50,6 +50,11 @@
         return allCategories;
      }
      
  +   /**
  +    * On the "Buy" screen the list of categories are split into two columns,
  +    * the left column and the right column.  This procedure loads the categories
  +    * and separates them into two lists to populate these columns.
  +    */
      private void loadLeftAndRight()
      {
         if (categories == null) loadCategories();
  
  
  



More information about the jboss-cvs-commits mailing list