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),