net.curre.prefcount.service
Class ResultServiceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.curre.prefcount.test.BaseTestCase
              extended by net.curre.prefcount.service.ResultServiceTest
All Implemented Interfaces:
junit.framework.Test

public class ResultServiceTest
extends BaseTestCase

This is a junit test for testing result service.

Created date: Jul 29, 2007

Author:
Yevgeny Nyden

Nested Class Summary
 
Nested classes/interfaces inherited from class net.curre.prefcount.test.BaseTestCase
BaseTestCase.Whist
 
Field Summary
 
Fields inherited from class net.curre.prefcount.test.BaseTestCase
SETTINGS_FILE, TEST_LOG_LEVEL, TEST_LOG_PATH
 
Constructor Summary
ResultServiceTest()
           
 
Method Summary
 void testGameResultBean()
          Tests GameResultBean and PlayerStatistics beans methods (simple code that contains simple computing functionality).
 void testGenerateFinalResults()
          Tests the generateFinalResults() method.
 void testGenerateFinalResults3()
          Tests the generateFinalResults() method with more cases (using the divisible by N option).
 void testGenerateFinalResults4()
          Tests the generateFinalResults() method with even more more cases (using the divisible by N option).
 
Methods inherited from class net.curre.prefcount.test.BaseTestCase
assertButtonValues, assertMapNotNullValues, assertMapNullValues, assertNotBlankAndVisible, assertNotVisible, assertNotVisible, assertTextBlank, assertTextNotBlank, assertValidResource, assertVisible, assertVisible, createPlayerStatHelper, deleteTestSettingsFile, setTextFields, setTextFields, setUp
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultServiceTest

public ResultServiceTest()
Method Detail

testGameResultBean

public void testGameResultBean()
                        throws java.lang.Exception
Tests GameResultBean and PlayerStatistics beans methods (simple code that contains simple computing functionality).

Throws:
java.lang.Exception - On error.

testGenerateFinalResults

public void testGenerateFinalResults()
                              throws java.lang.Exception
Tests the generateFinalResults() method.

Throws:
java.lang.Exception - On error.

testGenerateFinalResults3

public void testGenerateFinalResults3()
                               throws java.lang.Exception
Tests the generateFinalResults() method with more cases (using the divisible by N option).

Throws:
java.lang.Exception - On error.

testGenerateFinalResults4

public void testGenerateFinalResults4()
                               throws java.lang.Exception
Tests the generateFinalResults() method with even more more cases (using the divisible by N option).

Throws:
java.lang.Exception - On error.


Copyright © 2008. All Rights Reserved.