org.junit.internal.runners.InitializationError Java Examples

The following examples show how to use org.junit.internal.runners.InitializationError. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JUnit44RunnerImpl.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
public JUnit44RunnerImpl(Class<?> klass) throws InitializationError {
    this.runner = new JUnit4ClassRunner(klass) {
        @Override
        protected Object createTest() throws Exception {
            Object test = super.createTest();
            MockitoAnnotations.initMocks(test);
            return test;
        }
    };
}
 
Example #2
Source File: JUnit44RunnerImpl.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
public JUnit44RunnerImpl(Class<?> klass) throws InitializationError {
    this.runner = new JUnit4ClassRunner(klass) {
        @Override
        protected Object createTest() throws Exception {
            Object test = super.createTest();
            MockitoAnnotations.initMocks(test);
            return test;
        }
    };
}
 
Example #3
Source File: MondrianFileSchemaProviderTest.java    From pentaho-aggdesigner with GNU General Public License v2.0 5 votes vote down vote up
public MondrianFileSchemaProviderTest() throws InitializationError {
  super(MondrianFileSchemaProviderTest.class);
  try {
  	KettleClientEnvironment.init();
  } catch (Exception e) {
  	e.printStackTrace();
  }
}
 
Example #4
Source File: ConnectionControllerITest.java    From pentaho-aggdesigner with GNU General Public License v2.0 5 votes vote down vote up
public ConnectionControllerITest() throws InitializationError {
  super(ConnectionControllerITest.class);
  try {
  	KettleClientEnvironment.init();
  } catch (Exception e) {
  	e.printStackTrace();
  }
}
 
Example #5
Source File: JUnit4ClassRunner.java    From bulbasaur with Apache License 2.0 4 votes vote down vote up
public JUnit4ClassRunner(Class<?> clazz) throws InitializationError, org.junit.internal.runners.InitializationError,
    org.junit.runners.model.InitializationError {
    super(clazz);
}
 
Example #6
Source File: GoJUnitExtSpringRunner.java    From gocd with Apache License 2.0 4 votes vote down vote up
public GoJUnitExtSpringRunner(Class<?> aClass) throws InitializationError {
    super(aClass);
}