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

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.emf.test.tools.merger.facade.BaseFacadeTest
              extended by org.eclipse.emf.test.tools.merger.facade.MethodsTest
All Implemented Interfaces:
junit.framework.Test

public class MethodsTest
extends BaseFacadeTest


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.test.tools.merger.facade.BaseFacadeTest
BaseFacadeTest.Operation
 
Field Summary
 
Fields inherited from class org.eclipse.emf.test.tools.merger.facade.BaseFacadeTest
baseDataDirectory, compilationUnit, compilationUnitFile, compilationUnitFileName, facadeHelper, testDirectoryName
 
Constructor Summary
MethodsTest()
           
 
Method Summary
protected  void modifyMethod(JMethod method, java.lang.String modificationId, int noParameters, int noExceptions, int noTypeParameters, int flags, boolean enableSetParameters)
           
protected  void moveAndModifyMethod1()
          Moves method1 from class to the enum.
protected  void moveAndModifyMethod2()
          Does all modifications of testMoveAndModify1(), switches the order of annotations of method1 in enum, modifies these annotations, then clones the method and inserts cloned method back into class 1.
protected  void readModifiedMethod(JMethod method, java.lang.String modificationId, int noParameters, int noExceptions, int noTypeParameters, int flags, boolean enableSetParameters)
           
 void testMoveAndModify1()
          Moves method1 from class to the enum.
 void testMoveAndModify2()
          Does all modifications of testMoveAndModify1(), switches the order of annotations of method1 in enum, modifies these annotations, then clones the method and inserts cloned method back into class 1.
 void testMoveClasses()
          Does all modifications of testMoveAndModify2(), and at the end switches the order of enum and class.
 
Methods inherited from class org.eclipse.emf.test.tools.merger.facade.BaseFacadeTest
addChild, adjustJavaCoreOptions, insertSibling, instanciateFacadeHelper, remove, removeAllChildren, removeAllChildren, rewriteAndCompare, rewriteAndCompare, setUp, testNoChildren, testNoChildren, updateNoChildren, updateNoChildren
 
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
 

Constructor Detail

MethodsTest

public MethodsTest()
Method Detail

testMoveAndModify1

public void testMoveAndModify1()
Moves method1 from class to the enum. Modifies all properties and tests them during move.


testMoveAndModify2

public void testMoveAndModify2()
Does all modifications of testMoveAndModify1(), switches the order of annotations of method1 in enum, modifies these annotations, then clones the method and inserts cloned method back into class 1.


testMoveClasses

public void testMoveClasses()
Does all modifications of testMoveAndModify2(), and at the end switches the order of enum and class.


moveAndModifyMethod1

protected void moveAndModifyMethod1()
Moves method1 from class to the enum. Modifies all properties and tests them during move.


moveAndModifyMethod2

protected void moveAndModifyMethod2()
Does all modifications of testMoveAndModify1(), switches the order of annotations of method1 in enum, modifies these annotations, then clones the method and inserts cloned method back into class 1.


modifyMethod

protected void modifyMethod(JMethod method,
                            java.lang.String modificationId,
                            int noParameters,
                            int noExceptions,
                            int noTypeParameters,
                            int flags,
                            boolean enableSetParameters)

readModifiedMethod

protected void readModifiedMethod(JMethod method,
                                  java.lang.String modificationId,
                                  int noParameters,
                                  int noExceptions,
                                  int noTypeParameters,
                                  int flags,
                                  boolean enableSetParameters)

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