pt.moredata.connection
Class ConnectionTxtConfigTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bypt.moredata.tests.TestCase
              extended bypt.moredata.connection.ConnectionTxtConfigTest
All Implemented Interfaces:
junit.framework.Test

public class ConnectionTxtConfigTest
extends TestCase

ConnectionTxtConfigTest.java Company MoreData

Version:
$Revision: 1.1.1.1 $
Author:
Paulo Carmo, Ricardo Amaro

Constructor Summary
ConnectionTxtConfigTest(java.lang.String testName)
          Constructor for the ConnectionTxtConfigTest object
 
Method Summary
static void main(java.lang.String[] args)
          The main program for the ConnectionTxtConfigTest class
protected  void setUp()
          Executado antes de cada método do test case
static junit.framework.Test suite()
          A unit test suite for JUnit
protected  void tearDown()
          The teardown method for JUnit
 void testGetDataSourceId()
          Test of getDBName method, of class pt.despodata.java.connection.ConnectionTxtConfig.
 void testGetDBName()
          Test of getDBName method, of class pt.despodata.java.connection.ConnectionTxtConfig.
 void testGetDebug()
          Test of getDebug method, of class pt.despodata.java.connection.ConnectionTxtConfig.
 void testGetDriver()
          Test of getDriver method, of class pt.despodata.java.connection.ConnectionTxtConfig.
 void testGetHostName()
          Test of getHostName method, of class pt.despodata.java.connection.ConnectionTxtConfig.
 void testGetPassword()
          Test of getPassword method, of class pt.despodata.java.connection.ConnectionTxtConfig.
 void testGetPort()
          Test of getPort method, of class pt.despodata.java.connection.ConnectionTxtConfig.
 void testGetProtocol()
          Test of getProtocol method, of class pt.despodata.java.connection.ConnectionTxtConfig.
 void testGetServer()
          Test of getServer method, of class pt.despodata.java.connection.ConnectionTxtConfig.
 void testGetSubProtocol()
          Test of getSubProtocol method, of class pt.despodata.java.connection.ConnectionTxtConfig.
 void testGetUserId()
          Test of getUserId method, of class pt.despodata.java.connection.ConnectionTxtConfig.
 void testLoadConfig()
          Test of loadConfig method, of class pt.despodata.java.connection.ConnectionTxtConfig.
 void testMissingTest()
          Este teste verifica se esta classe de testes implementa pelo menos um teste por cada metodo public da classe que esta a ser testada.
 void testSetSourceName()
          Test of setSourceName method, of class pt.despodata.java.connection.ConnectionTxtConfig.
static void writeConfig(java.lang.String configFilePath)
          Description of the Method
 
Methods inherited from class pt.moredata.tests.TestCase
assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, main, testMissingTest
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionTxtConfigTest

public ConnectionTxtConfigTest(java.lang.String testName)
Constructor for the ConnectionTxtConfigTest object

Parameters:
testName - Description of the Parameter
Method Detail

writeConfig

public static void writeConfig(java.lang.String configFilePath)
                        throws java.io.IOException
Description of the Method

Parameters:
configFilePath - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

setUp

protected void setUp()
Executado antes de cada método do test case


tearDown

protected void tearDown()
The teardown method for JUnit


suite

public static junit.framework.Test suite()
A unit test suite for JUnit

Returns:
The test suite

testMissingTest

public void testMissingTest()
                     throws java.lang.SecurityException
Este teste verifica se esta classe de testes implementa pelo menos um teste por cada metodo public da classe que esta a ser testada.

Throws:
java.lang.SecurityException - Description of the Exception

testGetDataSourceId

public void testGetDataSourceId()
Test of getDBName method, of class pt.despodata.java.connection.ConnectionTxtConfig.


testGetDBName

public void testGetDBName()
Test of getDBName method, of class pt.despodata.java.connection.ConnectionTxtConfig.


testGetDebug

public void testGetDebug()
Test of getDebug method, of class pt.despodata.java.connection.ConnectionTxtConfig.


testGetDriver

public void testGetDriver()
Test of getDriver method, of class pt.despodata.java.connection.ConnectionTxtConfig.


testGetHostName

public void testGetHostName()
Test of getHostName method, of class pt.despodata.java.connection.ConnectionTxtConfig.


testGetPassword

public void testGetPassword()
Test of getPassword method, of class pt.despodata.java.connection.ConnectionTxtConfig.


testGetPort

public void testGetPort()
Test of getPort method, of class pt.despodata.java.connection.ConnectionTxtConfig.


testGetProtocol

public void testGetProtocol()
Test of getProtocol method, of class pt.despodata.java.connection.ConnectionTxtConfig.


testGetServer

public void testGetServer()
Test of getServer method, of class pt.despodata.java.connection.ConnectionTxtConfig.


testGetSubProtocol

public void testGetSubProtocol()
Test of getSubProtocol method, of class pt.despodata.java.connection.ConnectionTxtConfig.


testGetUserId

public void testGetUserId()
Test of getUserId method, of class pt.despodata.java.connection.ConnectionTxtConfig.


testSetSourceName

public void testSetSourceName()
Test of setSourceName method, of class pt.despodata.java.connection.ConnectionTxtConfig.


testLoadConfig

public void testLoadConfig()
Test of loadConfig method, of class pt.despodata.java.connection.ConnectionTxtConfig.


main

public static void main(java.lang.String[] args)
The main program for the ConnectionTxtConfigTest class

Parameters:
args - The command line arguments