org.aspectj.weaver.patterns
Class WildTypePatternResolutionTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.aspectj.weaver.patterns.WildTypePatternResolutionTestCase
All Implemented Interfaces:
junit.framework.Test

public class WildTypePatternResolutionTestCase
extends junit.framework.TestCase


Constructor Summary
WildTypePatternResolutionTestCase()
           
 
Method Summary
 void testParameterized()
          Foo where Foo exists and String meets the bounds Parser creates WildTypePattern namePatterns = {Foo}, typeParameters=WTP{String} resolveBindings resolves typeParameters to ExactTypePattern(String) resolves Foo to RT(Foo) returns ExactTypePattern(PFoo; - parameterized)
 void testParameterizedWildCard()
          Foo where Foo exists and takes one bound Parser creates WildTypePattern namePatterns = {Foo}, typeParameters=WTP{Str*} resolveBindings resolves typeParameters to WTP{Str*} resolves Foo to RT(Foo) returns WildTypePattern(name = Foo, typeParameters = WTP{Str*} isGeneric=false)
 void testSimpleFoo()
          Foo where Foo exists and is generic Parser creates WildTypePattern namePatterns={Foo} resolveBindings resolves Foo to RT(Foo - raw) return ExactTypePattern(LFoo;)
 void testSomething()
          Foo
 void testSomethingExtends()
          Foo
 void testSomethingExtendsPattern()
          Foo
 void testSomethingExtendsPatternv2()
          Foo
 void testSomethingSuper()
          Foo
 void testWildcardParameterized()
          Fo* Parser creates WildTypePattern namePatterns = {Fo*}, typeParameters=WTP{String} resolveBindings resolves typeParameters to ETP{String} returns WildTypePattern(name = Fo*, typeParameters = ETP{String} isGeneric=false)
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WildTypePatternResolutionTestCase

public WildTypePatternResolutionTestCase()
Method Detail

testSimpleFoo

public void testSimpleFoo()
Foo where Foo exists and is generic Parser creates WildTypePattern namePatterns={Foo} resolveBindings resolves Foo to RT(Foo - raw) return ExactTypePattern(LFoo;)


testParameterized

public void testParameterized()
Foo where Foo exists and String meets the bounds Parser creates WildTypePattern namePatterns = {Foo}, typeParameters=WTP{String} resolveBindings resolves typeParameters to ExactTypePattern(String) resolves Foo to RT(Foo) returns ExactTypePattern(PFoo; - parameterized)


testParameterizedWildCard

public void testParameterizedWildCard()
Foo where Foo exists and takes one bound Parser creates WildTypePattern namePatterns = {Foo}, typeParameters=WTP{Str*} resolveBindings resolves typeParameters to WTP{Str*} resolves Foo to RT(Foo) returns WildTypePattern(name = Foo, typeParameters = WTP{Str*} isGeneric=false)


testWildcardParameterized

public void testWildcardParameterized()
Fo* Parser creates WildTypePattern namePatterns = {Fo*}, typeParameters=WTP{String} resolveBindings resolves typeParameters to ETP{String} returns WildTypePattern(name = Fo*, typeParameters = ETP{String} isGeneric=false)


testSomething

public void testSomething()
Foo


testSomethingExtends

public void testSomethingExtends()
Foo


testSomethingExtendsPattern

public void testSomethingExtendsPattern()
Foo


testSomethingExtendsPatternv2

public void testSomethingExtendsPatternv2()
Foo


testSomethingSuper

public void testSomethingSuper()
Foo