org.openi.web.controller.admin
Class DatasourceFormControllerTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.openi.web.controller.admin.DatasourceFormControllerTest
All Implemented Interfaces:
junit.framework.Test

public class DatasourceFormControllerTest
extends junit.framework.TestCase

Version:
$Revision: 1.2 $ $Date: 2005/08/04 11:28:41 $
Test case for new datasource form controller.
Author:
Dipendra Pokhrel

Field Summary
static java.lang.String TEST_PROJECT_NAME
           
 
Constructor Summary
DatasourceFormControllerTest(java.lang.String arg0)
           
 
Method Summary
 void setUp()
           
 void testAddNewAndDeleteDatasource()
          test for delete datasource functionality.
 void testAddNewAndEditDatasource()
          test for Edit datasource functionality.
 void testAddView()
          test for checking add view.
 void testEditView()
          test for checking Edit view.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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

TEST_PROJECT_NAME

public static final java.lang.String TEST_PROJECT_NAME
See Also:
Constant Field Values
Constructor Detail

DatasourceFormControllerTest

public DatasourceFormControllerTest(java.lang.String arg0)
Parameters:
arg0 - String
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.io.IOException
java.lang.Exception

testAddView

public void testAddView()
                 throws java.lang.Exception
test for checking add view. Similar to clicking on add button of datasource page

Throws:
java.lang.Exception

testEditView

public void testEditView()
                  throws java.lang.Exception
test for checking Edit view. Similar to clicking on Edit button of datasource page

Throws:
java.lang.Exception

testAddNewAndDeleteDatasource

public void testAddNewAndDeleteDatasource()
                                   throws java.lang.Exception
test for delete datasource functionality. This test creates new datasource 'testdatasource' and deletes this as well. Simulates delete button functionality of datasource page

Throws:
java.lang.Exception

testAddNewAndEditDatasource

public void testAddNewAndEditDatasource()
                                 throws java.lang.Exception
test for Edit datasource functionality. This test creates new datasource 'testdatasource' and edit its field 'server' and 'catalog' as well. Simulates Edit button functionality of datasource page

Throws:
java.lang.Exception