serp.bytecode
Class TestNameCache

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by serp.bytecode.TestNameCache
All Implemented Interfaces:
junit.framework.Test

public class TestNameCache
extends junit.framework.TestCase

Tests the NameCache utility type.

Author:
Abe White

Constructor Summary
TestNameCache(String test)
           
 
Method Summary
static void main(String[] args)
           
 void setUp()
           
static junit.framework.Test suite()
           
 void testArrayExternalForm()
          Tests that array class names are correctly converted to external form.
 void testArrayInternalForm()
          Tests that array class names are correctly converted to internal form.
 void testComponentTypes()
          Test NameCache#getComponentTypeName.
 void testDescriptorParamNames()
          Test that param types are extracted from method descriptors.
 void testDescriptorReturnName()
          Test that return types are extracted from method descriptors.
 void testDescriptors()
          Tests that method descriptors are correctly formed.
 void testExternalForm()
          Tests that class names are correctly converted to external form.
 void testInternalForm()
          Tests that class names are correctly converted to internal form.
 
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

TestNameCache

public TestNameCache(String test)
Method Detail

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

testInternalForm

public void testInternalForm()
Tests that class names are correctly converted to internal form.


testArrayInternalForm

public void testArrayInternalForm()
Tests that array class names are correctly converted to internal form.


testExternalForm

public void testExternalForm()
Tests that class names are correctly converted to external form.


testArrayExternalForm

public void testArrayExternalForm()
Tests that array class names are correctly converted to external form.


testDescriptors

public void testDescriptors()
Tests that method descriptors are correctly formed.


testDescriptorReturnName

public void testDescriptorReturnName()
Test that return types are extracted from method descriptors.


testDescriptorParamNames

public void testDescriptorParamNames()
Test that param types are extracted from method descriptors.


testComponentTypes

public void testComponentTypes()
Test NameCache#getComponentTypeName.


suite

public static junit.framework.Test suite()

main

public static void main(String[] args)


Copyright © 2002-2013. All Rights Reserved.