|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.andromda.translation.ocl.testsuite.TranslationTestProcessor
public final class TranslationTestProcessor
This object is used to test Translations during development.
| Method Summary | |
|---|---|
protected Object |
findModelElement(String translation,
String expression)
Finds the classifier having fullyQualifiedName in the
model. |
static TranslationTestProcessor |
instance()
Gets the shared instance of this class. |
void |
runSuite()
Runs the test suite. |
void |
setConfiguration(Configuration configuration)
Sets AndroMDA configuration instance. |
void |
setResult(TestResult testResult)
Sets the test result in which the result of the run will be stored. |
void |
setTestSourceDirectory(String testSourceDirectory)
Sets the location of the directory that contains the test souce. |
void |
setTranslationName(String translationName)
Sets the name of the translation to test. |
void |
setUseTraceTranslator(boolean useTraceTranslator)
Sets whether or not to use the trace translator. |
void |
shutdown()
Shuts down this instance. |
void |
testTranslation()
Tests the current translation set in the currentTestTranslation property. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static final TranslationTestProcessor instance()
public void setUseTraceTranslator(boolean useTraceTranslator)
useTraceTranslator - true/falsepublic void setTranslationName(String translationName)
translationName - the name of the translation to test.public void setTestSourceDirectory(String testSourceDirectory)
testSourceDirectory - public void setResult(TestResult testResult)
testResult - the test result instance.public void runSuite()
TestCase.run()public void setConfiguration(Configuration configuration)
configuration - the AndroMDA configuration instance.
protected Object findModelElement(String translation,
String expression)
fullyQualifiedName in the
model.
translation - the translation we're usingexpression - the expression from which we'll find the model element.
public void testTranslation()
public void shutdown()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||