test
Class TestBank

java.lang.Object
  extended by test.TestBank

public abstract class TestBank
extends java.lang.Object


Field Summary
(package private)  java.util.Collection<Test> bank
           
 
Constructor Summary
TestBank()
           
 
Method Summary
(package private) abstract  void addTest(Test test)
          Adds a Test to the Test Bank.
(package private) abstract  void deleteTest(Test test)
          Removes the specified Test from the Test Bank
(package private) abstract  java.util.Collection<Test> findTest(java.lang.String search)
          Searches for a Test in the Test Bank.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bank

java.util.Collection<Test> bank
Constructor Detail

TestBank

public TestBank()
Method Detail

addTest

abstract void addTest(Test test)
Adds a Test to the Test Bank.

Parameters:
test -

deleteTest

abstract void deleteTest(Test test)
Removes the specified Test from the Test Bank

Parameters:
test -

findTest

abstract java.util.Collection<Test> findTest(java.lang.String search)
Searches for a Test in the Test Bank. Searches through all questions in this Test.

Parameters:
search - The String to search for.
Returns:
All tests that contains the search term, null if none are found.