ucot.test
Class CoreTest

java.lang.Object
  extended by ucot.test.CoreTest

public class CoreTest
extends java.lang.Object

This class is implements all critical tests for the UCOT core component.

Author:
tujupien

Field Summary
(package private)  Core core
           
(package private)  java.net.URL testFile
           
(package private)  java.lang.String testFileName
           
 
Constructor Summary
CoreTest()
           
 
Method Summary
private  boolean loadUseCases()
          Method for centralized UseCase loading.
 void testCoreShutdownAndStartup()
          Test method for core shutdown and startup routines.
 void testUseCaseLoading()
          Method for testing loading of use cases.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

core

Core core

testFile

java.net.URL testFile

testFileName

final java.lang.String testFileName
See Also:
Constant Field Values
Constructor Detail

CoreTest

public CoreTest()
Method Detail

loadUseCases

private boolean loadUseCases()
Method for centralized UseCase loading. This method loads use cases from the file pointed out by testFileName. That file should include only one valid UseCase and one invalid if that is possible.

Returns:
Boolean true if no error occured and false if something happened.

testCoreShutdownAndStartup

public void testCoreShutdownAndStartup()
Test method for core shutdown and startup routines.


testUseCaseLoading

public void testUseCaseLoading()
Method for testing loading of use cases. Loading use cases fro testFileName should result only one valid use case in the core component's useCaseCollection.