Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acs.damsel.srvr.db
Class TestAssetDB  view TestAssetDB download TestAssetDB.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.acs.damsel.srvr.db.TestAssetDB
All Implemented Interfaces:
junit.framework.Test

public class TestAssetDB
extends junit.framework.TestCase


Field Summary
private  AssetDB assetDB
           
private static org.apache.log4j.Logger log
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestAssetDB(java.lang.String name)
           
 
Method Summary
private  void printTable(java.util.Vector results)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testAddAndDeleteUserToGroup()
           
 void testAddAsset()
           
 void testAddAssetToFavorites()
           
 void testAddCollection()
           
 void testAddGroup()
           
 void testAddSchema()
           
 void testAddSchemaTag()
           
 void testAddSlideShow()
           
 void testAddSlideShowAsset()
           
 void testAddSlideShowTag()
           
 void testAddUser()
           
 void testAddUserToGroup()
           
 void testCollectionSize()
           
 void testConstructor()
           
 void testDeleteAsset()
           
 void testDeleteCollection()
           
 void testDeleteGroup()
           
 void testDeleteSchema()
           
 void testDeleteSchemaTag()
           
 void testDeleteUser()
           
 void testGetAllAssets()
           
 void testGetAllAssetsFromCollection()
           
 void testGetAsset()
           
 void testGetAssetFromCollection()
           
 void testGetCollection()
           
 void testGetCollectionNames()
           
 void testGetCollectionsWithSchema()
           
 void testGetGroupNames()
           
 void testGetNumberOfCollectionsInDB()
           
 void testGetSchema()
           
 void testGetSchemaNames()
           
 void testGetSchemaOfCollection()
           
 void testGetSlideShow()
           
 void testGetUser()
           
 void testGetUsersInGroup()
           
 void testIsAssetInCollection()
           
 void testIsAssetInDB()
           
 void testIsAssetInFavorites()
           
 void testIsCollectionInDB()
           
 void testIsGroupInDB()
           
 void testIsSchemaInDB()
           
 void testIsSchemaTagInTable()
           
 void testIsSlideShowAssetInDB()
           
 void testIsSlideShowInDB()
           
 void testIsSlideShowTagInDB()
           
 void testIsUserInDB()
           
 void testRemoveAssetFromAllCollections()
           
 void testRemoveAssetFromCollection()
           
 void testRemoveAssetFromFavorites()
           
 void testRemoveSlideShowAssetFromDB()
           
 void testRemoveSlideShowFromDB()
           
 void testRemoveSlideShowTagFromDB()
           
 void testSetSchemaOfCollection()
           
 void testSizeDB()
           
 void testUpdateSchema()
           
 void testUpdateUser()
           
 
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
 

Field Detail

assetDB

private AssetDB assetDB

log

private static org.apache.log4j.Logger log
Constructor Detail

TestAssetDB

public TestAssetDB(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


tearDown

protected void tearDown()
                 throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.


testConstructor

public void testConstructor()

printTable

private void printTable(java.util.Vector results)

testGetAllAssets

public void testGetAllAssets()

testAddAsset

public void testAddAsset()

testDeleteAsset

public void testDeleteAsset()

testAddSchema

public void testAddSchema()

testAddSchemaTag

public void testAddSchemaTag()

testDeleteSchemaTag

public void testDeleteSchemaTag()

testDeleteSchema

public void testDeleteSchema()

testGetSchema

public void testGetSchema()

testGetSchemaOfCollection

public void testGetSchemaOfCollection()

testGetCollectionsWithSchema

public void testGetCollectionsWithSchema()

testGetAsset

public void testGetAsset()

testGetAssetFromCollection

public void testGetAssetFromCollection()

testGetCollectionNames

public void testGetCollectionNames()

testGetSchemaNames

public void testGetSchemaNames()

testIsAssetInDB

public void testIsAssetInDB()

testGetUser

public void testGetUser()
                 throws java.sql.SQLException

testAddUser

public void testAddUser()

testGetAllAssetsFromCollection

public void testGetAllAssetsFromCollection()

testIsAssetInCollection

public void testIsAssetInCollection()

testAddAndDeleteUserToGroup

public void testAddAndDeleteUserToGroup()

testAddGroup

public void testAddGroup()

testIsGroupInDB

public void testIsGroupInDB()

testGetGroupNames

public void testGetGroupNames()

testDeleteGroup

public void testDeleteGroup()

testDeleteUser

public void testDeleteUser()

testSizeDB

public void testSizeDB()

testAddCollection

public void testAddCollection()
                       throws java.sql.SQLException

testDeleteCollection

public void testDeleteCollection()

testIsCollectionInDB

public void testIsCollectionInDB()

testIsSchemaInDB

public void testIsSchemaInDB()

testIsSchemaTagInTable

public void testIsSchemaTagInTable()

testIsUserInDB

public void testIsUserInDB()

testRemoveAssetFromCollection

public void testRemoveAssetFromCollection()

testAddUserToGroup

public void testAddUserToGroup()

testGetUsersInGroup

public void testGetUsersInGroup()

testRemoveAssetFromAllCollections

public void testRemoveAssetFromAllCollections()

testGetCollection

public void testGetCollection()

testCollectionSize

public void testCollectionSize()

testGetNumberOfCollectionsInDB

public void testGetNumberOfCollectionsInDB()

testSetSchemaOfCollection

public void testSetSchemaOfCollection()

testUpdateSchema

public void testUpdateSchema()

testUpdateUser

public void testUpdateUser()

testAddAssetToFavorites

public void testAddAssetToFavorites()

testRemoveAssetFromFavorites

public void testRemoveAssetFromFavorites()

testIsAssetInFavorites

public void testIsAssetInFavorites()

testAddSlideShow

public void testAddSlideShow()

testIsSlideShowInDB

public void testIsSlideShowInDB()

testRemoveSlideShowFromDB

public void testRemoveSlideShowFromDB()

testAddSlideShowTag

public void testAddSlideShowTag()

testIsSlideShowTagInDB

public void testIsSlideShowTagInDB()

testRemoveSlideShowTagFromDB

public void testRemoveSlideShowTagFromDB()

testAddSlideShowAsset

public void testAddSlideShowAsset()

testIsSlideShowAssetInDB

public void testIsSlideShowAssetInDB()

testRemoveSlideShowAssetFromDB

public void testRemoveSlideShowAssetFromDB()

testGetSlideShow

public void testGetSlideShow()