Skip to content

Commit

Permalink
Tests fixed according to new params
Browse files Browse the repository at this point in the history
  • Loading branch information
dukris committed Feb 5, 2024
1 parent 791efb7 commit 15a835a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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),
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/it/platforms/github/CreateLabelIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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),
Expand Down

0 comments on commit 15a835a

Please sign in to comment.