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
Exceptionpublic void testHasMatchingParameterizedArgTypes2() throws Exception
Exceptionpublic void testHasMatchingParameterizedArgTypes3() throws Exception
Exceptionpublic void testDetectOptionalString() throws Exception
Exceptionpublic void testOptionalThatIsntAString() throws Exception
Exceptionpublic void testNormalString() throws Exception
Exceptionpublic void test()
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.