diff --git a/org.eclipse.xtend.core.tests/src/org/eclipse/xtend/core/tests/build/XtendIncrementalBuilderTest.xtend b/org.eclipse.xtend.core.tests/src/org/eclipse/xtend/core/tests/build/XtendIncrementalBuilderTest.xtend index 6578dc0d14..7b6ca7dab2 100644 --- a/org.eclipse.xtend.core.tests/src/org/eclipse/xtend/core/tests/build/XtendIncrementalBuilderTest.xtend +++ b/org.eclipse.xtend.core.tests/src/org/eclipse/xtend/core/tests/build/XtendIncrementalBuilderTest.xtend @@ -189,10 +189,16 @@ class XtendIncrementalBuilderTest extends AbstractIncrementalBuilderTest { build(newBuildRequest [ deletedFiles = #[uri('src/foo/B.xtend').delete] afterValidate = [ uri, issues | - assertEquals(uri('src/A.xtend'), uri) - assertTrue(issues.head.message, issues.head.message.contains("foo.B cannot be resolved to a type")) - validateCalled.set(true) - return false + if (uri('src/A.xtend') == uri) { + assertTrue(issues.head.message, issues.head.message.contains("foo.B cannot be resolved to a type")) + validateCalled.set(true) + return false + } else if (uri('src/foo/B.xtend') == uri) { + assertEquals("zero issues expected", 0, issues.size) + return true + } else { + throw new IllegalStateException("unexpected issues for " + uri) + } ] ]) assertTrue(validateCalled.get) diff --git a/org.eclipse.xtend.core.tests/xtend-gen/org/eclipse/xtend/core/tests/build/XtendIncrementalBuilderTest.java b/org.eclipse.xtend.core.tests/xtend-gen/org/eclipse/xtend/core/tests/build/XtendIncrementalBuilderTest.java index 28881374af..b05251e647 100644 --- a/org.eclipse.xtend.core.tests/xtend-gen/org/eclipse/xtend/core/tests/build/XtendIncrementalBuilderTest.java +++ b/org.eclipse.xtend.core.tests/xtend-gen/org/eclipse/xtend/core/tests/build/XtendIncrementalBuilderTest.java @@ -7,6 +7,7 @@ */ package org.eclipse.xtend.core.tests.build; +import com.google.common.base.Objects; import com.google.inject.Inject; import com.google.inject.Injector; import java.util.Collections; @@ -289,10 +290,22 @@ public void testDelete_01() { URI _delete = this.delete(this.uri("src/foo/B.xtend")); it.setDeletedFiles(Collections.unmodifiableList(CollectionLiterals.newArrayList(_delete))); final BuildRequest.IPostValidationCallback _function_2 = (URI uri, Iterable issues) -> { - Assert.assertEquals(this.uri("src/A.xtend"), uri); - Assert.assertTrue(IterableExtensions.head(issues).getMessage(), IterableExtensions.head(issues).getMessage().contains("foo.B cannot be resolved to a type")); - validateCalled.set(true); - return false; + URI _uri = this.uri("src/A.xtend"); + boolean _equals = Objects.equal(_uri, uri); + if (_equals) { + Assert.assertTrue(IterableExtensions.head(issues).getMessage(), IterableExtensions.head(issues).getMessage().contains("foo.B cannot be resolved to a type")); + validateCalled.set(true); + return false; + } else { + URI _uri_1 = this.uri("src/foo/B.xtend"); + boolean _equals_1 = Objects.equal(_uri_1, uri); + if (_equals_1) { + Assert.assertEquals("zero issues expected", 0, IterableExtensions.size(issues)); + return true; + } else { + throw new IllegalStateException(("unexpected issues for " + uri)); + } + } }; it.setAfterValidate(_function_2); };