/** * Returns a {@link TestClass} object wrapping the class to be executed. This method is required for testing because * {@link #getTestClass()} is final and therefore cannot be stubbed :( */ TestClass getTestClassInt() { return getTestClass(); }
/** * Returns a {@link TestClass} object wrapping the class to be executed. This method is required for testing because * {@link #getTestClass()} is final and therefore cannot be stubbed :( */ TestClass getTestClassInt() { return getTestClass(); }
/** * Returns a {@link TestClass} object wrapping the class to be executed. This method is required for testing because * {@link #getTestClass()} is final and therefore cannot be stubbed :( */ TestClass getTestClassInt() { return getTestClass(); }
/** * Returns a {@link TestClass} object wrapping the class to be executed. This method is required for testing because * {@link #getTestClass()} is final and therefore cannot be stubbed :( */ TestClass getTestClassInt() { return getTestClass(); }
@Test public void testDataProviderRunner() throws Exception { // Given: Class<?> clazz = DataProviderRunnerTest.class; // When: DataProviderRunner underTest = new DataProviderRunner(clazz); // Then: assertThat(underTest).isNotNull(); assertThat(underTest.getTestClass()).isNotNull(); assertThat(underTest.getTestClass().getJavaClass()).isEqualTo(clazz); }