org.eclipse.emf.test.tools.merger.facade
Class BaseFacadeTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by 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


Nested Class Summary
protected static class BaseFacadeTest.Operation
           
 
Field Summary
protected  java.lang.String baseDataDirectory
           
protected  JCompilationUnit compilationUnit
           
protected  java.io.File compilationUnitFile
           
protected  java.lang.String compilationUnitFileName
           
protected  FacadeHelper facadeHelper
           
protected  java.lang.String testDirectoryName
           
 
Constructor Summary
BaseFacadeTest()
           
BaseFacadeTest(BaseFacadeTest anotherTest)
          Initializes attributes from another test.
 
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
 

Field Detail

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
Constructor Detail

BaseFacadeTest

public BaseFacadeTest(BaseFacadeTest anotherTest)
Initializes attributes from another test.

Parameters:
anotherTest -

BaseFacadeTest

public BaseFacadeTest()
Method Detail

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)

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.