pt.moredata.qvs
Class CheckedAreaTest

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

public class CheckedAreaTest
extends TestCase

CheckedAreaTest.java Company MoreData

Version:
$Revision: 1.1.1.1 $
Author:
betap

Constructor Summary
CheckedAreaTest(java.lang.String testName)
          Constructor for the CheckedAreaTest object
 
Method Summary
static void createTableTarget(java.sql.Connection connection, java.lang.String target)
          Description of the Method
static void destroyTable(java.sql.Connection connection, java.lang.String nome)
          Remove uma tabela da base de dados.
static void getConnection()
          Cria uma Connection com a base de dados teste
static void main(java.lang.String[] args)
          The main program for the CheckedAreaTest class
protected  void setUp()
          Test setup.
static junit.framework.Test suite()
          A unit test suite for JUnit
protected  void tearDown()
          Undo test changes.
 void testInsert()
          Test of insert method, of class pt.moredata.qvs.CheckedArea.
 void testSetAreaId()
          Test of setAreaId method, of class pt.moredata.qvs.CheckedArea.
 void testSetCheckedId()
          Test of setCheckedId method, of class pt.moredata.qvs.CheckedArea.
 void testSetConnection()
          Test of setConnection method, of class pt.moredata.qvs.CheckedPoint.
 
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

CheckedAreaTest

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

Parameters:
testName - Description of the Parameter
Method Detail

setUp

protected void setUp()
Test setup. This method is executed once for each test method.


tearDown

protected void tearDown()
Undo test changes. This method is executed once for each test method.


main

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

Parameters:
args - The command line arguments

suite

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

Returns:
The test suite

createTableTarget

public static void createTableTarget(java.sql.Connection connection,
                                     java.lang.String target)
                              throws java.sql.SQLException
Description of the Method

Parameters:
connection - Description of the Parameter
target - Description of the Parameter
Throws:
java.sql.SQLException - Description of the Exception

destroyTable

public static void destroyTable(java.sql.Connection connection,
                                java.lang.String nome)
                         throws java.sql.SQLException
Remove uma tabela da base de dados.

Parameters:
nome - Nome da tabela a remover
connection - Description of the Parameter
Throws:
java.sql.SQLException - Se houver algum erro com a base de dados.

getConnection

public static void getConnection()
Cria uma Connection com a base de dados teste


testSetConnection

public void testSetConnection()
Test of setConnection method, of class pt.moredata.qvs.CheckedPoint.


testSetCheckedId

public void testSetCheckedId()
Test of setCheckedId method, of class pt.moredata.qvs.CheckedArea.


testSetAreaId

public void testSetAreaId()
Test of setAreaId method, of class pt.moredata.qvs.CheckedArea.


testInsert

public void testInsert()
Test of insert method, of class pt.moredata.qvs.CheckedArea.