use of org.acra.plugins.SimplePluginLoader in project acra by ACRA.
the class ACRATest method failing.
@Test(expected = AssertionError.class)
public void failing() {
Application application = ApplicationProvider.getApplicationContext();
CoreConfigurationBuilder builder = new CoreConfigurationBuilder().withPluginLoader(new SimplePluginLoader(FailingTestAdministrator.class));
ACRA.init(application, builder);
ACRA.getErrorReporter().handleException(new RuntimeException());
}
use of org.acra.plugins.SimplePluginLoader in project acra by ACRA.
the class ACRATest method init.
@Test
public void init() {
Application application = ApplicationProvider.getApplicationContext();
CoreConfigurationBuilder builder = new CoreConfigurationBuilder().withPluginLoader(new SimplePluginLoader(StacktraceCollector.class, TestAdministrator.class));
ACRA.init(application, builder);
ACRA.getErrorReporter().handleException(new RuntimeException());
}
Aggregations