From 6be14ac4e27403a59c3b8e9e7d8bd09cf73b0730 Mon Sep 17 00:00:00 2001 From: Uwe Stieber Date: Thu, 14 Dec 2006 08:36:59 +0000 Subject: [PATCH] [cleanup] Fix NON-NLS- warnings and fix mismatched Bundle-SymbolicName --- .../META-INF/MANIFEST.MF | 2 +- .../framework/examples/AnnotatingSuite.java | 46 ++++---- .../framework/examples/AnnotatingTests.java | 92 ++++++++-------- .../tests/framework/examples/ErrorSuite.java | 46 ++++---- .../tests/framework/examples/ErrorTests.java | 62 +++++------ .../framework/examples/FailureSuite.java | 46 ++++---- .../framework/examples/FailureTests.java | 62 +++++------ .../tests/framework/examples/MixedSuite.java | 82 +++++++------- .../examples/MixedSuiteProvider.java | 102 +++++++++--------- .../framework/examples/SuccessSuite.java | 46 ++++---- 10 files changed, 293 insertions(+), 293 deletions(-) diff --git a/rse/tests/org.eclipse.rse.tests.framework.examples/META-INF/MANIFEST.MF b/rse/tests/org.eclipse.rse.tests.framework.examples/META-INF/MANIFEST.MF index bbcf735cca1..6facc79fc72 100755 --- a/rse/tests/org.eclipse.rse.tests.framework.examples/META-INF/MANIFEST.MF +++ b/rse/tests/org.eclipse.rse.tests.framework.examples/META-INF/MANIFEST.MF @@ -1,7 +1,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName -Bundle-SymbolicName: org.eclipse.rse.examples.testframework;singleton:=true +Bundle-SymbolicName: org.eclipse.rse.tests.framework.examples;singleton:=true Bundle-Version: 1.0.1.qualifier Bundle-Vendor: %providerName Bundle-Localization: plugin diff --git a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/AnnotatingSuite.java b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/AnnotatingSuite.java index 8eb74e1124f..50a842120ae 100755 --- a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/AnnotatingSuite.java +++ b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/AnnotatingSuite.java @@ -1,23 +1,23 @@ -/* ******************************************************************************* - * Copyright (c) 2006 IBM Corporation. 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: - * David Dykstal (IBM) - initial contribution. - * *******************************************************************************/ -package org.eclipse.rse.tests.framework.examples; - -import junit.framework.TestSuite; - -public class AnnotatingSuite extends TestSuite { - - public AnnotatingSuite() { - super(AnnotatingTests.class); - setName("annotation"); - } - -} - - +/* ******************************************************************************* + * Copyright (c) 2006 IBM Corporation. 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: + * David Dykstal (IBM) - initial contribution. + * *******************************************************************************/ +package org.eclipse.rse.tests.framework.examples; + +import junit.framework.TestSuite; + +public class AnnotatingSuite extends TestSuite { + + public AnnotatingSuite() { + super(AnnotatingTests.class); + setName("annotation"); //$NON-NLS-1$ + } + +} + + diff --git a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/AnnotatingTests.java b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/AnnotatingTests.java index 05344874c70..8b28e1d3ee1 100755 --- a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/AnnotatingTests.java +++ b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/AnnotatingTests.java @@ -1,46 +1,46 @@ -/* ******************************************************************************* - * Copyright (c) 2006 IBM Corporation. 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: - * David Dykstal (IBM) - initial contribution. - * *******************************************************************************/ -package org.eclipse.rse.tests.framework.examples; - -public class AnnotatingTests extends AbstractTest { - - public void testSuccess01() { - remark("Remark 1 for 01"); - remark("Remark 2 for 01"); - sleep(500); - } - - public void testSuccess02() { - remark("Remark 1 for 02"); - remark("Remark 2 for 02"); - sleep(500); - } - - public void testSuccess03() { - remark("Remark 1 for 03"); - remark("Remark 2 for 03"); - sleep(500); - } - - public void testSuccess04() { - remark("Remark 1 for 04"); - remark("Remark 2 for 04"); - sleep(500); - } - - public void testSuccess05() { - remark("Remark 1 for 05"); - remark("Remark 2 for 05"); - sleep(500); - } - -} - - +/* ******************************************************************************* + * Copyright (c) 2006 IBM Corporation. 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: + * David Dykstal (IBM) - initial contribution. + * *******************************************************************************/ +package org.eclipse.rse.tests.framework.examples; + +public class AnnotatingTests extends AbstractTest { + + public void testSuccess01() { + remark("Remark 1 for 01"); //$NON-NLS-1$ + remark("Remark 2 for 01"); //$NON-NLS-1$ + sleep(500); + } + + public void testSuccess02() { + remark("Remark 1 for 02"); //$NON-NLS-1$ + remark("Remark 2 for 02"); //$NON-NLS-1$ + sleep(500); + } + + public void testSuccess03() { + remark("Remark 1 for 03"); //$NON-NLS-1$ + remark("Remark 2 for 03"); //$NON-NLS-1$ + sleep(500); + } + + public void testSuccess04() { + remark("Remark 1 for 04"); //$NON-NLS-1$ + remark("Remark 2 for 04"); //$NON-NLS-1$ + sleep(500); + } + + public void testSuccess05() { + remark("Remark 1 for 05"); //$NON-NLS-1$ + remark("Remark 2 for 05"); //$NON-NLS-1$ + sleep(500); + } + +} + + diff --git a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/ErrorSuite.java b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/ErrorSuite.java index a3a8fd75fe0..022e3449b42 100755 --- a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/ErrorSuite.java +++ b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/ErrorSuite.java @@ -1,23 +1,23 @@ -/* ******************************************************************************* - * Copyright (c) 2006 IBM Corporation. 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: - * David Dykstal (IBM) - initial contribution. - * *******************************************************************************/ -package org.eclipse.rse.tests.framework.examples; - -import junit.framework.TestSuite; - -public class ErrorSuite extends TestSuite { - - public ErrorSuite() { - super(ErrorTests.class); - setName("errors"); - } - -} - - +/* ******************************************************************************* + * Copyright (c) 2006 IBM Corporation. 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: + * David Dykstal (IBM) - initial contribution. + * *******************************************************************************/ +package org.eclipse.rse.tests.framework.examples; + +import junit.framework.TestSuite; + +public class ErrorSuite extends TestSuite { + + public ErrorSuite() { + super(ErrorTests.class); + setName("errors"); //$NON-NLS-1$ + } + +} + + diff --git a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/ErrorTests.java b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/ErrorTests.java index df1a07de810..08d18d2a7cd 100755 --- a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/ErrorTests.java +++ b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/ErrorTests.java @@ -1,31 +1,31 @@ -/* ******************************************************************************* - * Copyright (c) 2006 IBM Corporation. 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: - * David Dykstal (IBM) - initial contribution. - * *******************************************************************************/ -package org.eclipse.rse.tests.framework.examples; - -public class ErrorTests extends AbstractTest { - - public void testError01() { - sleep(1000); - throw new RuntimeException("generic runtime exception 01"); - } - - public void testError02() { - sleep(1000); - throw new RuntimeException("generic runtime exception 02"); - } - - public void testError03() { - sleep(1000); - throw new RuntimeException("generic runtime exception 03"); - } - -} - - +/* ******************************************************************************* + * Copyright (c) 2006 IBM Corporation. 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: + * David Dykstal (IBM) - initial contribution. + * *******************************************************************************/ +package org.eclipse.rse.tests.framework.examples; + +public class ErrorTests extends AbstractTest { + + public void testError01() { + sleep(1000); + throw new RuntimeException("generic runtime exception 01"); //$NON-NLS-1$ + } + + public void testError02() { + sleep(1000); + throw new RuntimeException("generic runtime exception 02"); //$NON-NLS-1$ + } + + public void testError03() { + sleep(1000); + throw new RuntimeException("generic runtime exception 03"); //$NON-NLS-1$ + } + +} + + diff --git a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/FailureSuite.java b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/FailureSuite.java index 2cfc8dd20ab..d665d309067 100755 --- a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/FailureSuite.java +++ b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/FailureSuite.java @@ -1,23 +1,23 @@ -/* ******************************************************************************* - * Copyright (c) 2006 IBM Corporation. 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: - * David Dykstal (IBM) - initial contribution. - * *******************************************************************************/ -package org.eclipse.rse.tests.framework.examples; - -import junit.framework.TestSuite; - -public class FailureSuite extends TestSuite { - - public FailureSuite() { - super(FailureTests.class); - setName("failures"); - } - -} - - +/* ******************************************************************************* + * Copyright (c) 2006 IBM Corporation. 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: + * David Dykstal (IBM) - initial contribution. + * *******************************************************************************/ +package org.eclipse.rse.tests.framework.examples; + +import junit.framework.TestSuite; + +public class FailureSuite extends TestSuite { + + public FailureSuite() { + super(FailureTests.class); + setName("failures"); //$NON-NLS-1$ + } + +} + + diff --git a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/FailureTests.java b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/FailureTests.java index faaa21694bf..73eb84fa126 100755 --- a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/FailureTests.java +++ b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/FailureTests.java @@ -1,31 +1,31 @@ -/* ******************************************************************************* - * Copyright (c) 2006 IBM Corporation. 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: - * David Dykstal (IBM) - initial contribution. - * *******************************************************************************/ -package org.eclipse.rse.tests.framework.examples; - -public class FailureTests extends AbstractTest { - - public void testFailure01() { - sleep(50); - fail("generic failure 01"); - } - - public void testFailure02() { - sleep(50); - fail("generic failure 02"); - } - - public void testFailure03() { - sleep(50); - fail("generic failure 03"); - } - -} - - +/* ******************************************************************************* + * Copyright (c) 2006 IBM Corporation. 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: + * David Dykstal (IBM) - initial contribution. + * *******************************************************************************/ +package org.eclipse.rse.tests.framework.examples; + +public class FailureTests extends AbstractTest { + + public void testFailure01() { + sleep(50); + fail("generic failure 01"); //$NON-NLS-1$ + } + + public void testFailure02() { + sleep(50); + fail("generic failure 02"); //$NON-NLS-1$ + } + + public void testFailure03() { + sleep(50); + fail("generic failure 03"); //$NON-NLS-1$ + } + +} + + diff --git a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/MixedSuite.java b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/MixedSuite.java index a12d39dfb16..f75d955fa66 100755 --- a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/MixedSuite.java +++ b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/MixedSuite.java @@ -1,41 +1,41 @@ -/* ******************************************************************************* - * Copyright (c) 2006 IBM Corporation. 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: - * David Dykstal (IBM) - initial contribution. - * *******************************************************************************/ -package org.eclipse.rse.tests.framework.examples; - -import junit.framework.TestSuite; - -public class MixedSuite extends TestSuite { - - public MixedSuite() { - super(); - setName("mixed results"); - this.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess01")); - this.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess02")); - this.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess03")); - this.addTest(TestSuite.createTest(FailureTests.class, "testFailure01")); - this.addTest(TestSuite.createTest(FailureTests.class, "testFailure02")); - this.addTest(TestSuite.createTest(FailureTests.class, "testFailure03")); - this.addTest(TestSuite.createTest(ErrorTests.class, "testError01")); - this.addTest(TestSuite.createTest(ErrorTests.class, "testError02")); - this.addTest(TestSuite.createTest(ErrorTests.class, "testError03")); - this.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess01")); - this.addTest(TestSuite.createTest(FailureTests.class, "testFailure01")); - this.addTest(TestSuite.createTest(ErrorTests.class, "testError01")); - this.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess02")); - this.addTest(TestSuite.createTest(FailureTests.class, "testFailure02")); - this.addTest(TestSuite.createTest(ErrorTests.class, "testError02")); - this.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess03")); - this.addTest(TestSuite.createTest(FailureTests.class, "testFailure03")); - this.addTest(TestSuite.createTest(ErrorTests.class, "testError03")); - } - -} - - +/* ******************************************************************************* + * Copyright (c) 2006 IBM Corporation. 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: + * David Dykstal (IBM) - initial contribution. + * *******************************************************************************/ +package org.eclipse.rse.tests.framework.examples; + +import junit.framework.TestSuite; + +public class MixedSuite extends TestSuite { + + public MixedSuite() { + super(); + setName("mixed results"); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess01")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess02")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess03")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(FailureTests.class, "testFailure01")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(FailureTests.class, "testFailure02")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(FailureTests.class, "testFailure03")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(ErrorTests.class, "testError01")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(ErrorTests.class, "testError02")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(ErrorTests.class, "testError03")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess01")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(FailureTests.class, "testFailure01")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(ErrorTests.class, "testError01")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess02")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(FailureTests.class, "testFailure02")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(ErrorTests.class, "testError02")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess03")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(FailureTests.class, "testFailure03")); //$NON-NLS-1$ + this.addTest(TestSuite.createTest(ErrorTests.class, "testError03")); //$NON-NLS-1$ + } + +} + + diff --git a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/MixedSuiteProvider.java b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/MixedSuiteProvider.java index bef42ca78f3..c63d196cdb3 100755 --- a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/MixedSuiteProvider.java +++ b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/MixedSuiteProvider.java @@ -1,51 +1,51 @@ -/* ******************************************************************************* - * Copyright (c) 2006 IBM Corporation. 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: - * David Dykstal (IBM) - initial contribution. - * *******************************************************************************/ -package org.eclipse.rse.tests.framework.examples; - -import junit.framework.TestSuite; - -import org.eclipse.rse.tests.framework.ITestSuiteProvider; - -public class MixedSuiteProvider implements ITestSuiteProvider { - - public TestSuite getSuite(String arg) { - TestSuite suite = new TestSuite("Mixed Suite, arg = " + arg); - if (arg == null || arg.equals("success")) { - suite.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess01")); - suite.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess02")); - suite.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess03")); - } - if (arg == null || arg.equals("failure")) { - suite.addTest(TestSuite.createTest(FailureTests.class, "testFailure01")); - suite.addTest(TestSuite.createTest(FailureTests.class, "testFailure02")); - suite.addTest(TestSuite.createTest(FailureTests.class, "testFailure03")); - } - if (arg == null || arg.equals("error")) { - suite.addTest(TestSuite.createTest(ErrorTests.class, "testError01")); - suite.addTest(TestSuite.createTest(ErrorTests.class, "testError02")); - suite.addTest(TestSuite.createTest(ErrorTests.class, "testError03")); - } - if (arg == null) { - suite.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess01")); - suite.addTest(TestSuite.createTest(FailureTests.class, "testFailure01")); - suite.addTest(TestSuite.createTest(ErrorTests.class, "testError01")); - suite.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess02")); - suite.addTest(TestSuite.createTest(FailureTests.class, "testFailure02")); - suite.addTest(TestSuite.createTest(ErrorTests.class, "testError02")); - suite.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess03")); - suite.addTest(TestSuite.createTest(FailureTests.class, "testFailure03")); - suite.addTest(TestSuite.createTest(ErrorTests.class, "testError03")); - } - return suite; - } - -} - - +/* ******************************************************************************* + * Copyright (c) 2006 IBM Corporation. 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: + * David Dykstal (IBM) - initial contribution. + * *******************************************************************************/ +package org.eclipse.rse.tests.framework.examples; + +import junit.framework.TestSuite; + +import org.eclipse.rse.tests.framework.ITestSuiteProvider; + +public class MixedSuiteProvider implements ITestSuiteProvider { + + public TestSuite getSuite(String arg) { + TestSuite suite = new TestSuite("Mixed Suite, arg = " + arg); //$NON-NLS-1$ + if (arg == null || arg.equals("success")) { //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess01")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess02")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess03")); //$NON-NLS-1$ + } + if (arg == null || arg.equals("failure")) { //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(FailureTests.class, "testFailure01")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(FailureTests.class, "testFailure02")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(FailureTests.class, "testFailure03")); //$NON-NLS-1$ + } + if (arg == null || arg.equals("error")) { //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(ErrorTests.class, "testError01")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(ErrorTests.class, "testError02")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(ErrorTests.class, "testError03")); //$NON-NLS-1$ + } + if (arg == null) { + suite.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess01")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(FailureTests.class, "testFailure01")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(ErrorTests.class, "testError01")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess02")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(FailureTests.class, "testFailure02")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(ErrorTests.class, "testError02")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(SuccessTests.class, "testSuccess03")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(FailureTests.class, "testFailure03")); //$NON-NLS-1$ + suite.addTest(TestSuite.createTest(ErrorTests.class, "testError03")); //$NON-NLS-1$ + } + return suite; + } + +} + + diff --git a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/SuccessSuite.java b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/SuccessSuite.java index fc39a26923b..2404dea1d4d 100755 --- a/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/SuccessSuite.java +++ b/rse/tests/org.eclipse.rse.tests.framework.examples/src/org/eclipse/rse/tests/framework/examples/SuccessSuite.java @@ -1,23 +1,23 @@ -/* ******************************************************************************* - * Copyright (c) 2006 IBM Corporation. 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: - * David Dykstal (IBM) - initial contribution. - * *******************************************************************************/ -package org.eclipse.rse.tests.framework.examples; - -import junit.framework.TestSuite; - -public class SuccessSuite extends TestSuite { - - public SuccessSuite() { - super(SuccessTests.class); - setName("successes"); - } - -} - - +/* ******************************************************************************* + * Copyright (c) 2006 IBM Corporation. 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: + * David Dykstal (IBM) - initial contribution. + * *******************************************************************************/ +package org.eclipse.rse.tests.framework.examples; + +import junit.framework.TestSuite; + +public class SuccessSuite extends TestSuite { + + public SuccessSuite() { + super(SuccessTests.class); + setName("successes"); //$NON-NLS-1$ + } + +} + +