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

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

public class FacadeTest_Example1
extends junit.framework.TestCase

Since:
2.2.0

Field Summary
protected  JCompilationUnit compilationUnit
           
protected  JType mainType
           
protected  boolean testBody
           
protected  boolean testComment
           
protected  boolean testContent
           
protected  boolean testContentWithComments
          Determines if contents with surrounding comments must be tested.
protected  boolean testHeader
           
protected  boolean trimContents
          Determines if contents must be trimmed (leading and trailing whitespace removed) when comparing contents.
 
Constructor Summary
FacadeTest_Example1(java.lang.String name)
           
 
Method Summary
 void assertContentEquals(java.lang.String string1, java.lang.String string2)
           
protected  java.io.File getJavaFile()
           
protected  void readTest(FacadeHelper facadeHelper, java.io.File file)
           
protected  void readTest(JCompilationUnit compilationUnit)
           
protected  void readTest(JPackage jPackage)
           
protected  void readTestFields(java.util.List<?> fields)
           
protected  void readTestImports(java.util.List<?> imports)
           
protected  void readTestInitializers(java.util.List<?> initializers)
           
protected  void readTestMainType()
           
protected  void readTestMethods(java.util.List<?> methods)
           
protected  void readTestNestedTypes(java.util.List<?> types)
           
protected  void readTestTypes(java.util.List<?> types)
           
protected  void setTestActualText(boolean test)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testAST()
           
protected  void testInstanceOf(java.lang.Object object, java.lang.Class<?> cls)
           
 void testJDOM()
           
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

testHeader

protected boolean testHeader

testComment

protected boolean testComment

testBody

protected boolean testBody

testContent

protected boolean testContent

testContentWithComments

protected boolean testContentWithComments
Determines if contents with surrounding comments must be tested.


trimContents

protected boolean trimContents
Determines if contents must be trimmed (leading and trailing whitespace removed) when comparing contents.


compilationUnit

protected JCompilationUnit compilationUnit

mainType

protected JType mainType
Constructor Detail

FacadeTest_Example1

public FacadeTest_Example1(java.lang.String name)
Method Detail

suite

public static junit.framework.Test suite()

setTestActualText

protected void setTestActualText(boolean test)

getJavaFile

protected java.io.File getJavaFile()

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testJDOM

public void testJDOM()
              throws java.lang.Exception
Throws:
java.lang.Exception

testAST

public void testAST()
             throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

readTest

protected void readTest(FacadeHelper facadeHelper,
                        java.io.File file)
                 throws java.lang.Exception
Throws:
java.lang.Exception

readTest

protected void readTest(JCompilationUnit compilationUnit)
                 throws java.lang.Exception
Throws:
java.lang.Exception

readTest

protected void readTest(JPackage jPackage)
                 throws java.lang.Exception
Throws:
java.lang.Exception

readTestImports

protected void readTestImports(java.util.List<?> imports)
                        throws java.lang.Exception
Throws:
java.lang.Exception

readTestTypes

protected void readTestTypes(java.util.List<?> types)
                      throws java.lang.Exception
Throws:
java.lang.Exception

readTestMainType

protected void readTestMainType()
                         throws java.lang.Exception
Throws:
java.lang.Exception

readTestNestedTypes

protected void readTestNestedTypes(java.util.List<?> types)
                            throws java.lang.Exception
Throws:
java.lang.Exception

readTestFields

protected void readTestFields(java.util.List<?> fields)
                       throws java.lang.Exception
Throws:
java.lang.Exception

readTestMethods

protected void readTestMethods(java.util.List<?> methods)
                        throws java.lang.Exception
Throws:
java.lang.Exception

readTestInitializers

protected void readTestInitializers(java.util.List<?> initializers)
                             throws java.lang.Exception
Throws:
java.lang.Exception

testInstanceOf

protected void testInstanceOf(java.lang.Object object,
                              java.lang.Class<?> cls)

assertContentEquals

public void assertContentEquals(java.lang.String string1,
                                java.lang.String string2)

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