public class ReflectionUtilsTest extends Object
Constructor and Description |
---|
ReflectionUtilsTest() |
Modifier and Type | Method and Description |
---|---|
void |
extractBuilderType() |
static Class<?> |
getFirstParameterizedTypeArgumentAsClass(Class<?> type,
Class<?> parameterizedInterface)
Given a class that implements a parameterized interface, return the actual type of the first parameterized argument for the interface
|
void |
test() |
void |
testDetectOptionalString() |
void |
testHasMatchingParameterizedArgTypes1() |
void |
testHasMatchingParameterizedArgTypes2() |
void |
testHasMatchingParameterizedArgTypes3() |
void |
testNormalString() |
void |
testOptionalThatIsntAString() |
public ReflectionUtilsTest()
public static Class<?> getFirstParameterizedTypeArgumentAsClass(Class<?> type, Class<?> parameterizedInterface)
Given a class that implements a parameterized interface, return the actual type of the first parameterized argument for the interface
Given:interface Foo<T> class Bar implements Foo<String>
This method returns String.class
public void extractBuilderType()
public void testHasMatchingParameterizedArgTypes1() throws Exception
Exception
public void testHasMatchingParameterizedArgTypes2() throws Exception
Exception
public void testHasMatchingParameterizedArgTypes3() throws Exception
Exception
public void testDetectOptionalString() throws Exception
Exception
public void testOptionalThatIsntAString() throws Exception
Exception
public void testNormalString() throws Exception
Exception
public void test()
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.