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

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.FieldsTest
All Implemented Interfaces:
junit.framework.Test

public class FieldsTest
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
FieldsTest()
           
 
Method Summary
protected  void modifyField(JField field, java.lang.String modificationId)
           
protected  void moveAndModifyField1()
          Moves field1 from class to the enum.
protected  void moveAndModifyField2()
          Does all modifications of testMoveAndModify1(), switches the order of annotations of field1 in enum, modifies these annotations, then clones the field and inserts cloned field back into class 1.
protected  void readModifiedField1(JField field2, java.lang.String modificationId)
           
protected  void readModifiedField2(JField field2, java.lang.String modificationId)
           
protected  void readOriginalField1(JField field)
           
protected  void readOriginalField2(JField field)
           
 void testMoveAndModify1()
          Moves field1 from class to the enum.
 void testMoveAndModify2()
          Does all modifications of testMoveAndModify1(), switches the order of annotations of field1 in enum, modifies these annotations, then clones the field and inserts cloned field 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

FieldsTest

public FieldsTest()
Method Detail

testMoveAndModify1

public void testMoveAndModify1()
Moves field1 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 field1 in enum, modifies these annotations, then clones the field and inserts cloned field back into class 1.


testMoveClasses

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


moveAndModifyField1

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


moveAndModifyField2

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


modifyField

protected void modifyField(JField field,
                           java.lang.String modificationId)

readOriginalField1

protected void readOriginalField1(JField field)

readOriginalField2

protected void readOriginalField2(JField field)

readModifiedField1

protected void readModifiedField1(JField field2,
                                  java.lang.String modificationId)

readModifiedField2

protected void readModifiedField2(JField field2,
                                  java.lang.String modificationId)

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