From 15a835a1669fe25179207494190d1775a44a7693 Mon Sep 17 00:00:00 2001 From: hizmailovich Date: Mon, 5 Feb 2024 13:53:41 +0300 Subject: [PATCH] Tests fixed according to new params --- .../git/tracehub/pmo/platforms/github/CreateLabelTest.java | 3 ++- src/test/java/it/platforms/github/CreateLabelIT.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/java/git/tracehub/pmo/platforms/github/CreateLabelTest.java b/src/test/java/git/tracehub/pmo/platforms/github/CreateLabelTest.java index 554bdf1..59f95ba 100644 --- a/src/test/java/git/tracehub/pmo/platforms/github/CreateLabelTest.java +++ b/src/test/java/git/tracehub/pmo/platforms/github/CreateLabelTest.java @@ -19,6 +19,7 @@ import com.jcabi.github.Repo; import com.jcabi.github.mock.MkGithub; +import git.tracehub.pmo.platforms.Label; import java.awt.Color; import java.io.IOException; import org.cactoos.list.ListOf; @@ -37,7 +38,7 @@ final class CreateLabelTest { void createsLabelSuccessfully() throws IOException { final String label = "new"; final Repo repo = new MkGithub("user").randomRepo(); - new CreateLabel(repo, new ListOf<>(label), new ListOf<>(Color.BLUE)) + new CreateLabel(repo, new ListOf<>(new Label(label, Color.BLUE))) .exec(); MatcherAssert.assertThat( "Label %s isn't created".formatted(label), diff --git a/src/test/java/it/platforms/github/CreateLabelIT.java b/src/test/java/it/platforms/github/CreateLabelIT.java index 6651ff1..d0baf27 100644 --- a/src/test/java/it/platforms/github/CreateLabelIT.java +++ b/src/test/java/it/platforms/github/CreateLabelIT.java @@ -20,6 +20,7 @@ import com.jcabi.github.Coordinates; import com.jcabi.github.Repo; import com.jcabi.github.RtGithub; +import git.tracehub.pmo.platforms.Label; import git.tracehub.pmo.platforms.github.CreateLabel; import java.awt.Color; import org.cactoos.list.ListOf; @@ -43,7 +44,7 @@ void createsLabelSuccessfully() { .get( new Coordinates.Simple("hizmailovich/draft") ); - new CreateLabel(repo, new ListOf<>(label), new ListOf<>(Color.RED)) + new CreateLabel(repo, new ListOf<>(new Label(label, Color.RED))) .exec(); MatcherAssert.assertThat( "Label %s isn't created".formatted(label),