@Override protected void setUp() throws Exception { super.setUp(); db = createDatabase(); }
@Override /** Closes the db, and terminates an application, if one was created before. */ protected void tearDown() throws Exception { if (application != null) { terminateApplication(); } db.close(); if (!inMemory) { getContext().deleteDatabase(DB_NAME); } super.tearDown(); }
@TargetApi(4) @Override public void assertActivityRequiresPermission(AndroidTestCase test, String packageName, String className, String permission) { test.assertActivityRequiresPermission(packageName, className, permission); }
@TargetApi(4) @Override public void assertActivityRequiresPermission(AndroidTestCase test, String packageName, String className, String permission) { test.assertActivityRequiresPermission(packageName, className, permission); }
@Override protected void setUp() throws Exception { super.setUp(); }
@Override public void tearDown() throws Exception { super.tearDown(); }
@Override protected void setUp() throws Exception { super.setUp(); getContext().deleteDatabase(TEST_DATABASE_NAME); }
@Override public void tearDown() throws Exception { super.tearDown(); }
public void setUp() throws Exception { super.setUp(); MapsInitializer.initialize(getContext()); pointStyle = new GeoJsonPointStyle(); }
@Override protected void tearDown() throws Exception { _openHelper.close(); super.tearDown(); }
@Before public final void setupBaseTest() throws Exception { super.setUp(); App app = (App) InstrumentationRegistry.getTargetContext().getApplicationContext(); mTestComponent = TestUtil.prepare(app); }
protected void tearDown() throws Exception { mDBTestCase.tearDown(); super.tearDown(); }
@Override public void setUp() throws Exception { super.setUp(); }
@Override protected void tearDown() throws Exception { super.tearDown(); }
@Override public void setUp() throws Exception { super.setUp(); }
@Override /** Closes the db, and terminates an application, if one was created before. */ protected void tearDown() throws Exception { if (application != null) { terminateApplication(); } db.close(); if (!inMemory) { getContext().deleteDatabase(DB_NAME); } super.tearDown(); }
@Override public void setUp() throws Exception { super.setUp(); TestProperties properties = new TestProperties(this.getContext()); mqttServerURI = properties.getServerURI(); mqttSSLServerURI = properties.getServerSSLURI(); waitForCompletionTime = properties.getWaitForCompletionTime(); String clientKeyStore = properties.getClientKeyStore(); keyStorePwd = properties.getClientKeyStorePassword(); Log.d(TAG, properties.getServerSSLURI()); }
@Override protected void tearDown() throws Exception { super.tearDown(); testDeleteAllRecords(); }
@Override protected void setUp() throws Exception { super.setUp(); db = createDatabase(); }
@Override protected void tearDown() throws Exception { store.clear(); super.tearDown(); }