pt.moredata.connection
Class ConnectionXml12ConfigTest

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

public class ConnectionXml12ConfigTest
extends TestCase

ConnectionXml12ConfigTest.java Company MoreData

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

Constructor Summary
ConnectionXml12ConfigTest(java.lang.String testName)
          Constructor for the ConnectionXml12ConfigTest object
 
Method Summary
static void main(java.lang.String[] args)
          The main program for the ConnectionXml12ConfigTest 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.ConnectionXxtConfig.
 void testGetDebug()
          Test of getDebug method, of class pt.despodata.java.connection.ConnectionXml12Config.
 void testGetDriver()
          Test of getDriver method, of class pt.despodata.java.connection.ConnectionXml12Config.
 void testGetPassword()
          Test of getPassword method, of class pt.despodata.java.connection.ConnectionXml12Config.
 void testGetURL()
          Test of getURL() method, of class pt.despodata.java.connection.ConnectionXml12Config.
 void testGetUserId()
          Test of getUserId method, of class pt.despodata.java.connection.ConnectionXml12Config.
 void testLoadConfig()
          Test of loadConfig method, of class pt.despodata.java.connection.ConnectionXml12Config.
 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.
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

ConnectionXml12ConfigTest

public ConnectionXml12ConfigTest(java.lang.String testName)
Constructor for the ConnectionXml12ConfigTest 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.ConnectionXxtConfig.


testGetDebug

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


testGetDriver

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


testGetPassword

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


testGetUserId

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


testLoadConfig

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


testGetURL

public void testGetURL()
Test of getURL() method, of class pt.despodata.java.connection.ConnectionXml12Config.


main

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

Parameters:
args - The command line arguments