org.eclipse.emf.test.tools.merger.facade
Class BaseFacadeTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.eclipse.emf.test.tools.merger.facade.BaseFacadeTest
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- AnnotationsTest, CommentOutTest, FieldsTest, MethodsTest, SplitFieldsTest, TypesTest
public class BaseFacadeTest
- extends junit.framework.TestCase
Method Summary |
protected int |
addChild(JNode node,
JNode child,
int noChildrenBefore)
|
protected void |
adjustJavaCoreOptions()
|
protected int |
insertSibling(JNode node,
JNode newSibling,
boolean before,
int noChildrenBefore)
|
protected FacadeHelper |
instanciateFacadeHelper()
|
protected int |
remove(JNode node,
int noChildrenBefore)
|
protected void |
removeAllChildren(JNode node,
int noChildrenBefore)
|
protected void |
removeAllChildren(JNode node,
int noChildrenBefore,
java.lang.Class<? extends JNode> childrenClass)
|
protected void |
rewriteAndCompare()
|
protected void |
rewriteAndCompare(java.lang.String expectedOutputFileName)
|
protected void |
setUp()
|
protected void |
testNoChildren(JNode parentNode,
int noChildren)
|
protected void |
testNoChildren(JNode parentNode,
int noChildren,
java.lang.Class<? extends JNode> childrenClass)
|
protected int |
updateNoChildren(JNode parentNode,
JNode node,
BaseFacadeTest.Operation operation,
int noChildrenBefore)
|
protected int |
updateNoChildren(JNode parentNode,
JNode node,
BaseFacadeTest.Operation operation,
int noChildrenBefore,
java.lang.Class<? extends JNode> childrenClass)
|
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
baseDataDirectory
protected java.lang.String baseDataDirectory
testDirectoryName
protected java.lang.String testDirectoryName
compilationUnitFileName
protected java.lang.String compilationUnitFileName
facadeHelper
protected FacadeHelper facadeHelper
compilationUnitFile
protected java.io.File compilationUnitFile
compilationUnit
protected JCompilationUnit compilationUnit
BaseFacadeTest
public BaseFacadeTest(BaseFacadeTest anotherTest)
- Initializes attributes from another test.
- Parameters:
anotherTest
-
BaseFacadeTest
public BaseFacadeTest()
setUp
protected void setUp()
throws java.lang.Exception
- Overrides:
setUp
in class junit.framework.TestCase
- Throws:
java.lang.Exception
instanciateFacadeHelper
protected FacadeHelper instanciateFacadeHelper()
rewriteAndCompare
protected void rewriteAndCompare()
adjustJavaCoreOptions
protected void adjustJavaCoreOptions()
rewriteAndCompare
protected void rewriteAndCompare(java.lang.String expectedOutputFileName)
testNoChildren
protected void testNoChildren(JNode parentNode,
int noChildren)
testNoChildren
protected void testNoChildren(JNode parentNode,
int noChildren,
java.lang.Class<? extends JNode> childrenClass)
updateNoChildren
protected int updateNoChildren(JNode parentNode,
JNode node,
BaseFacadeTest.Operation operation,
int noChildrenBefore)
updateNoChildren
protected int updateNoChildren(JNode parentNode,
JNode node,
BaseFacadeTest.Operation operation,
int noChildrenBefore,
java.lang.Class<? extends JNode> childrenClass)
removeAllChildren
protected void removeAllChildren(JNode node,
int noChildrenBefore)
removeAllChildren
protected void removeAllChildren(JNode node,
int noChildrenBefore,
java.lang.Class<? extends JNode> childrenClass)
insertSibling
protected int insertSibling(JNode node,
JNode newSibling,
boolean before,
int noChildrenBefore)
addChild
protected int addChild(JNode node,
JNode child,
int noChildrenBefore)
remove
protected int remove(JNode node,
int noChildrenBefore)