blob: 3150272578e55e6402cc58deeec98a3eff1866ff [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.jee.tests.bvt;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Platform;
import org.eclipse.wtp.jee.headless.tests.plugin.AllPluginTests;
import junit.framework.Test;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
public class AutomatedBVT extends TestSuite {
public static String baseDirectory = System.getProperty("user.dir") + java.io.File.separatorChar + "TestData" + java.io.File.separatorChar;
static {
try {
AutomatedBVT.baseDirectory = FileLocator.toFileURL(Platform.getBundle("org.eclipse.jst.jee.tests").getEntry("")).getFile() + "TestData"+ java.io.File.separatorChar;
} catch (Exception e) {
System.err.println("Using working directory since a workspace URL could not be located.");
}
}
public static int unimplementedMethods;
public static void main(String[] args) {
unimplementedMethods = 0;
TestRunner.run(suite());
if (unimplementedMethods > 0) {
System.out.println("\nCalls to warnUnimpl: " + unimplementedMethods);
}
}
public AutomatedBVT() {
super();
TestSuite suite = (TestSuite) AutomatedBVT.suite();
for (int i = 0; i < suite.testCount(); i++) {
addTest(suite.testAt(i));
}
}
public static Test suite() {
TestSuite suite = new TestSuite("Test for org.eclipse.jst.jee.test.bvt");
suite.addTest(AllPluginTests.suite());
return suite;
}
}