com.stratelia.webactiv.util
Class DBUtilTest

java.lang.Object
  extended by com.stratelia.webactiv.util.DBUtilTest

public class DBUtilTest
extends Object


Constructor Summary
DBUtilTest()
           
 
Method Summary
 void after()
           
protected  org.dbunit.dataset.IDataSet getDataSet()
           
 void init()
           
 void nextUniqueIdUpdateForAnExistingTablesShouldWorkAndConcurrency()
           
static void setUpClass()
           
static void tearDownClass()
           
 void testGetAllTableNames()
           
 void testGetDateFieldLength()
          Test of getDateFieldLength method, of class DBUtil.
 void testGetMaxFromTable()
          Test of getMaxFromTable method, of class DBUtil.
 void testGetMaxIdWithExistingLine()
          Test of getMaxId method, of class DBUtil.
 void testGetMaxIdWithInexistingLine()
          Test of getMaxId method, of class DBUtil.
 void testGetNextIdWithConnectionExistingLine()
          Test of getNextId method, of class DBUtil.
 void testGetNextIdWithConnectionInexistingLine()
          Test of getNextId method, of class DBUtil.
 void testGetNextIdWithoutConnectionExistingLine()
          Test of getNextId method, of class DBUtil.
 void testGetNextIdWithoutConnectionInexistingLine()
          Test of getNextId method, of class DBUtil when the line doesn't exist in the table.
 void testGetTextAreaLength()
          Test of getTextAreaLength method, of class DBUtil.
 void testGetTextFieldLength()
          Test of getTextFieldLength method, of class DBUtil.
 void testGetTextMaxiLength()
          Test of getTextMaxiLength method, of class DBUtil.
 void testMakeConnection()
          Test of makeConnection method, of class DBUtil.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBUtilTest

public DBUtilTest()
Method Detail

setUpClass

public static void setUpClass()
                       throws Exception
Throws:
Exception

tearDownClass

public static void tearDownClass()
                          throws Exception
Throws:
Exception

init

public void init()
          throws Exception
Throws:
Exception

after

public void after()
           throws Exception
Throws:
Exception

getDataSet

protected org.dbunit.dataset.IDataSet getDataSet()
                                          throws Exception
Throws:
Exception

testGetDateFieldLength

public void testGetDateFieldLength()
Test of getDateFieldLength method, of class DBUtil.


testGetTextMaxiLength

public void testGetTextMaxiLength()
Test of getTextMaxiLength method, of class DBUtil.


testGetTextAreaLength

public void testGetTextAreaLength()
Test of getTextAreaLength method, of class DBUtil.


testGetTextFieldLength

public void testGetTextFieldLength()
Test of getTextFieldLength method, of class DBUtil.


testMakeConnection

public void testMakeConnection()
                        throws SQLException
Test of makeConnection method, of class DBUtil.

Throws:
SQLException

testGetNextIdWithoutConnectionExistingLine

public void testGetNextIdWithoutConnectionExistingLine()
Test of getNextId method, of class DBUtil.


testGetNextIdWithoutConnectionInexistingLine

public void testGetNextIdWithoutConnectionInexistingLine()
Test of getNextId method, of class DBUtil when the line doesn't exist in the table.


testGetNextIdWithConnectionInexistingLine

public void testGetNextIdWithConnectionInexistingLine()
                                               throws Exception
Test of getNextId method, of class DBUtil.

Throws:
Exception

testGetNextIdWithConnectionExistingLine

public void testGetNextIdWithConnectionExistingLine()
                                             throws Exception
Test of getNextId method, of class DBUtil.

Throws:
Exception

testGetMaxIdWithExistingLine

public void testGetMaxIdWithExistingLine()
                                  throws Exception
Test of getMaxId method, of class DBUtil.

Throws:
Exception

testGetMaxIdWithInexistingLine

public void testGetMaxIdWithInexistingLine()
                                    throws Exception
Test of getMaxId method, of class DBUtil.

Throws:
Exception

testGetMaxFromTable

public void testGetMaxFromTable()
                         throws Exception
Test of getMaxFromTable method, of class DBUtil.

Throws:
Exception

testGetAllTableNames

public void testGetAllTableNames()

nextUniqueIdUpdateForAnExistingTablesShouldWorkAndConcurrency

public void nextUniqueIdUpdateForAnExistingTablesShouldWorkAndConcurrency()
                                                                   throws Exception
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.