Search in sources :

Example 21 with TestProjectSetup

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

the class OtherContentAssistTests 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(OtherContentAssistTests.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 22 with TestProjectSetup

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

the class StaticTests 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(StaticTests.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 23 with TestProjectSetup

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

the class ConstructorTests_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(ConstructorTests_Edited.class, TEST_NAME);
    fTestProjectSetup = new TestProjectSetup(ts, "JSDTWebContentAssist", "WebContent", false) {

        public void additionalSetUp() throws Exception {
            /* file -> JSClasses.js
				 * Awesome -> Awesomeness
				 * Class1 -> ClassOne
				 * Class2 -> ClassTwo
				 * Class3 -> ClassThree */
            this.editFile("JSClasses.js", 0, 9, 7, "Awesomeness");
            this.editFile("JSClasses.js", 10, 4, 6, "ClassOne");
            this.editFile("JSClasses.js", 11, 4, 6, "ClassOne");
            this.editFile("JSClasses.js", 12, 4, 6, "ClassTwo");
            this.editFile("JSClasses.js", 13, 4, 6, "ClassTwo");
            this.editFile("JSClasses.js", 14, 8, 6, "ClassThree");
            this.editFile("JSClasses.js", 15, 8, 6, "ClassThree");
            /* file -> ClassTest2.js
				 * MyClass1 -> MyClassEdit1
				 * MyClass2 -> MyClassEdit2 */
            this.editFile("ClassTest1.js", 0, 9, 8, "MyClassEdit1");
            this.editFile("ClassTest1.js", 4, 4, 8, "MyClassEdit2");
            this.editFile("ClassTest1.js", 5, 0, 8, "MyClassEdit2");
            /* file -> Test.js
				 * test -> testEdit */
            this.editFile("Test.js", 0, 4, 4, "testEdit");
            this.editFile("Test.js", 1, 0, 4, "testEdit");
        }
    };
    return fTestProjectSetup;
}
Also used : TestSuite(junit.framework.TestSuite) TestProjectSetup(org.eclipse.wst.jsdt.web.ui.tests.internal.TestProjectSetup)

Example 24 with TestProjectSetup

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

the class DoublyNestedFunctionTests 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(DoublyNestedFunctionTests.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 25 with TestProjectSetup

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

the class GlobalVariableTests 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(GlobalVariableTests.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