Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2018-11-20 16:20:42 +0000
committerJonah Graham2018-11-22 21:47:02 +0000
commit170e654b4796bad1453ae85a427b97317d67a69a (patch)
tree6ca9b8a8fedd5fd25f97eb79c408312e256ff981 /xlc/org.eclipse.cdt.errorparsers.xlc.tests
parent35996a5c5ca5c254959ba48241eaada6dbf8628d (diff)
downloadorg.eclipse.cdt-170e654b4796bad1453ae85a427b97317d67a69a.tar.gz
org.eclipse.cdt-170e654b4796bad1453ae85a427b97317d67a69a.tar.xz
org.eclipse.cdt-170e654b4796bad1453ae85a427b97317d67a69a.zip
Bug 540373: Cleanup: Format & Remove trailing whitespace
This was done by selecting all projects in Eclipse then Source -> Clean Up... -> choosing: - Format source code - Remove trailing white spaces on all lines and completing the wizard Change-Id: I63685372c6bcc67719bcf145123bcb72e5b00394
Diffstat (limited to 'xlc/org.eclipse.cdt.errorparsers.xlc.tests')
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCommandOptionNotRecognized.java10
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCompatibility.java10
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestError_1.java18
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_1.java18
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_2.java12
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_3.java10
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerCommandOptionNotRecognized.java10
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerDuplicateSymbol.java14
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerErrorWhileReading.java14
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerInfo.java14
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerSevereError.java14
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerUndefinedSymbol.java14
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedeclaration.java17
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedefinition.java15
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_1.java17
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_2.java17
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_3.java19
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_4.java22
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_5.java18
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_1.java13
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_2.java11
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_3.java12
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestWarning_1.java15
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestsPlugin.java5
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/XlcErrorParserTester.java23
25 files changed, 177 insertions, 185 deletions
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCommandOptionNotRecognized.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCommandOptionNotRecognized.java
index 88507abc76d..7904328d1e0 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCommandOptionNotRecognized.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCommandOptionNotRecognized.java
@@ -19,23 +19,23 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestCommandOptionNotRecognized extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. A warning message generated by
* xlc compiler about command options is given as
* input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("", aix.getFileName(0));
assertEquals(0, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_WARNING, aix.getSeverity(0));
- assertEquals("command option 9 is not recognized - passed to ld",aix.getMessage(0));
+ assertEquals("command option 9 is not recognized - passed to ld", aix.getMessage(0));
}
- public TestCommandOptionNotRecognized(String name)
- {
+
+ public TestCommandOptionNotRecognized(String name) {
super(name);
err_msg = "/usr/vacpp/bin/xlc: 1501-216 command option 9 is not recognized - passed to ld";
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCompatibility.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCompatibility.java
index 489f69ea94c..53ac930ce33 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCompatibility.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestCompatibility.java
@@ -19,23 +19,23 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestCompatibility extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Error message generated by
* xlC compiler without message number or quotes around file name
* which was OK in older version.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("temp1.c", aix.getFileName(0));
assertEquals(5, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_INFO, aix.getSeverity(0));
- assertEquals("Compatibility test",aix.getMessage(0));
+ assertEquals("Compatibility test", aix.getMessage(0));
}
- public TestCompatibility( String name)
- {
+
+ public TestCompatibility(String name) {
super(name);
err_msg = "temp1.c, line 5.1: (I) Compatibility test";
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestError_1.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestError_1.java
index 91ed5cb2a77..adc57131338 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestError_1.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestError_1.java
@@ -18,28 +18,26 @@ import junit.framework.TestCase;
import org.eclipse.cdt.core.IMarkerGenerator;
-
public class TestError_1 extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Error message generated by
- * xlc compiler with medium severity (E) is given as
- * input for testing.
+ * xlc compiler with medium severity (E) is given as
+ * input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("temp8.c", aix.getFileName(0));
assertEquals(9, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
- assertEquals("Missing argument(s).",aix.getMessage(0));
+ assertEquals("Missing argument(s).", aix.getMessage(0));
}
- public TestError_1( String name)
- {
+
+ public TestError_1(String name) {
super(name);
- err_msg = "\"temp8.c\", line 9.17: 1506-098 (E) "
- + "Missing argument(s).";
+ err_msg = "\"temp8.c\", line 9.17: 1506-098 (E) " + "Missing argument(s).";
}
} \ No newline at end of file
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_1.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_1.java
index 26a0d2afc76..d27a8a715de 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_1.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_1.java
@@ -18,27 +18,25 @@ import junit.framework.TestCase;
import org.eclipse.cdt.core.IMarkerGenerator;
-
public class TestInformationalMessage_1 extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
- * XlcErrorParser class. Informative message generated
- * by the xlc compiler is given as input for testing.
+ * XlcErrorParser class. Informative message generated
+ * by the xlc compiler is given as input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("temp8.c", aix.getFileName(0));
assertEquals(12, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_INFO, aix.getSeverity(0));
- assertEquals("The then branch of conditional is an empty statement.",aix.getMessage(0));
+ assertEquals("The then branch of conditional is an empty statement.", aix.getMessage(0));
}
- public TestInformationalMessage_1( String name)
- {
+
+ public TestInformationalMessage_1(String name) {
super(name);
- err_msg = "\"temp8.c\", line 12.9: 1506-478 (I) " +
- "The then branch of conditional is an empty statement.";
+ err_msg = "\"temp8.c\", line 12.9: 1506-478 (I) " + "The then branch of conditional is an empty statement.";
}
} \ No newline at end of file
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_2.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_2.java
index db99e3603b8..5b8796612a0 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_2.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_2.java
@@ -19,23 +19,25 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestInformationalMessage_2 extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. A variant of informational message generated by
* xlc compiler with no file or line is given as
* input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("", aix.getFileName(0));
assertEquals(0, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_INFO, aix.getSeverity(0));
- assertEquals("clazz::fun(): Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192.",aix.getMessage(0));
+ assertEquals(
+ "clazz::fun(): Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192.",
+ aix.getMessage(0));
}
- public TestInformationalMessage_2( String name)
- {
+
+ public TestInformationalMessage_2(String name) {
super(name);
err_msg = " 1500-030: (I) INFORMATION: clazz::fun(): Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192.";
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_3.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_3.java
index 4ef89cd2c19..8d63f8bce58 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_3.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestInformationalMessage_3.java
@@ -19,22 +19,22 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestInformationalMessage_3 extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. A variant of informational message generated by
* xlc compiler is given as input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("", aix.getFileName(0));
assertEquals(0, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_INFO, aix.getSeverity(0));
- assertEquals("Global variable \"__td __td__Q2_3std13runtime_error\" is not used.",aix.getMessage(0));
+ assertEquals("Global variable \"__td __td__Q2_3std13runtime_error\" is not used.", aix.getMessage(0));
}
- public TestInformationalMessage_3( String name)
- {
+
+ public TestInformationalMessage_3(String name) {
super(name);
err_msg = "1540-5336 (I) Global variable \"__td __td__Q2_3std13runtime_error\" is not used.";
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerCommandOptionNotRecognized.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerCommandOptionNotRecognized.java
index 9525ca45342..a91f48715f6 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerCommandOptionNotRecognized.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerCommandOptionNotRecognized.java
@@ -20,23 +20,23 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestLinkerCommandOptionNotRecognized extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. A warning message generated by
* xlc linker about command options is given as
* input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("", aix.getFileName(0));
assertEquals(0, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_WARNING, aix.getSeverity(0));
- assertEquals("The -9 flag is not recognized.",aix.getMessage(0));
+ assertEquals("The -9 flag is not recognized.", aix.getMessage(0));
}
- public TestLinkerCommandOptionNotRecognized(String name)
- {
+
+ public TestLinkerCommandOptionNotRecognized(String name) {
super(name);
err_msg = "ld: 0706-012 The -9 flag is not recognized.";
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerDuplicateSymbol.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerDuplicateSymbol.java
index 91a9d87b531..f89e6384064 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerDuplicateSymbol.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerDuplicateSymbol.java
@@ -20,23 +20,23 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestLinkerDuplicateSymbol extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Error message generated by
- * xlc linker with "WARNING" level is given as
- * input for testing.
+ * xlc linker with "WARNING" level is given as
+ * input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("", aix.getFileName(0));
assertEquals(0, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_WARNING, aix.getSeverity(0));
- assertEquals("Duplicate symbol: dupefun",aix.getMessage(0));
+ assertEquals("Duplicate symbol: dupefun", aix.getMessage(0));
}
- public TestLinkerDuplicateSymbol( String name)
- {
+
+ public TestLinkerDuplicateSymbol(String name) {
super(name);
err_msg = "ld: 0711-224 WARNING: Duplicate symbol: dupefun";
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerErrorWhileReading.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerErrorWhileReading.java
index 1c5ae491bff..af5393f4983 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerErrorWhileReading.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerErrorWhileReading.java
@@ -20,23 +20,23 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestLinkerErrorWhileReading extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Error message generated by
- * xlc linker with "ERROR" level is given as
- * input for testing.
+ * xlc linker with "ERROR" level is given as
+ * input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("", aix.getFileName(0));
assertEquals(0, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
- assertEquals("Error occurred while reading file",aix.getMessage(0));
+ assertEquals("Error occurred while reading file", aix.getMessage(0));
}
- public TestLinkerErrorWhileReading( String name)
- {
+
+ public TestLinkerErrorWhileReading(String name) {
super(name);
err_msg = "ld: 0711-987 Error occurred while reading file";
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerInfo.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerInfo.java
index d8a88ecb3b8..722af545c09 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerInfo.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerInfo.java
@@ -20,23 +20,23 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestLinkerInfo extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Informational message generated by
- * xlc linker is given as
- * input for testing.
+ * xlc linker is given as
+ * input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("", aix.getFileName(0));
assertEquals(0, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_INFO, aix.getSeverity(0));
- assertEquals("Use the -bloadmap or -bnoquiet option to obtain more information.",aix.getMessage(0));
+ assertEquals("Use the -bloadmap or -bnoquiet option to obtain more information.", aix.getMessage(0));
}
- public TestLinkerInfo( String name)
- {
+
+ public TestLinkerInfo(String name) {
super(name);
err_msg = "ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.";
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerSevereError.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerSevereError.java
index e75376b8b7f..fd7d024a80d 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerSevereError.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerSevereError.java
@@ -20,23 +20,23 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestLinkerSevereError extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Error message generated by
- * xlc linker with "SEVERE ERROR" level is given as
- * input for testing.
+ * xlc linker with "SEVERE ERROR" level is given as
+ * input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("", aix.getFileName(0));
assertEquals(0, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
- assertEquals("EXEC binder commands nested too deeply.",aix.getMessage(0));
+ assertEquals("EXEC binder commands nested too deeply.", aix.getMessage(0));
}
- public TestLinkerSevereError( String name)
- {
+
+ public TestLinkerSevereError(String name) {
super(name);
err_msg = "ld: 0711-634 SEVERE ERROR: EXEC binder commands nested too deeply.";
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerUndefinedSymbol.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerUndefinedSymbol.java
index 25fa6d2f640..65e49ca4182 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerUndefinedSymbol.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestLinkerUndefinedSymbol.java
@@ -20,23 +20,23 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestLinkerUndefinedSymbol extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Error message generated by
- * xlc linker with "ERROR" level is given as
- * input for testing.
+ * xlc linker with "ERROR" level is given as
+ * input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("", aix.getFileName(0));
assertEquals(0, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
- assertEquals("Undefined symbol: nofun()",aix.getMessage(0));
+ assertEquals("Undefined symbol: nofun()", aix.getMessage(0));
}
- public TestLinkerUndefinedSymbol( String name)
- {
+
+ public TestLinkerUndefinedSymbol(String name) {
super(name);
err_msg = "ld: 0711-317 ERROR: Undefined symbol: nofun()";
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedeclaration.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedeclaration.java
index a56b2cf1d40..4b5f3361d86 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedeclaration.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedeclaration.java
@@ -24,26 +24,27 @@ public class TestRedeclaration extends TestCase {
* xlc compiler for symbol redeclaration problem is given as
* input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
// Redeclaration error generates 2 cross-referencing messages.
String err_msg = "\"src/temp1.c\", line 6.6: 1506-343 (S) Redeclaration of my_fun differs from previous declaration on line 334 of \"include/temp1.h\".";
aix.parseLine(err_msg);
assertEquals(2, aix.getNumberOfMarkers());
-
- assertEquals("Redeclaration of my_fun differs from another declaration on line 6 of \"src/temp1.c\".", aix.getMessage(0));
+
+ assertEquals("Redeclaration of my_fun differs from another declaration on line 6 of \"src/temp1.c\".",
+ aix.getMessage(0));
assertEquals("temp1.h", aix.getFileName(0));
assertEquals(334, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
-
- assertEquals("Redeclaration of my_fun differs from previous declaration on line 334 of \"include/temp1.h\".", aix.getMessage(1));
+
+ assertEquals("Redeclaration of my_fun differs from previous declaration on line 334 of \"include/temp1.h\".",
+ aix.getMessage(1));
assertEquals("temp1.c", aix.getFileName(1));
assertEquals(6, aix.getLineNumber(1));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(1));
}
- public TestRedeclaration( String name)
- {
+
+ public TestRedeclaration(String name) {
super(name);
}
} \ No newline at end of file
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedefinition.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedefinition.java
index 13090b71c2e..9ec6f5412cd 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedefinition.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestRedefinition.java
@@ -24,8 +24,7 @@ public class TestRedefinition extends TestCase {
* xlc compiler for macro/variable redefinition problem is given as
* input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
// Macro redefinition warning generates 2 messages. First line is ignored.
// Second line is re-parsed to 2 warnings to cross-reference both.
@@ -37,29 +36,29 @@ public class TestRedefinition extends TestCase {
aix.parseLine(err_msg2);
aix.parseLine(err_msg3);
assertEquals(4, aix.getNumberOfMarkers());
-
+
assertEquals("\"TEMP_1\" has been redefined on line 5 of temp1.c", aix.getMessage(0));
assertEquals("temp1.h", aix.getFileName(0));
assertEquals(3, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_WARNING, aix.getSeverity(0));
-
+
assertEquals("\"TEMP_1\" redefines original definition on line 3 of temp1.h", aix.getMessage(1));
assertEquals("temp1.c", aix.getFileName(1));
assertEquals(5, aix.getLineNumber(1));
assertEquals(IMarkerGenerator.SEVERITY_WARNING, aix.getSeverity(1));
-
+
assertEquals("\"MACRO_2\" has been redefined on line 17 of temp2.c", aix.getMessage(2));
assertEquals("temp2.c", aix.getFileName(2));
assertEquals(10, aix.getLineNumber(2));
assertEquals(IMarkerGenerator.SEVERITY_WARNING, aix.getSeverity(2));
-
+
assertEquals("\"MACRO_2\" redefines original definition on line 10 of temp2.c", aix.getMessage(3));
assertEquals("temp2.c", aix.getFileName(3));
assertEquals(17, aix.getLineNumber(3));
assertEquals(IMarkerGenerator.SEVERITY_WARNING, aix.getSeverity(3));
}
- public TestRedefinition( String name)
- {
+
+ public TestRedefinition(String name) {
super(name);
}
} \ No newline at end of file
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_1.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_1.java
index 6bd834725d2..497bb1ef2cf 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_1.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_1.java
@@ -19,25 +19,24 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestSevereError_1 extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Error message generated by
- * xlc compiler with high severity (S) is given as
- * input for testing.
+ * xlc compiler with high severity (S) is given as
+ * input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("temp1.c", aix.getFileName(0));
assertEquals(5, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
- assertEquals("Syntax error: possible missing ')'?",aix.getMessage(0));
+ assertEquals("Syntax error: possible missing ')'?", aix.getMessage(0));
}
- public TestSevereError_1( String name)
- {
+
+ public TestSevereError_1(String name) {
super(name);
- err_msg = "\"temp1.c\", line 5.1: 1506-276 (S) "
- + "Syntax error: possible missing ')'?";
+ err_msg = "\"temp1.c\", line 5.1: 1506-276 (S) " + "Syntax error: possible missing ')'?";
}
} \ No newline at end of file
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_2.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_2.java
index 9008fddde6e..b75f9fab4a2 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_2.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_2.java
@@ -20,25 +20,24 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestSevereError_2 extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Error message generated by
- * xlc compiler with high severity (S) is given as
- * input for testing.
+ * xlc compiler with high severity (S) is given as
+ * input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("temp5.c", aix.getFileName(0));
assertEquals(5, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
- assertEquals("Undeclared identifier y.",aix.getMessage(0));
+ assertEquals("Undeclared identifier y.", aix.getMessage(0));
}
- public TestSevereError_2( String name)
- {
+
+ public TestSevereError_2(String name) {
super(name);
- err_msg = "\"temp5.c\", line 5.9: 1506-045 (S) " +
- "Undeclared identifier y.";
+ err_msg = "\"temp5.c\", line 5.9: 1506-045 (S) " + "Undeclared identifier y.";
}
} \ No newline at end of file
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_3.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_3.java
index bd6afb64b7c..68a929c5cc8 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_3.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_3.java
@@ -18,29 +18,26 @@ import junit.framework.TestCase;
import org.eclipse.cdt.core.IMarkerGenerator;
-
public class TestSevereError_3 extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Error message generated by
- * xlc compiler with high severity (S) is given as
- * input for testing.
+ * xlc compiler with high severity (S) is given as
+ * input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("temp9.c", aix.getFileName(0));
assertEquals(11, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
- assertEquals("Floating point constant 10.23.3 is not valid",
- aix.getMessage(0));
+ assertEquals("Floating point constant 10.23.3 is not valid", aix.getMessage(0));
}
- public TestSevereError_3( String name)
- {
+
+ public TestSevereError_3(String name) {
super(name);
- err_msg = "\"temp9.c\", line 11.18: 1506-189 (S) " +
- "Floating point constant 10.23.3 is not valid";
+ err_msg = "\"temp9.c\", line 11.18: 1506-189 (S) " + "Floating point constant 10.23.3 is not valid";
}
} \ No newline at end of file
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_4.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_4.java
index 8658a500c28..874d3d7ff27 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_4.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_4.java
@@ -20,28 +20,26 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestSevereError_4 extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Error message generated by
- * xlc compiler with high severity (S) is given as
- * input for testing.
+ * xlc compiler with high severity (S) is given as
+ * input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("temp9.c", aix.getFileName(0));
assertEquals(12, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
- assertEquals("Function argument assignment between types " +
- "\"int\" and \"char*\" is not allowed.",
- aix.getMessage(0));
+ assertEquals("Function argument assignment between types " + "\"int\" and \"char*\" is not allowed.",
+ aix.getMessage(0));
}
- public TestSevereError_4( String name)
- {
+
+ public TestSevereError_4(String name) {
super(name);
- err_msg = "\"temp9.c\", line 12.18: 1506-280 (S) " +
- "Function argument assignment between types " +
- "\"int\" and \"char*\" is not allowed.";
+ err_msg = "\"temp9.c\", line 12.18: 1506-280 (S) " + "Function argument assignment between types "
+ + "\"int\" and \"char*\" is not allowed.";
}
} \ No newline at end of file
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_5.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_5.java
index 0e0bbd861f9..85c6de53283 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_5.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestSevereError_5.java
@@ -17,28 +17,26 @@ import junit.framework.TestCase;
import org.eclipse.cdt.core.IMarkerGenerator;
-
public class TestSevereError_5 extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Error message generated by
- * xlc compiler with high severity (S) is given as
- * input for testing.
+ * xlc compiler with high severity (S) is given as
+ * input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("temp9.c", aix.getFileName(0));
assertEquals(13, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
- assertEquals("Operand must be a modifiable lvalue.",aix.getMessage(0));
+ assertEquals("Operand must be a modifiable lvalue.", aix.getMessage(0));
}
- public TestSevereError_5( String name)
- {
+
+ public TestSevereError_5(String name) {
super(name);
- err_msg = "\"temp9.c\", line 13.9: 1506-025 (S) " +
- "Operand must be a modifiable lvalue.";
+ err_msg = "\"temp9.c\", line 13.9: 1506-025 (S) " + "Operand must be a modifiable lvalue.";
}
} \ No newline at end of file
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_1.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_1.java
index 17b8356f7af..30a44c7882a 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_1.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_1.java
@@ -19,25 +19,24 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestUnrecoverableError_1 extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Error message generated by
* xlc compiler with unrecoverable severity (U) is given as
* input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("temp1.c", aix.getFileName(0));
assertEquals(5, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
- assertEquals("INTERNAL COMPILER ERROR",aix.getMessage(0));
+ assertEquals("INTERNAL COMPILER ERROR", aix.getMessage(0));
}
- public TestUnrecoverableError_1( String name)
- {
+
+ public TestUnrecoverableError_1(String name) {
super(name);
- err_msg = "\"temp1.c\", line 5.1: 1506-001 (U) "
- + "INTERNAL COMPILER ERROR";
+ err_msg = "\"temp1.c\", line 5.1: 1506-001 (U) " + "INTERNAL COMPILER ERROR";
}
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_2.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_2.java
index b9f93edf52a..5db28e28afc 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_2.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_2.java
@@ -19,23 +19,24 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestUnrecoverableError_2 extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. A variant of error message generated by
* xlc compiler with unrecoverable severity (U) is given as
* input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("", aix.getFileName(0));
assertEquals(0, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
- assertEquals("An error occurred during code generation. The code generation return code was 1.",aix.getMessage(0));
+ assertEquals("An error occurred during code generation. The code generation return code was 1.",
+ aix.getMessage(0));
}
- public TestUnrecoverableError_2( String name)
- {
+
+ public TestUnrecoverableError_2(String name) {
super(name);
err_msg = "1586-346 (U) An error occurred during code generation. The code generation return code was 1.";
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_3.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_3.java
index b780d577dd5..82635bcfed6 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_3.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestUnrecoverableError_3.java
@@ -19,23 +19,25 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestUnrecoverableError_3 extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. A variant of error message generated by
* xlc compiler with unrecoverable severity (U) is given as
* input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("", aix.getFileName(0));
assertEquals(0, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_ERROR_RESOURCE, aix.getSeverity(0));
- assertEquals("INTERNAL COMPILER ERROR while compiling ----. Compilation ended. Contact your Service Representative and provide the following information: Internal abort. For more information visit: http://www.ibm.com/support/docview.wss?uid=swg21110810",aix.getMessage(0));
+ assertEquals(
+ "INTERNAL COMPILER ERROR while compiling ----. Compilation ended. Contact your Service Representative and provide the following information: Internal abort. For more information visit: http://www.ibm.com/support/docview.wss?uid=swg21110810",
+ aix.getMessage(0));
}
- public TestUnrecoverableError_3( String name)
- {
+
+ public TestUnrecoverableError_3(String name) {
super(name);
err_msg = " 1500-004: (U) INTERNAL COMPILER ERROR while compiling ----. Compilation ended. Contact your Service Representative and provide the following information: Internal abort. For more information visit: http://www.ibm.com/support/docview.wss?uid=swg21110810";
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestWarning_1.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestWarning_1.java
index 0373e21c421..7cfa9d55275 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestWarning_1.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestWarning_1.java
@@ -19,24 +19,23 @@ import org.eclipse.cdt.core.IMarkerGenerator;
public class TestWarning_1 extends TestCase {
String err_msg;
+
/**
* This function tests parseLine function of the
* XlcErrorParser class. Warning message generated by
- * xlc compiler (W) is given as input for testing.
+ * xlc compiler (W) is given as input for testing.
*/
- public void testparseLine()
- {
+ public void testparseLine() {
XlcErrorParserTester aix = new XlcErrorParserTester();
aix.parseLine(err_msg);
assertEquals("temp1.c", aix.getFileName(0));
assertEquals(5, aix.getLineNumber(0));
assertEquals(IMarkerGenerator.SEVERITY_WARNING, aix.getSeverity(0));
- assertEquals("No function prototype given for \"printf\".",aix.getMessage(0));
+ assertEquals("No function prototype given for \"printf\".", aix.getMessage(0));
}
- public TestWarning_1( String name)
- {
+
+ public TestWarning_1(String name) {
super(name);
- err_msg = "\"temp1.c\", line 5.9: 1506-304 (W) "
- + "No function prototype given for \"printf\".";
+ err_msg = "\"temp1.c\", line 5.9: 1506-304 (W) " + "No function prototype given for \"printf\".";
}
} \ No newline at end of file
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestsPlugin.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestsPlugin.java
index 4bb1592c09a..b3d238b791d 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestsPlugin.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/TestsPlugin.java
@@ -29,7 +29,7 @@ public class TestsPlugin extends AbstractUIPlugin {
private static TestsPlugin plugin;
//Resource bundle.
private ResourceBundle resourceBundle;
-
+
/**
* The constructor.
*/
@@ -80,7 +80,8 @@ public class TestsPlugin extends AbstractUIPlugin {
public ResourceBundle getResourceBundle() {
try {
if (resourceBundle == null)
- resourceBundle = ResourceBundle.getBundle("org.eclipse.cdt.errorparsers.xlc.tests.TestsPluginResources");
+ resourceBundle = ResourceBundle
+ .getBundle("org.eclipse.cdt.errorparsers.xlc.tests.TestsPluginResources");
} catch (MissingResourceException x) {
resourceBundle = null;
}
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/XlcErrorParserTester.java b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/XlcErrorParserTester.java
index 87652c9a7f4..f6a7fdb10e7 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/XlcErrorParserTester.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc.tests/src/org/eclipse/cdt/errorparsers/xlc/tests/XlcErrorParserTester.java
@@ -39,15 +39,16 @@ import org.eclipse.core.runtime.IPath;
public class XlcErrorParserTester {
public static final String XLC_ERROR_PARSER_ID = "org.eclipse.cdt.errorparsers.xlc.XlcErrorParser";
- static private int counter=0;
- IProject fTempProject = ResourcesPlugin.getWorkspace().getRoot().getProject("XlcErrorParserTester.temp." + counter++);
+ static private int counter = 0;
+ IProject fTempProject = ResourcesPlugin.getWorkspace().getRoot()
+ .getProject("XlcErrorParserTester.temp." + counter++);
XlcErrorParserTester() {
try {
fTempProject.create(null);
} catch (CoreException e) {
e.printStackTrace();
- fail("Exception creating temporary project "+fTempProject.getName()+": "+e);
+ fail("Exception creating temporary project " + fTempProject.getName() + ": " + e);
}
}
@@ -57,7 +58,7 @@ public class XlcErrorParserTester {
private int severity;
private String message;
}
-
+
private List<MarkerData> markerDataList = new ArrayList<MarkerData>();
/*
@@ -66,8 +67,7 @@ public class XlcErrorParserTester {
*/
private class MockMarkerGenerator implements IMarkerGenerator {
- public void addMarker(IResource file, int lineNumber, String errorDesc,
- int severity, String errorVar) {
+ public void addMarker(IResource file, int lineNumber, String errorDesc, int severity, String errorVar) {
// dummy
}
@@ -97,7 +97,7 @@ public class XlcErrorParserTester {
*/
@Override
public IFile findFileName(String fileName) {
- if (fileName!=null && fileName.trim().length()>0)
+ if (fileName != null && fileName.trim().length() > 0)
return fTempProject.getFile(fileName);
return null;
}
@@ -106,18 +106,19 @@ public class XlcErrorParserTester {
* Called by ErrorPattern.RecordError() for external problem markers
*/
@Override
- public void generateExternalMarker(IResource rc, int lineNumb, String desc, int sev, String varName, IPath externalPath) {
+ public void generateExternalMarker(IResource rc, int lineNumb, String desc, int sev, String varName,
+ IPath externalPath) {
// if rc is this project it means that file was not found
MarkerData markerData = new MarkerData();
- if (rc!=null && rc!=fTempProject) {
+ if (rc != null && rc != fTempProject) {
markerData.fileName = rc.getName();
} else {
- markerData.fileName="";
+ markerData.fileName = "";
}
markerData.lineNumber = lineNumb;
markerData.message = desc;
markerData.severity = sev;
-
+
markerDataList.add(markerData);
}
}

Back to the top