Search in sources :

Example 1 with TestCreaterepoProject

use of org.eclipse.linuxtools.internal.rpm.createrepo.form.tests.TestCreaterepoProject in project linuxtools by eclipse.

the class CreaterepoResourceChangeListenerTest method setUp.

/**
 * Create a new test project and open the .repo file.
 *
 * @throws Exception
 */
@Before
public void setUp() throws Exception {
    testProject = new TestCreaterepoProject();
    navigator = TestUtils.enterProjectFolder(bot);
    assertTrue(testProject.getProject().exists());
    TestUtils.openRepoFile(bot, navigator);
}
Also used : TestCreaterepoProject(org.eclipse.linuxtools.internal.rpm.createrepo.form.tests.TestCreaterepoProject) Before(org.junit.Before)

Example 2 with TestCreaterepoProject

use of org.eclipse.linuxtools.internal.rpm.createrepo.form.tests.TestCreaterepoProject in project linuxtools by eclipse.

the class CreaterepoGeneralPropertyPageTest method setUpBeforeClass.

/**
 * Initialize the test project.
 *
 * @throws CoreException
 */
@BeforeClass
public static void setUpBeforeClass() throws CoreException {
    testProject = new TestCreaterepoProject();
    assertTrue(testProject.getProject().exists());
    bot = new SWTWorkbenchBot();
    testProject.restoreDefaults();
    try {
        bot.shell(ICreaterepoTestConstants.MAIN_SHELL).activate();
    } catch (WidgetNotFoundException e) {
    // cannot activate main shell, continue anyways
    }
    TestUtils.openResourcePerspective(bot);
    navigator = TestUtils.enterProjectFolder(bot);
}
Also used : SWTWorkbenchBot(org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot) WidgetNotFoundException(org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException) TestCreaterepoProject(org.eclipse.linuxtools.internal.rpm.createrepo.form.tests.TestCreaterepoProject) BeforeClass(org.junit.BeforeClass)

Example 3 with TestCreaterepoProject

use of org.eclipse.linuxtools.internal.rpm.createrepo.form.tests.TestCreaterepoProject in project linuxtools by eclipse.

the class CreaterepoPreferencePageTest method setUpBeforeClass.

/**
 * Initialize the test project.
 *
 * @throws CoreException
 */
@BeforeClass
public static void setUpBeforeClass() throws CoreException {
    testProject = new TestCreaterepoProject();
    assertTrue(testProject.getProject().exists());
    bot = new SWTWorkbenchBot();
    testProject.restoreDefaults();
    try {
        bot.shell(ICreaterepoTestConstants.MAIN_SHELL).activate();
    } catch (WidgetNotFoundException e) {
    // cannot activate main shell, continue anyways
    }
}
Also used : SWTWorkbenchBot(org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot) WidgetNotFoundException(org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException) TestCreaterepoProject(org.eclipse.linuxtools.internal.rpm.createrepo.form.tests.TestCreaterepoProject) BeforeClass(org.junit.BeforeClass)

Example 4 with TestCreaterepoProject

use of org.eclipse.linuxtools.internal.rpm.createrepo.form.tests.TestCreaterepoProject in project linuxtools by eclipse.

the class CreaterepoTreeTest method setUpBeforeClass.

/**
 * Initialize the test project.
 *
 * @throws CoreException
 */
@BeforeClass
public static void setUpBeforeClass() throws CoreException {
    testProject = new TestCreaterepoProject();
    assertTrue(testProject.getProject().exists());
}
Also used : TestCreaterepoProject(org.eclipse.linuxtools.internal.rpm.createrepo.form.tests.TestCreaterepoProject) BeforeClass(org.junit.BeforeClass)

Example 5 with TestCreaterepoProject

use of org.eclipse.linuxtools.internal.rpm.createrepo.form.tests.TestCreaterepoProject in project linuxtools by eclipse.

the class CreaterepoDeltaPropertyPageTest method setUpBeforeClass.

/**
 * Initialize the test project.
 *
 * @throws CoreException
 */
@BeforeClass
public static void setUpBeforeClass() throws CoreException {
    testProject = new TestCreaterepoProject();
    assertTrue(testProject.getProject().exists());
    bot = new SWTWorkbenchBot();
    testProject.restoreDefaults();
    try {
        bot.shell(ICreaterepoTestConstants.MAIN_SHELL).activate();
    } catch (WidgetNotFoundException e) {
    // cannot activate main shell, continue anyways
    }
    TestUtils.openResourcePerspective(bot);
    navigator = TestUtils.enterProjectFolder(bot);
}
Also used : SWTWorkbenchBot(org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot) WidgetNotFoundException(org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException) TestCreaterepoProject(org.eclipse.linuxtools.internal.rpm.createrepo.form.tests.TestCreaterepoProject) BeforeClass(org.junit.BeforeClass)

Aggregations

TestCreaterepoProject (org.eclipse.linuxtools.internal.rpm.createrepo.form.tests.TestCreaterepoProject)7 BeforeClass (org.junit.BeforeClass)6 SWTWorkbenchBot (org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot)3 WidgetNotFoundException (org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException)3 Before (org.junit.Before)1