From b3e51b0628dc871a8b2059c0c67e6091c82c2def Mon Sep 17 00:00:00 2001 From: aclement Date: Sat, 10 Dec 2011 01:09:30 +0000 Subject: [PATCH] message changes for e37 --- .../tools/MultiProjectIncrementalTests.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java index bd8b718d4..96cd13ea2 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java @@ -808,7 +808,7 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa String p = "pr266420"; initialiseProject(p); - Hashtable javaOptions = new Hashtable(); + Hashtable javaOptions = new Hashtable(); javaOptions.put("org.eclipse.jdt.core.compiler.compliance", "1.6"); javaOptions.put("org.eclipse.jdt.core.compiler.codegen.targetPlatform", "1.6"); javaOptions.put("org.eclipse.jdt.core.compiler.source", "1.6"); @@ -817,7 +817,7 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa build(p); checkWasFullBuild(); - List warnings = getWarningMessages(p); + List warnings = getWarningMessages(p); assertEquals(0, warnings.size()); alter(p, "inc1"); build(p); @@ -1011,7 +1011,7 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa fail("found unexpected relationship source " + ipe + " with kind " + ipe.getKind() + " when looking up handle: " + sourceOfRelationship); } - List relationships = asmRelMap.get(ipe); + List relationships = asmRelMap.get(ipe); assertNotNull("expected " + ipe.getName() + " to have some " + "relationships", relationships); for (Iterator iterator = relationships.iterator(); iterator.hasNext();) { Relationship rel = (Relationship) iterator.next(); @@ -1216,7 +1216,7 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa // "src/q/Asp.java")); build(p); checkWasntFullBuild(); - List l = getCompilerErrorMessages(p); + List l = getCompilerErrorMessages(p); assertEquals("Unexpected compiler error", 0, l.size()); } @@ -1251,7 +1251,7 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa alter(p, "inc1"); build(p); checkWasntFullBuild(); - List l = getCompilerErrorMessages(p); + List l = getCompilerErrorMessages(p); assertEquals("Unexpected compiler error", 0, l.size()); } @@ -1269,7 +1269,7 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa checkWasFullBuild(); alter(p, "inc1"); build(p); - List l = getCompilerErrorMessages(p); + List l = getCompilerErrorMessages(p); assertEquals("Unexpected compiler error", 0, l.size()); } @@ -1305,8 +1305,8 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa IProgramElement ipe = findFile(root, "Example.aj");// findElementAtLine(root, 1); ipe = ipe.getChildren().get(0); // package decl is first entry in the type assertEquals(IProgramElement.Kind.PACKAGE_DECLARATION, ipe.getKind()); - assertEquals("=Imports compile errors in C2 // Stage 3: make the field private in aspect A1 whilst there's the compile // error. - // There shouldn't be a BCExcpetion saying can't find delegate for pack.C2 + // There shouldn't be a BCException saying can't find delegate for pack.C2 public void testPr119882() { initialiseProject("PR119882"); build("PR119882"); @@ -2774,15 +2774,15 @@ public class MultiProjectIncrementalTests extends AbstractMultiProjectIncrementa alter("PR119882", "inc1"); build("PR119882"); // fullBuild("PR119882"); - List errors = getErrorMessages("PR119882"); + List errors = getErrorMessages("PR119882"); assertTrue("Should be at least one error, but got none", errors.size() == 1); - assertEquals("error message should be 'i cannot be resolved' ", "i cannot be resolved", + assertEquals("error message should be 'i cannot be resolved to a variable' ", "i cannot be resolved to a variable", ((IMessage) errors.get(0)).getMessage()); alter("PR119882", "inc2"); build("PR119882"); assertTrue("There should be no exceptions handled:\n" + getCompilerErrorMessages("PR119882"), getCompilerErrorMessages("PR119882").isEmpty()); - assertEquals("error message should be 'i cannot be resolved' ", "i cannot be resolved", + assertEquals("error message should be 'i cannot be resolved to a variable' ", "i cannot be resolved to a variable", ((IMessage) errors.get(0)).getMessage()); } -- 2.39.5