Search in sources :

Example 11 with TestProjectSetup

use of org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup in project webtools.sourceediting by eclipse.

the class DuplicatesTests method suite.

/**
 * <p>
 * Use this method to add these tests to a larger test suite so set up and tear down can be
 * performed
 * </p>
 *
 * @return a {@link TestSetup} that will run all of the tests in this class
 *         with set up and tear down.
 */
public static Test suite() {
    TestSuite ts = new TestSuite(DuplicatesTests.class, TEST_NAME);
    fTestProjectSetup = new TestProjectSetup(ts, "JSDTWebContentAssist", "WebContent", false);
    return fTestProjectSetup;
}
Also used : TestSuite(junit.framework.TestSuite) TestProjectSetup(org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup)

Example 12 with TestProjectSetup

use of org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup in project webtools.sourceediting by eclipse.

the class GlobalFunctionTests_Edited method suite.

/**
 * <p>
 * Use this method to add these tests to a larger test suite so set up and tear down can be
 * performed
 * </p>
 *
 * @return a {@link TestSetup} that will run all of the tests in this class
 *         with set up and tear down.
 */
public static Test suite() {
    TestSuite ts = new TestSuite(GlobalFunctionTests_Edited.class, TEST_NAME);
    fTestProjectSetup = new TestProjectSetup(ts, "JSDTWebContentAssist", "WebContent", false) {

        /**
         * @see org.eclipse.wst.jsdt.ui.tests.contentassist.ContentAssistTestUtilities.ContentAssistTestsSetup#additionalSetUp()
         */
        public void additionalSetUp() throws Exception {
            /* file -> GlobalFunctions.js
				 * funcOne -> functionOne
				 * funcTwo -> functionTwo */
            this.editFile("GlobalFunctions.js", 0, 9, 4, "function");
            this.editFile("GlobalFunctions.js", 4, 9, 4, "function");
            this.editFile("NamedFunctionAssignedToVariables.js", 0, 4, 4, "foo1Edit");
            this.editFile("NamedFunctionAssignedToVariables.js", 0, 24, 4, "foo1Edit");
            this.editFile("NamedFunctionAssignedToVariables.js", 4, 0, 4, "foo2Edit");
            this.editFile("NamedFunctionAssignedToVariables.js", 4, 20, 4, "foo2Edit");
        }
    };
    return fTestProjectSetup;
}
Also used : TestSuite(junit.framework.TestSuite) TestProjectSetup(org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup)

Example 13 with TestProjectSetup

use of org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup in project webtools.sourceediting by eclipse.

the class ClosureTests method suite.

/**
 * <p>
 * Use this method to add these tests to a larger test suite so set up and tear down can be
 * performed
 * </p>
 *
 * @return a {@link TestSetup} that will run all of the tests in this class
 *         with set up and tear down.
 */
public static Test suite() {
    TestSuite ts = new TestSuite(ClosureTests.class, TEST_NAME);
    fTestProjectSetup = new TestProjectSetup(ts, "JSDTWebContentAssist", "WebContent", false);
    return fTestProjectSetup;
}
Also used : TestSuite(junit.framework.TestSuite) TestProjectSetup(org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup)

Example 14 with TestProjectSetup

use of org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup in project webtools.sourceediting by eclipse.

the class InnerFunctionTests method suite.

/**
 * <p>
 * Use this method to add these tests to a larger test suite so set up and tear down can be
 * performed
 * </p>
 *
 * @return a {@link TestSetup} that will run all of the tests in this class
 *         with set up and tear down.
 */
public static Test suite() {
    TestSuite ts = new TestSuite(InnerFunctionTests.class, TEST_NAME);
    fTestProjectSetup = new TestProjectSetup(ts, "JSDTWebContentAssist", "WebContent", false);
    return fTestProjectSetup;
}
Also used : TestSuite(junit.framework.TestSuite) TestProjectSetup(org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup)

Example 15 with TestProjectSetup

use of org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup in project webtools.sourceediting by eclipse.

the class ProposalInfoTest method suite.

/**
 * <p>
 * Use this method to add these tests to a larger test suite so set up and tear down can be
 * performed
 * </p>
 *
 * @return a {@link TestSetup} that will run all of the tests in this class
 *         with set up and tear down.
 */
public static Test suite() {
    TestSuite ts = new TestSuite(ProposalInfoTest.class, TEST_NAME);
    fTestProjectSetup = new TestProjectSetup(ts, "JSDTWebContentAssist", "WebContent", false);
    return fTestProjectSetup;
}
Also used : TestSuite(junit.framework.TestSuite) TestProjectSetup(org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup)

Aggregations

TestSuite (junit.framework.TestSuite)27 TestProjectSetup (org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup)27