org.andromda.translation.ocl.testsuite
Class TranslationTestDiscoverer

java.lang.Object
  extended by org.andromda.translation.ocl.testsuite.TranslationTestDiscoverer

public class TranslationTestDiscoverer
extends Object

Finds all translation tests from the current base directory up.

Author:
Chad Brandon

Constructor Summary
TranslationTestDiscoverer()
           
 
Method Summary
 void discoverTests(String directory)
          This method discovers all translation tests within the given directory.
 TranslationTest getTest(String translation)
          Returns the TranslationTest for the given translation (if one can be found), otherwise returns null.
 Map<String,TranslationTest> getTests()
          Returns the discovered translation tests keyed by translation.
static TranslationTestDiscoverer instance()
          Gets the shared instance of this TranslationTestDiscoverer.
 void shutdown()
          Shuts down this instance and releases any resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TranslationTestDiscoverer

public TranslationTestDiscoverer()
Method Detail

instance

public static TranslationTestDiscoverer instance()
Gets the shared instance of this TranslationTestDiscoverer.

Returns:
the shared TranslationTestDiscoverer.

discoverTests

public void discoverTests(String directory)
This method discovers all translation tests within the given directory.

Parameters:
directory -

getTest

public TranslationTest getTest(String translation)
Returns the TranslationTest for the given translation (if one can be found), otherwise returns null.

Parameters:
translation - the name of the translation
Returns:
TranslationTest

getTests

public Map<String,TranslationTest> getTests()
Returns the discovered translation tests keyed by translation.

Returns:
translationTests

shutdown

public void shutdown()
Shuts down this instance and releases any resources.



Copyright © 2003-2012 AndroMDA.org. All Rights Reserved.