pt.moredata.connection
Class DBConnectionTest

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

public class DBConnectionTest
extends TestCase

DBConnectionTest.java Company MoreData

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

Constructor Summary
DBConnectionTest(java.lang.String testName)
          Constructor for the DBConnectionTest object
 
Method Summary
static void main(java.lang.String[] args)
          The main program for the DBConnectionTest 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 testGetConnection()
          Test of getConnection method, of class pt.despodata.java.connection.DBConnection.
 void testGetDebug()
          Test of getDebug method, of class pt.despodata.java.connection.DBConnection.
 void testGetUserId()
          Test of getUserId method, of class pt.despodata.java.connection.DBConnection.
 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 testSetConfig()
          Test of setUserId method, of class pt.despodata.java.connection.DBConnection.
 void testSetDBName()
          Test of setDBName method, of class pt.despodata.java.connection.DBConnection.
 void testSetHostName()
          Test of setHostName method, of class pt.despodata.java.connection.DBConnection.
 void testSetPassword()
          Test of setPassword method, of class pt.despodata.java.connection.DBConnection.
 void testSetPort()
          Test of setPort method, of class pt.despodata.java.connection.DBConnection.
 void testSetProtocol()
          Test of setProtocol method, of class pt.despodata.java.connection.DBConnection.
 void testSetServer()
          Test of setServer method, of class pt.despodata.java.connection.DBConnection.
 void testSetSubProtocol()
          Test of setSubProtocol method, of class pt.despodata.java.connection.DBConnection.
 void testSetUserId()
          Test of setUserId method, of class pt.despodata.java.connection.DBConnection.
 
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

DBConnectionTest

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

Parameters:
testName - Description of the Parameter
Method Detail

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

testGetUserId

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


testGetConnection

public void testGetConnection()
                       throws java.io.FileNotFoundException,
                              java.lang.ClassNotFoundException,
                              java.sql.SQLException
Test of getConnection method, of class pt.despodata.java.connection.DBConnection.

Throws:
java.io.FileNotFoundException - Description of the Exception
java.lang.ClassNotFoundException - Description of the Exception
java.sql.SQLException - Description of the Exception

testSetDBName

public void testSetDBName()
Test of setDBName method, of class pt.despodata.java.connection.DBConnection.


testGetDebug

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


testSetHostName

public void testSetHostName()
Test of setHostName method, of class pt.despodata.java.connection.DBConnection.


testSetPassword

public void testSetPassword()
Test of setPassword method, of class pt.despodata.java.connection.DBConnection.


testSetPort

public void testSetPort()
Test of setPort method, of class pt.despodata.java.connection.DBConnection.


testSetProtocol

public void testSetProtocol()
Test of setProtocol method, of class pt.despodata.java.connection.DBConnection.


testSetServer

public void testSetServer()
Test of setServer method, of class pt.despodata.java.connection.DBConnection.


testSetSubProtocol

public void testSetSubProtocol()
Test of setSubProtocol method, of class pt.despodata.java.connection.DBConnection.


testSetUserId

public void testSetUserId()
Test of setUserId method, of class pt.despodata.java.connection.DBConnection.


testSetConfig

public void testSetConfig()
Test of setUserId method, of class pt.despodata.java.connection.DBConnection.


main

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

Parameters:
args - The command line arguments