de.smartics.testdoc.report.junit
Class DirectoryJUnitTestCaseManager

Package class diagram package DirectoryJUnitTestCaseManager
java.lang.Object
  extended by de.smartics.testdoc.report.junit.DirectoryJUnitTestCaseManager
All Implemented Interfaces:
JUnitTestCaseManager

public class DirectoryJUnitTestCaseManager
     
     
extends Object
implements JUnitTestCaseManager

Provides access to test case information.

The manager knows the location of the JUnit XML reports and returns the information on demand.

Author:
Robert Reiner

Constructor Summary
DirectoryJUnitTestCaseManager(File rootDirectory)
          Default constructor.
 
Method Summary
 void clearCache()
          Removes all instances from the cache.
 void evict(Type testCaseType)
          Allows to selectively remove instances from the cache.
 JUnitTestCaseDoc readTestCase(Type testCaseType)
          Reads the test case for the given test case type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryJUnitTestCaseManager

public DirectoryJUnitTestCaseManager(File rootDirectory)
Default constructor.

Method Detail

evict

public void evict(Type testCaseType)
Allows to selectively remove instances from the cache.

Specified by:
evict in interface JUnitTestCaseManager
Parameters:
testCaseType - the test case instance to remove from the cache.

clearCache

public void clearCache()
Removes all instances from the cache.

Specified by:
clearCache in interface JUnitTestCaseManager

readTestCase

public JUnitTestCaseDoc readTestCase(Type testCaseType)
                              throws TestCaseReportException
Reads the test case for the given test case type.

Reads the XML report form the root directory.

Specified by:
readTestCase in interface JUnitTestCaseManager
Parameters:
testCaseType - the type of the test case to read.
Returns:
the information from the test case.
See Also:
JUnitTestCaseManager.readTestCase(de.smartics.testdoc.core.doc.Type)
Throws:
TestCaseReportException - on any problem reading the test case.


Copyright © 2010-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.