name.angoca.db2sa.tools.configurator
Class ConfiguratorTest

Package class diagram package ConfiguratorTest
java.lang.Object
  extended by name.angoca.db2sa.tools.configurator.ConfiguratorTest

public class ConfiguratorTest
extends Object

Tests for the configurator.

Control Version

Version:
1.2.1 2010-02-14
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
ConfiguratorTest()
          Default constructor.
 
Method Summary
 void setUp()
          Clears the configuration file name property before each test.
static void tearDownAfterClass()
          Clears the configuration file name property at the end of the test.
 void testGetInstanceConf()
          Tests a configuration file.
 void testGetInstanceConfFileTest()
          Tests a configuration file for tests.
 void testGetInstanceNoFile()
          Tests the default values, when the configuration file cannot be found.
 void testGetNull()
          Tests a required property cannot be null.
 void testReadInvalidFile()
          Tests the load of the default properties after the read of a configuration file with an invalid structure.
 void testSetNull1()
          Test that the key cannot be null when setting.
 void testSetNull2()
          Tests that the value cannot be null when setting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfiguratorTest

public ConfiguratorTest()
Default constructor.

Method Detail

tearDownAfterClass

public static final void tearDownAfterClass()
Clears the configuration file name property at the end of the test.


setUp

public final void setUp()
Clears the configuration file name property before each test.


testGetInstanceConf

public final void testGetInstanceConf()
Tests a configuration file.


testGetInstanceConfFileTest

public final void testGetInstanceConfFileTest()
Tests a configuration file for tests.


testGetInstanceNoFile

public final void testGetInstanceNoFile()
Tests the default values, when the configuration file cannot be found.


testGetNull

public final void testGetNull()
Tests a required property cannot be null.


testReadInvalidFile

public final void testReadInvalidFile()
Tests the load of the default properties after the read of a configuration file with an invalid structure.


testSetNull1

public final void testSetNull1()
Test that the key cannot be null when setting.


testSetNull2

public final void testSetNull2()
Tests that the value cannot be null when setting.



Andres Gomez Casanova (AngocA) 2009-2010 Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.