org.apache.bcel
Class EnclosingMethodAttributeTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.bcel.AbstractTestCase
              extended by org.apache.bcel.EnclosingMethodAttributeTestCase
All Implemented Interfaces:
junit.framework.Test

public class EnclosingMethodAttributeTestCase
extends AbstractTestCase


Constructor Summary
EnclosingMethodAttributeTestCase()
           
 
Method Summary
 void testAttributeSerializtion()
          Check that we can save and load the attribute correctly.
 void testCheckClassLevelNamedInnerClass()
          Verify for an inner class declared at the type level that the EnclosingMethod attribute is set correctly (i.e.
 void testCheckMethodLevelNamedInnerClass()
          Verify for an inner class declared inside the 'main' method that the enclosing method attribute is set correctly.
 
Methods inherited from class org.apache.bcel.AbstractTestCase
createFruitAnnotationEntry, createRepos, createTestdataFile, dumpAnnotationEntries, dumpAnnotationEntries, dumpAttributes, findAttribute, findAttribute, getMethod, getTestClass, wipe, wipe
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnclosingMethodAttributeTestCase

public EnclosingMethodAttributeTestCase()
Method Detail

testCheckMethodLevelNamedInnerClass

public void testCheckMethodLevelNamedInnerClass()
                                         throws ClassNotFoundException
Verify for an inner class declared inside the 'main' method that the enclosing method attribute is set correctly.

Throws:
ClassNotFoundException

testCheckClassLevelNamedInnerClass

public void testCheckClassLevelNamedInnerClass()
                                        throws ClassNotFoundException
Verify for an inner class declared at the type level that the EnclosingMethod attribute is set correctly (i.e. to a null value)

Throws:
ClassNotFoundException

testAttributeSerializtion

public void testAttributeSerializtion()
                               throws ClassNotFoundException,
                                      IOException
Check that we can save and load the attribute correctly.

Throws:
ClassNotFoundException
IOException


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.