...
Code Block |
---|
public class ReflectionCacheTest extends AbstractLogSupport {
/** Class under test. */
@InjectMocks
ReflectionCache cache;
/** Tests for the {@link ReflectionCache#invokeMethod(Class, String, Class[], Object, Object[], Object)} method. */
public static class InvokeMethod extends ReflectionCacheTest {
@Test
public void normalUsage() {
String testString = "I am a test";
String result = (String) cache.invokeMethod(String.class, "toString", testString, null, null);
assertThat(result, is(testString));
}
@Test
public void multipleInvocationOnSameObject() {
... test method content ...
}
@Test
public void methodWithParameter() {
... test method content ...
}
... more test methods ...
}
}
|
...