Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
public class ReflectionCacheTest extends AbstractLogSupportTestBase {

	/** 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 ...

	}

}

...