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

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

public class ConnectTest

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
 

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

tearDown

public void tearDown()
Release any objects after tests are complete

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.