edu.ucsb.nceas.morpho.framework.tests
Class ConnectTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--edu.ucsb.nceas.morpho.framework.tests.ConnectTest
All Implemented Interfaces:
junit.framework.Test

public class ConnectTest
extends junit.framework.TestCase

A JUnit test for testing the connection capabilities of the framework.


Constructor Summary
ConnectTest(java.lang.String name)
          Constructor to build the test
 
Method Summary
 void setUp()
          Establish a testing framework by initializing appropriate objects
static junit.framework.Test suite()
          Create a suite of tests to be run together
 void tearDown()
          Release any objects after tests are complete
 void testInvalidLogin()
          Test if the logIn() function works given an invalid username and password
 void testLogout()
          Test if the logOut() function works
 void testValidLogin()
          Test if the logIn() function works given a valid username and password
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectTest

public ConnectTest(java.lang.String name)
Constructor to build the test
Parameters:
name - the name of the test method
Method Detail

setUp

public void setUp()
Establish a testing framework by initializing appropriate objects
Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
Release any objects after tests are complete
Overrides:
tearDown in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Create a suite of tests to be run together

testValidLogin

public void testValidLogin()
Test if the logIn() function works given a valid username and password

testLogout

public void testLogout()
Test if the logOut() function works

testInvalidLogin

public void testInvalidLogin()
Test if the logIn() function works given an invalid username and password


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.