net.curre.prefcount.service
Class SettingsServiceTest

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.SettingsServiceTest
All Implemented Interfaces:
junit.framework.Test

public class SettingsServiceTest
extends BaseTestCase

This is a junit test for testing settings service.

Created date: Jul 1, 2007

Author:
Yevgeny Nyden

Field Summary
 
Fields inherited from class net.curre.prefcount.test.BaseTestCase
SETTINGS_FILE
 
Constructor Summary
SettingsServiceTest()
           
 
Method Summary
protected  void setUp()
          

Sets the settings file path in the PrefCountRegistry to the test value and deletes this test settings file if it exists.

protected  void tearDown()
          

Deletes test settings file.

 void testAll()
          Test main settings service functionality.
 
Methods inherited from class net.curre.prefcount.test.BaseTestCase
assertButtonValues, assertMapNotNullValues, assertMapNullValues, assertNotBlankAndVisible, assertNotVisible, assertNotVisible, assertTextBlank, assertTextNotBlank, assertValidResource, assertVisible, assertVisible, createPlayerStatHelper, deleteTestSettingsFile, setTextFields, setTextFields
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

SettingsServiceTest

public SettingsServiceTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception

Sets the settings file path in the PrefCountRegistry to the test value and deletes this test settings file if it exists.

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception - on error.

tearDown

protected void tearDown()
                 throws java.lang.Exception

Deletes test settings file.

Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception - on error.

testAll

public void testAll()
             throws java.lang.Exception
Test main settings service functionality.

Throws:
java.lang.Exception - on error.


Copyright © 2008. All Rights Reserved.