Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian W. Damus2015-02-24 16:28:50 +0000
committerChristian W. Damus2015-02-24 16:28:50 +0000
commitf3e1adbbdfbf206fdc5a8f09086d2ee90a8994fc (patch)
tree8151d46d17a4efbb43c97968440f81a80a15a1fb
parentb0be10518f2fb0d4893a105124dedca660584f77 (diff)
downloadorg.eclipse.papyrus-f3e1adbbdfbf206fdc5a8f09086d2ee90a8994fc.tar.gz
org.eclipse.papyrus-f3e1adbbdfbf206fdc5a8f09086d2ee90a8994fc.tar.xz
org.eclipse.papyrus-f3e1adbbdfbf206fdc5a8f09086d2ee90a8994fc.zip
Bug 460716: [CDO] New test failures since build 694
https://bugs.eclipse.org/bugs/show_bug.cgi?id=460716 And other tests that aren't failing, yet, but can be expected to some day.
-rw-r--r--tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.validation.problems.tests/src/org/eclipse/papyrus/cdo/validation/problems/util/tests/ProblemsManagerTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.validation.problems.tests/src/org/eclipse/papyrus/cdo/validation/problems/util/tests/ProblemsManagerTest.java b/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.validation.problems.tests/src/org/eclipse/papyrus/cdo/validation/problems/util/tests/ProblemsManagerTest.java
index 634da50dac9..e4794b4200e 100644
--- a/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.validation.problems.tests/src/org/eclipse/papyrus/cdo/validation/problems/util/tests/ProblemsManagerTest.java
+++ b/tests/junit/extraplugins/cdo/org.eclipse.papyrus.cdo.validation.problems.tests/src/org/eclipse/papyrus/cdo/validation/problems/util/tests/ProblemsManagerTest.java
@@ -107,13 +107,14 @@ public class ProblemsManagerTest
.createResource(getResourcePath("/resource1"));
createTestModel(resource);
+ final int expectedProblems = computeExpectedProblemsCount(getClass2());
ProblemsManager mgr = getProblemsManager(transaction);
mgr.addDiagnostic(validate(resource));
Collection<EProblem> problems = collect(mgr
.getAllProblems(getClass2(resource)));
- assertThat(problems.size(), equalTo(2));
+ assertThat(problems.size(), equalTo(expectedProblems));
assertIndistinguishableMembersProblem(resource, problems);
assertGeneralCompatibilityProblem(resource, problems);
}
@@ -129,13 +130,14 @@ public class ProblemsManagerTest
.add(new ECrossReferenceAdapter());
createTestModel(resource);
+ final int expectedProblems = computeExpectedProblemsCount(getClass2());
ProblemsManager mgr = getProblemsManager(transaction);
mgr.addDiagnostic(validate(resource));
Collection<EProblem> problems = collect(mgr
.getAllProblems(getClass2(resource)));
- assertThat(problems.size(), equalTo(2));
+ assertThat(problems.size(), equalTo(expectedProblems));
assertIndistinguishableMembersProblem(resource, problems);
assertGeneralCompatibilityProblem(resource, problems);
}

Back to the top