Search in sources :

Example 46 with After

use of org.junit.After in project che by eclipse.

the class Rename18Test method tearDown.

@Override
@After
public void tearDown() throws Exception {
    super.tearDown();
    setup.tearDown();
    Hashtable options = JavaCore.getOptions();
    JavaCore.setOptions(options);
}
Also used : Hashtable(java.util.Hashtable) After(org.junit.After)

Example 47 with After

use of org.junit.After in project che by eclipse.

the class RenamePrivateFieldTest method tearDown.

@After
public void tearDown() throws Exception {
    super.tearDown();
    setup.tearDown();
    Hashtable options = JavaCore.getOptions();
    options.put(JavaCore.CODEASSIST_FIELD_PREFIXES, fPrefixPref);
    JavaCore.setOptions(options);
}
Also used : Hashtable(java.util.Hashtable) After(org.junit.After)

Example 48 with After

use of org.junit.After in project android by owncloud.

the class RenameFileTestSuite method tearDown.

@After
public void tearDown() throws Exception {
    common.takeScreenShotOnFailed(name.getMethodName());
    if (fileHasBeenCreated) {
        FileListView fileListView = new FileListView(driver);
        Actions.deleteElement(CurrentCreatedFile, fileListView, driver);
    }
    driver.removeApp("com.owncloud.android");
    driver.quit();
}
Also used : FileListView(com.owncloud.android.test.ui.models.FileListView) After(org.junit.After)

Example 49 with After

use of org.junit.After in project android by owncloud.

the class UploadTestSuite method tearDown.

@After
public void tearDown() throws Exception {
    common.takeScreenShotOnFailed(name.getMethodName());
    FileListView fileListView = new FileListView(driver);
    if (fileHasBeenUploadedFromGmail) {
        Actions.deleteElement(FILE_GMAIL_NAME, fileListView, driver);
    }
    if (fileHasBeenUploaded) {
        Actions.deleteElement(FILE_NAME, fileListView, driver);
        Actions.deleteElement(BIG_FILE_NAME, fileListView, driver);
    }
    //driver.removeApp("com.owncloud.android");
    driver.quit();
}
Also used : FileListView(com.owncloud.android.test.ui.models.FileListView) After(org.junit.After)

Example 50 with After

use of org.junit.After in project android by owncloud.

the class CreateFolderTestSuite method tearDown.

@After
public void tearDown() throws Exception {
    common.takeScreenShotOnFailed(name.getMethodName());
    if (folderHasBeenCreated) {
        FileListView fileListView = new FileListView(driver);
        Actions.deleteElement(CurrentCreatedFolder, fileListView, driver);
    }
    driver.removeApp("com.owncloud.android");
    driver.quit();
}
Also used : FileListView(com.owncloud.android.test.ui.models.FileListView) After(org.junit.After)

Aggregations

After (org.junit.After)1427 File (java.io.File)284 Before (org.junit.Before)137 Test (org.junit.Test)127 List (java.util.List)87 IOException (java.io.IOException)83 Assert (org.junit.Assert)70 Collectors (java.util.stream.Collectors)67 ArrayList (java.util.ArrayList)64 Map (java.util.Map)62 Assert.assertEquals (org.junit.Assert.assertEquals)60 Arrays (java.util.Arrays)56 Collections (java.util.Collections)56 Assert.assertTrue (org.junit.Assert.assertTrue)54 HashMap (java.util.HashMap)53 Rule (org.junit.Rule)50 HashSet (java.util.HashSet)44 Set (java.util.Set)42 UUID (java.util.UUID)42 TimeUnit (java.util.concurrent.TimeUnit)41