Skip to content

Commit

Permalink
[EAK-490] Updated AnyDiff dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
smiakchilo committed Apr 12, 2024
1 parent b7a1c0b commit 66b3c5e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion it.tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
</dependency>
<dependency>
<groupId>com.exadel.etoolbox</groupId>
<artifactId>etoolbox-coconut-core</artifactId>
<artifactId>etoolbox-anydiff-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
import org.junit.Assert;

import com.exadel.aem.toolkit.core.CoreConstants;
import com.exadel.etoolbox.coconut.Comparator;
import com.exadel.etoolbox.coconut.OutputType;
import com.exadel.etoolbox.coconut.diff.Diff;
import com.exadel.etoolbox.coconut.filter.Filter;
import com.exadel.etoolbox.coconut.filter.FilterFactory;
import com.exadel.etoolbox.anydiff.AnyDiff;
import com.exadel.etoolbox.anydiff.OutputType;
import com.exadel.etoolbox.anydiff.diff.Diff;
import com.exadel.etoolbox.anydiff.filter.Filter;
import com.exadel.etoolbox.anydiff.filter.FilterFactory;

class ComparisonUtil {

Expand All @@ -51,7 +51,7 @@ static boolean isMatch(Path oldDirectory, Path newDirectory, List<String> filter
RegressionTest.LOG.info("There are no different packages");
return true;
}
Comparator comparator = new Comparator()
AnyDiff comparator = new AnyDiff()
.left(oldPackages, "Expected")
.right(newPackages, "Actual")
.filter(PACKAGE_FILTER);
Expand All @@ -69,7 +69,7 @@ static boolean isMatch(Path oldDirectory, Path newDirectory, List<String> filter
differences = comparator.compare();
}

boolean result = Comparator.isMatch(differences);
boolean result = AnyDiff.isMatch(differences);
if (!differences.isEmpty()) {
report(differences);
}
Expand Down
2 changes: 1 addition & 1 deletion plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
</dependency>
<dependency>
<groupId>com.exadel.etoolbox</groupId>
<artifactId>etoolbox-coconut-core</artifactId>
<artifactId>etoolbox-anydiff-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
import com.exadel.aem.toolkit.plugin.sources.ComponentSource;
import com.exadel.aem.toolkit.plugin.sources.Sources;
import com.exadel.aem.toolkit.plugin.writers.PackageWriter;
import com.exadel.etoolbox.coconut.Comparator;
import com.exadel.etoolbox.coconut.OutputType;
import com.exadel.etoolbox.coconut.diff.Diff;
import com.exadel.etoolbox.coconut.diff.DiffEntry;
import com.exadel.etoolbox.coconut.filter.Filter;
import com.exadel.etoolbox.anydiff.AnyDiff;
import com.exadel.etoolbox.anydiff.OutputType;
import com.exadel.etoolbox.anydiff.diff.Diff;
import com.exadel.etoolbox.anydiff.diff.DiffEntry;
import com.exadel.etoolbox.anydiff.filter.Filter;

class RenderingUtil {

Expand All @@ -59,13 +59,13 @@ public static boolean doTest(

PackageWriter.forFileSystem(fileSystem, TestConstants.DEFAULT_PROJECT_NAME).write(testable);

List<Diff> differences = new Comparator()
List<Diff> differences = new AnyDiff()
.left(sampleFilesPath, "Expected")
.right(effectiveCreatedFilesPath, "Actual")
.filter(XML_NAMESPACE_FILTER)
.compare();

boolean result = Comparator.isMatch(differences);
boolean result = AnyDiff.isMatch(differences);
if (!result) {
reportDifferences(differences);
}
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,8 @@
</dependency>
<dependency>
<groupId>com.exadel.etoolbox</groupId>
<artifactId>etoolbox-coconut-core</artifactId>
<version>1.0.0-SNAPSHOT</version>
<artifactId>etoolbox-anydiff-core</artifactId>
<version>1.0.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion ui.apps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.exadel.etoolbox</groupId>
<artifactId>etoolbox-authoring-kit</artifactId>
<version>2.4.0-SNAPSHOT</version>
<version>2.5.1-SNAPSHOT</version>
</parent>

<artifactId>etoolbox-authoring-kit-ui.apps</artifactId>
Expand Down

0 comments on commit 66b3c5e

Please sign in to comment.