@Override void clearData() throws Exception { service.clearData(); } }
@Override public PluginResourceTypeView getResourceTypeView(Account account, ResourceType type) { return getAccountView(account).getResourceTypeView(type); } }
@BeforeClass public static void setupTestClass() throws Exception { Configuration conf = BaseTest.createTestConf(); Injector injector = Guice.createInjector( new ConfigurationModule(conf), new TestStoreModule() ); service = injector.getInstance(SQLPluginMetaStoreService.class); service.startAndWait(); }
@After public void cleanupBaseTest() throws Exception { if (shouldClearDataBetweenTests()) { sqlTenantStore.clearData(); sqlClusterStoreService.clearData(); sqlProvisionerStore.clearData(); sqlMetaStoreService.clearData(); sqlUserStore.clearData(); pluginStore.clearData(); credentialStore.wipe(); } }