diff options
author | bvosburgh | 2007-12-04 04:54:10 +0000 |
---|---|---|
committer | bvosburgh | 2007-12-04 04:54:10 +0000 |
commit | aaf260bfa0d052d713c3f8140e5c5b8b6fc4456e (patch) | |
tree | dd5343dee30c794cb40cc1a224ff4b526437a5ac | |
parent | 04c36eb39cc25c9eedeb1e592e696c4242486dd4 (diff) | |
download | webtools.dali-aaf260bfa0d052d713c3f8140e5c5b8b6fc4456e.tar.gz webtools.dali-aaf260bfa0d052d713c3f8140e5c5b8b6fc4456e.tar.xz webtools.dali-aaf260bfa0d052d713c3f8140e5c5b8b6fc4456e.zip |
cleaned up test suites
18 files changed, 72 insertions, 175 deletions
diff --git a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/content/java/mappings/JptCoreContentJavaMappingsTests.java b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/content/java/mappings/JptCoreContentJavaMappingsTests.java index 044f390508..5efc901f07 100644 --- a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/content/java/mappings/JptCoreContentJavaMappingsTests.java +++ b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/content/java/mappings/JptCoreContentJavaMappingsTests.java @@ -19,7 +19,7 @@ public class JptCoreContentJavaMappingsTests { } public static Test suite(boolean all) { - TestSuite suite = new TestSuite(JptCoreContentJavaMappingsTests.class.getName()); + TestSuite suite = new TestSuite(JptCoreContentJavaMappingsTests.class.getPackage().getName()); if (all) { suite.addTestSuite(JavaEntityTests.class); } diff --git a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jdtutility/JptCoreJdtUtilityTests.java b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jdtutility/JptCoreJdtUtilityTests.java index 717d5122ef..832a5c3d52 100644 --- a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jdtutility/JptCoreJdtUtilityTests.java +++ b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/jdtutility/JptCoreJdtUtilityTests.java @@ -19,7 +19,7 @@ public class JptCoreJdtUtilityTests { } public static Test suite(boolean all) { - TestSuite suite = new TestSuite(JptCoreJdtUtilityTests.class.getName()); + TestSuite suite = new TestSuite(JptCoreJdtUtilityTests.class.getPackage().getName()); suite.addTestSuite(CombinationIndexedDeclarationAnnotationAdapterTests.class); suite.addTestSuite(DefaultAnnotationEditFormatterTests.class); suite.addTestSuite(JDTToolsTests.class); diff --git a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/platform/JptCorePlatformTests.java b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/platform/JptCorePlatformTests.java index 41b930d165..1052e87abb 100644 --- a/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/platform/JptCorePlatformTests.java +++ b/jpa/tests/org.eclipse.jpt.core.tests/src/org/eclipse/jpt/core/tests/internal/platform/JptCorePlatformTests.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007 Oracle. All rights reserved. + * Copyright (c) 2006, 2007 Oracle. 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 http://www.eclipse.org/legal/epl-v10.html. @@ -19,7 +19,7 @@ public class JptCorePlatformTests { } public static Test suite(boolean all) { - TestSuite suite = new TestSuite(JptCorePlatformTests.class.getName()); + TestSuite suite = new TestSuite(JptCorePlatformTests.class.getPackage().getName()); suite.addTestSuite(JpaPlatformExtensionTests.class); if (all) { suite.addTestSuite(BaseJpaPlatformTests.class); diff --git a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/JptDbTests.java b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/JptDbTests.java index 2326ea3d94..ecb2b84188 100644 --- a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/JptDbTests.java +++ b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/JptDbTests.java @@ -1,19 +1,19 @@ /******************************************************************************* * Copyright (c) 2006, 2007 Oracle. 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 - * http://www.eclipse.org/legal/epl-v10.html. + * 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 http://www.eclipse.org/legal/epl-v10.html. * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ package org.eclipse.jpt.db.tests.internal; +import org.eclipse.jpt.db.tests.internal.platforms.AllPlatformTests; + import junit.framework.Test; import junit.framework.TestSuite; import junit.swingui.TestRunner; -import org.eclipse.jpt.db.tests.internal.platforms.AllPlatformTests; -import org.eclipse.jpt.utility.internal.ClassTools; /** * JptDbTests @@ -25,7 +25,7 @@ public class JptDbTests { } public static Test suite() { - TestSuite suite = new TestSuite( ClassTools.packageNameFor( JptDbTests.class)); + TestSuite suite = new TestSuite(JptDbTests.class.getPackage().getName()); suite.addTest( AllPlatformTests.suite()); diff --git a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/AllPlatformTests.java b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/AllPlatformTests.java index b748816cd9..d76ac11cdb 100644 --- a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/AllPlatformTests.java +++ b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/AllPlatformTests.java @@ -1,9 +1,9 @@ /******************************************************************************* * Copyright (c) 2006, 2007 Oracle. 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 - * http://www.eclipse.org/legal/epl-v10.html. - * + * 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 http://www.eclipse.org/legal/epl-v10.html. + * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ @@ -12,7 +12,6 @@ package org.eclipse.jpt.db.tests.internal.platforms; import junit.framework.Test; import junit.framework.TestSuite; import junit.swingui.TestRunner; -import org.eclipse.jpt.utility.internal.ClassTools; /** * AllPlatformTests @@ -24,23 +23,24 @@ public class AllPlatformTests { } public static Test suite() { - TestSuite suite = new TestSuite( ClassTools.packageNameFor( AllPlatformTests.class)); - - // TODO - Uncomment the platform to test. -// suite.addTest( Derby101Tests.suite()); -// suite.addTest( Oracle9iTests.suite()); -// suite.addTest( Oracle10gTests.suite()); -// suite.addTest( Oracle10gXETests.suite()); -// suite.addTest( SQLServer2005Tests.suite()); -// suite.addTest( MySQL41Tests.suite()); -// suite.addTest( PostgreSQL824Tests.suite()); -// suite.addTest( Sybase12Tests.suite()); + TestSuite suite = new TestSuite(AllPlatformTests.class.getPackage().getName()); + +// TODO - Uncomment the platform to test. +// suite.addTestSuite(Derby101Tests.class); +// suite.addTestSuite(Oracle9iTests.class); +// suite.addTestSuite(Oracle10gTests.class); +// suite.addTestSuite(Oracle10gXETests.class); +// suite.addTestSuite(SQLServer2005Tests.class); +// suite.addTestSuite(MySQL41Tests.class); +// suite.addTestSuite(PostgreSQL824Tests.class); +// suite.addTestSuite(Sybase12Tests.class); return suite; } private AllPlatformTests() { super(); + throw new UnsupportedOperationException(); } }
\ No newline at end of file diff --git a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Derby101Tests.java b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Derby101Tests.java index 7e510cfd43..be39252f85 100644 --- a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Derby101Tests.java +++ b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Derby101Tests.java @@ -1,31 +1,20 @@ /******************************************************************************* * Copyright (c) 2006, 2007 Oracle. 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 - * http://www.eclipse.org/legal/epl-v10.html. - * + * 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 http://www.eclipse.org/legal/epl-v10.html. + * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ package org.eclipse.jpt.db.tests.internal.platforms; -import junit.framework.Test; -import junit.framework.TestSuite; -import junit.swingui.TestRunner; /** * Derby 10.1 Embedded Driver Test */ public class Derby101Tests extends DTPPlatformTests { - public static void main( String[] args) { - TestRunner.main( new String[] { "-c", Derby101Tests.class.getName()}); - } - - public static Test suite() { - return new TestSuite( Derby101Tests.class); - } - public Derby101Tests( String name) { super( name); } diff --git a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/MySQL41Tests.java b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/MySQL41Tests.java index 8a572907e4..2f1f28dfe7 100644 --- a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/MySQL41Tests.java +++ b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/MySQL41Tests.java @@ -1,31 +1,20 @@ /******************************************************************************* * Copyright (c) 2007 Oracle. 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 - * http://www.eclipse.org/legal/epl-v10.html. - * + * 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 http://www.eclipse.org/legal/epl-v10.html. + * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ package org.eclipse.jpt.db.tests.internal.platforms; -import junit.framework.Test; -import junit.framework.TestSuite; -import junit.swingui.TestRunner; /** * SQL Server 2005 Driver Test */ public class MySQL41Tests extends DTPPlatformTests { - public static void main( String[] args) { - TestRunner.main( new String[] { "-c", MySQL41Tests.class.getName()}); - } - - public static Test suite() { - return new TestSuite( MySQL41Tests.class); - } - public MySQL41Tests( String name) { super( name); } diff --git a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Oracle10gTests.java b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Oracle10gTests.java index 70d3a3d55f..1db6d36faa 100644 --- a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Oracle10gTests.java +++ b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Oracle10gTests.java @@ -1,31 +1,20 @@ /******************************************************************************* - * Copyright (c) 2006, 2007 Oracle. 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 - * http://www.eclipse.org/legal/epl-v10.html. - * + * Copyright (c) 2007 Oracle. 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 http://www.eclipse.org/legal/epl-v10.html. + * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ package org.eclipse.jpt.db.tests.internal.platforms; -import junit.framework.Test; -import junit.framework.TestSuite; -import junit.swingui.TestRunner; /** * Oracle 10g Thin Driver Test */ public class Oracle10gTests extends DTPPlatformTests { - public static void main( String[] args) { - TestRunner.main( new String[] { "-c", Oracle10gTests.class.getName()}); - } - - public static Test suite() { - return new TestSuite( Oracle10gTests.class); - } - public Oracle10gTests( String name) { super( name); } diff --git a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Oracle10gXETests.java b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Oracle10gXETests.java index 8c8c1a0588..a05642b38e 100644 --- a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Oracle10gXETests.java +++ b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Oracle10gXETests.java @@ -1,31 +1,20 @@ /******************************************************************************* * Copyright (c) 2007 Oracle. 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 - * http://www.eclipse.org/legal/epl-v10.html. - * + * 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 http://www.eclipse.org/legal/epl-v10.html. + * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ package org.eclipse.jpt.db.tests.internal.platforms; -import junit.framework.Test; -import junit.framework.TestSuite; -import junit.swingui.TestRunner; /** * Oracle 10g Thin Driver Test */ public class Oracle10gXETests extends DTPPlatformTests { - public static void main( String[] args) { - TestRunner.main( new String[] { "-c", Oracle10gXETests.class.getName()}); - } - - public static Test suite() { - return new TestSuite( Oracle10gXETests.class); - } - public Oracle10gXETests( String name) { super( name); } diff --git a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Oracle9iTests.java b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Oracle9iTests.java index 3923081244..f750079ccf 100644 --- a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Oracle9iTests.java +++ b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Oracle9iTests.java @@ -1,31 +1,20 @@ /******************************************************************************* - * Copyright (c) 2006, 2007 Oracle. 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 - * http://www.eclipse.org/legal/epl-v10.html. - * + * Copyright (c) 2007 Oracle. 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 http://www.eclipse.org/legal/epl-v10.html. + * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ package org.eclipse.jpt.db.tests.internal.platforms; -import junit.framework.Test; -import junit.framework.TestSuite; -import junit.swingui.TestRunner; /** * Oracle 9i Thin Driver Test */ public class Oracle9iTests extends DTPPlatformTests { - public static void main( String[] args) { - TestRunner.main( new String[] { "-c", Oracle9iTests.class.getName()}); - } - - public static Test suite() { - return new TestSuite( Oracle9iTests.class); - } - public Oracle9iTests( String name) { super( name); } diff --git a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/PostgreSQL824Tests.java b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/PostgreSQL824Tests.java index 70c024fee4..dc9a75f42b 100644 --- a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/PostgreSQL824Tests.java +++ b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/PostgreSQL824Tests.java @@ -1,31 +1,20 @@ /******************************************************************************* * Copyright (c) 2007 Oracle. 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 - * http://www.eclipse.org/legal/epl-v10.html. - * + * 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 http://www.eclipse.org/legal/epl-v10.html. + * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ package org.eclipse.jpt.db.tests.internal.platforms; -import junit.framework.Test; -import junit.framework.TestSuite; -import junit.swingui.TestRunner; /** * Oracle 10g Thin Driver Test */ public class PostgreSQL824Tests extends DTPPlatformTests { - public static void main( String[] args) { - TestRunner.main( new String[] { "-c", PostgreSQL824Tests.class.getName()}); - } - - public static Test suite() { - return new TestSuite( PostgreSQL824Tests.class); - } - public PostgreSQL824Tests( String name) { super( name); } diff --git a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/SQLServer2005Tests.java b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/SQLServer2005Tests.java index a0f5034f6d..6014aa0ee4 100644 --- a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/SQLServer2005Tests.java +++ b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/SQLServer2005Tests.java @@ -1,31 +1,20 @@ /******************************************************************************* * Copyright (c) 2007 Oracle. 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 - * http://www.eclipse.org/legal/epl-v10.html. - * + * 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 http://www.eclipse.org/legal/epl-v10.html. + * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ package org.eclipse.jpt.db.tests.internal.platforms; -import junit.framework.Test; -import junit.framework.TestSuite; -import junit.swingui.TestRunner; /** * SQL Server 2005 Driver Test */ public class SQLServer2005Tests extends DTPPlatformTests { - public static void main( String[] args) { - TestRunner.main( new String[] { "-c", SQLServer2005Tests.class.getName()}); - } - - public static Test suite() { - return new TestSuite( SQLServer2005Tests.class); - } - public SQLServer2005Tests( String name) { super( name); } diff --git a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Sybase12Tests.java b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Sybase12Tests.java index c92fb68437..a6230a6b67 100644 --- a/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Sybase12Tests.java +++ b/jpa/tests/org.eclipse.jpt.db.tests/src/org/eclipse/jpt/db/tests/internal/platforms/Sybase12Tests.java @@ -1,31 +1,20 @@ /******************************************************************************* * Copyright (c) 2007 Oracle. 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 - * http://www.eclipse.org/legal/epl-v10.html. - * + * 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 http://www.eclipse.org/legal/epl-v10.html. + * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ package org.eclipse.jpt.db.tests.internal.platforms; -import junit.framework.Test; -import junit.framework.TestSuite; -import junit.swingui.TestRunner; /** * Oracle 10g Thin Driver Test */ public class Sybase12Tests extends DTPPlatformTests { - public static void main( String[] args) { - TestRunner.main( new String[] { "-c", Sybase12Tests.class.getName()}); - } - - public static Test suite() { - return new TestSuite( Sybase12Tests.class); - } - public Sybase12Tests( String name) { super( name); } diff --git a/jpa/tests/org.eclipse.jpt.ui.tests/src/org/eclipse/jpt/ui/tests/JptUiTests.java b/jpa/tests/org.eclipse.jpt.ui.tests/src/org/eclipse/jpt/ui/tests/JptUiTests.java index a1a87466a6..98f849359c 100644 --- a/jpa/tests/org.eclipse.jpt.ui.tests/src/org/eclipse/jpt/ui/tests/JptUiTests.java +++ b/jpa/tests/org.eclipse.jpt.ui.tests/src/org/eclipse/jpt/ui/tests/JptUiTests.java @@ -19,7 +19,7 @@ import junit.framework.TestSuite; public class JptUiTests { public static Test suite() { - TestSuite suite = new TestSuite(JptUiTests.class.getName()); + TestSuite suite = new TestSuite(JptUiTests.class.getPackage().getName()); suite.addTest(JptUiPlatformTests.suite()); return suite; } diff --git a/jpa/tests/org.eclipse.jpt.ui.tests/src/org/eclipse/jpt/ui/tests/internal/platform/JptUiPlatformTests.java b/jpa/tests/org.eclipse.jpt.ui.tests/src/org/eclipse/jpt/ui/tests/internal/platform/JptUiPlatformTests.java index 2614c59ac1..50bcc99cfc 100644 --- a/jpa/tests/org.eclipse.jpt.ui.tests/src/org/eclipse/jpt/ui/tests/internal/platform/JptUiPlatformTests.java +++ b/jpa/tests/org.eclipse.jpt.ui.tests/src/org/eclipse/jpt/ui/tests/internal/platform/JptUiPlatformTests.java @@ -1,13 +1,12 @@ /******************************************************************************* - * Copyright (c) 2007 Oracle. - * 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 - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle - initial API and implementation - *******************************************************************************/ + * Copyright (c) 2007 Oracle. 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 http://www.eclipse.org/legal/epl-v10.html. + * + * Contributors: + * Oracle - initial API and implementation + ******************************************************************************/ package org.eclipse.jpt.ui.tests.internal.platform; import junit.framework.Test; @@ -16,7 +15,7 @@ import junit.framework.TestSuite; public class JptUiPlatformTests { public static Test suite() { - TestSuite suite = new TestSuite(JptUiPlatformTests.class.getName()); + TestSuite suite = new TestSuite(JptUiPlatformTests.class.getPackage().getName()); suite.addTestSuite(JpaPlatformUiExtensionTests.class); return suite; } diff --git a/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/CounterTests.java b/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/CounterTests.java index e228bc1b8d..243149c612 100644 --- a/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/CounterTests.java +++ b/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/CounterTests.java @@ -11,21 +11,10 @@ package org.eclipse.jpt.utility.tests.internal; import org.eclipse.jpt.utility.internal.Counter; -import junit.framework.Test; import junit.framework.TestCase; -import junit.framework.TestSuite; -import junit.swingui.TestRunner; public class CounterTests extends TestCase { - public static void main(String[] args) { - TestRunner.main(new String[] {"-c", CounterTests.class.getName()}); - } - - public static Test suite() { - return new TestSuite(CounterTests.class); - } - public CounterTests(String name) { super(name); } diff --git a/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/JptUtilityTests.java b/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/JptUtilityTests.java index 442e1cbe7b..edb4cd3576 100644 --- a/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/JptUtilityTests.java +++ b/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/JptUtilityTests.java @@ -9,7 +9,6 @@ ******************************************************************************/ package org.eclipse.jpt.utility.tests.internal; -import org.eclipse.jpt.utility.internal.ClassTools; import org.eclipse.jpt.utility.tests.internal.iterators.JptUtilityIteratorsTests; import org.eclipse.jpt.utility.tests.internal.model.JptUtilityModelTests; import org.eclipse.jpt.utility.tests.internal.node.JptUtilityNodeTests; @@ -23,7 +22,7 @@ import junit.framework.TestSuite; public class JptUtilityTests { public static Test suite() { - TestSuite suite = new TestSuite(ClassTools.packageNameFor(JptUtilityTests.class)); + TestSuite suite = new TestSuite(JptUtilityTests.class.getPackage().getName()); suite.addTest(JptUtilityIteratorsTests.suite()); suite.addTest(JptUtilityModelTests.suite()); diff --git a/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/node/JptUtilityNodeTests.java b/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/node/JptUtilityNodeTests.java index ca2659902b..94f682d878 100644 --- a/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/node/JptUtilityNodeTests.java +++ b/jpa/tests/org.eclipse.jpt.utility.tests/src/org/eclipse/jpt/utility/tests/internal/node/JptUtilityNodeTests.java @@ -9,15 +9,13 @@ ******************************************************************************/ package org.eclipse.jpt.utility.tests.internal.node; -import org.eclipse.jpt.utility.internal.ClassTools; - import junit.framework.Test; import junit.framework.TestSuite; public class JptUtilityNodeTests { public static Test suite() { - TestSuite suite = new TestSuite(ClassTools.packageNameFor(JptUtilityNodeTests.class)); + TestSuite suite = new TestSuite(JptUtilityNodeTests.class.getPackage().getName()); suite.addTestSuite(AbstractNodeTests.class); |