org.promotego.controllers
Class AcceptGameOfferControllerTest

java.lang.Object
  extended by org.promotego.controllers.AcceptGameOfferControllerTest

public class AcceptGameOfferControllerTest
extends java.lang.Object

Author:
alf

Constructor Summary
AcceptGameOfferControllerTest()
           
 
Method Summary
static org.promotego.beans.ScheduledGame checkReminderTime(java.util.Date time, int tolerance)
           
static org.promotego.beans.ScheduledGame checkScheduledGame(org.promotego.beans.OfferedGame offeredGame, org.promotego.beans.User accepter)
           
 void setUp()
           
 void testAcceptGame()
          Test accepting valid game offer.
 void testAcceptOwnGame()
          Verify that IllegalArgumentException is thrown if the user tries to accept her own game.
 void testExpiredGame()
          Verify that user is redirected with correct errorKey if game is expired.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceptGameOfferControllerTest

public AcceptGameOfferControllerTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

testAcceptOwnGame

public void testAcceptOwnGame()
                       throws java.lang.Exception
Verify that IllegalArgumentException is thrown if the user tries to accept her own game.

Throws:
java.lang.Exception

testExpiredGame

public void testExpiredGame()
                     throws java.lang.Exception
Verify that user is redirected with correct errorKey if game is expired.

Throws:
java.lang.Exception

testAcceptGame

public void testAcceptGame()
                    throws java.lang.Exception
Test accepting valid game offer.

Throws:
java.lang.Exception

checkScheduledGame

public static org.promotego.beans.ScheduledGame checkScheduledGame(org.promotego.beans.OfferedGame offeredGame,
                                                                   org.promotego.beans.User accepter)

checkReminderTime

public static org.promotego.beans.ScheduledGame checkReminderTime(java.util.Date time,
                                                                  int tolerance)


Copyright © 2007. All Rights Reserved.