|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.ibm.xtools.patterns.framework.test.AbstractTestCase
This is the base class for all pattern test cases. It enforces that all pattern test cases to provide the following information about themselves: - The ID, version, and name of the pattern that it is testing, and the Eclipse plug-in for the test case.
Constructor Summary | |
AbstractTestCase()
|
Method Summary | |
protected boolean |
addParameterArgument(String parameterName,
Object value)
Add the specified value as an argument to the parameter with the specified name |
protected boolean |
addParameterArguments(String parameterName,
Object[] values)
Add the specified values as arguments to the parameter with the specified name. |
protected boolean |
addParameterValue(String parameterName,
Object value)
Add the specified value to the parameter with the specified name |
protected boolean |
addParameterValues(String parameterName,
Object[] values)
Add the specified values to the parameter with the specified name. |
protected void |
generateCodeForModel(AbstractTransform modelTransform,
Model testModel,
org.eclipse.jdt.core.IJavaProject targetJavaProject)
Deprecated. use AbstractGoFTestSetup.generateCodeForSourceList |
protected IParameterDescriptor |
getParameter(String name)
Retrieve the pattern parameter with the specified name |
protected Object[] |
getParameterValues(String parameterName)
Retrieve this values assigned to the specified parameter |
protected abstract String |
getPatternId()
|
protected abstract AbstractPatternInstance |
getPatternInstance()
|
protected abstract String |
getPatternVersion()
|
protected abstract Plugin |
getTestPlugin()
|
protected boolean |
removeParameterValue(String parameterName,
Object value)
Remove the specified value from the parameter with the specified name |
protected void |
setUp()
Sets up the fixture, for example, open a network connection. |
protected void |
tearDown()
Tears down the fixture, for example, close a network connection. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbstractTestCase()
Method Detail |
protected boolean addParameterValue(String parameterName, Object value)
parameterName
- name of a pattern parametervalue
- value to be added to the specified parameter
protected boolean addParameterArgument(String parameterName, Object value)
parameterName
- name of a pattern parametervalue
- value to be added as an argument to the specified parameter
protected boolean addParameterValues(String parameterName, Object[] values)
parameterName
- name of a pattern parametervalues
- list of values to be added to the specified parameter
protected boolean addParameterArguments(String parameterName, Object[] values)
parameterName
- name of a pattern parametervalues
- list of values to be added as arguments to the specified parameter
protected void generateCodeForModel(AbstractTransform modelTransform, Model testModel, org.eclipse.jdt.core.IJavaProject targetJavaProject)
protected IParameterDescriptor getParameter(String name) throws NoSuchElementException
name
- name of a pattern parameter
NoSuchElementException
protected Object[] getParameterValues(String parameterName)
parameterName
- name of a pattern parameter
protected abstract String getPatternId()
protected abstract String getPatternVersion()
protected abstract AbstractPatternInstance getPatternInstance()
protected abstract Plugin getTestPlugin()
protected boolean removeParameterValue(String parameterName, Object value)
parameterName
- name of a pattern parametervalue
- value to be removed from the specified parameter
protected void setUp() throws Exception
junit.framework.TestCase
Exception
TestCase.setUp()
protected void tearDown() throws Exception
junit.framework.TestCase
Exception
TestCase.tearDown()
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.