Skip to content

Commit

Permalink
Renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
dukris committed Feb 5, 2024
1 parent 15a835a commit c8fbdc8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import com.jcabi.github.RtGithub;
import git.tracehub.pmo.platforms.Label;
import git.tracehub.pmo.platforms.RepoPath;
import git.tracehub.pmo.platforms.github.CreateLabel;
import git.tracehub.pmo.platforms.github.CreateLabels;
import git.tracehub.pmo.platforms.github.InviteCollaborator;
import git.tracehub.pmo.project.Project;
import git.tracehub.pmo.project.Projects;
Expand Down Expand Up @@ -125,7 +125,7 @@ public Project employ(
repo,
"tracehubgit"
).exec();
new CreateLabel(
new CreateLabels(
repo,
new ListOf<>(
new Label("new", Color.PINK)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
import lombok.RequiredArgsConstructor;

/**
* Create label in Github.
* Create labels in Github.
*
* @checkstyle IllegalTokenCheck (40 lines)
* @since 0.0.0
*/
@RequiredArgsConstructor
public final class CreateLabel implements Action {
public final class CreateLabels implements Action {

/**
* Github repository.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@
import org.junit.jupiter.api.Test;

/**
* Test suite for {@link CreateLabel}.
* Test suite for {@link CreateLabels}.
*
* @since 0.0.0
*/
final class CreateLabelTest {
final class CreateLabelsTest {

@Test
void createsLabelSuccessfully() throws IOException {
final String label = "new";
final Repo repo = new MkGithub("user").randomRepo();
new CreateLabel(repo, new ListOf<>(new Label(label, Color.BLUE)))
new CreateLabels(repo, new ListOf<>(new Label(label, Color.BLUE)))
.exec();
MatcherAssert.assertThat(
"Label %s isn't created".formatted(label),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@
import com.jcabi.github.Repo;
import com.jcabi.github.RtGithub;
import git.tracehub.pmo.platforms.Label;
import git.tracehub.pmo.platforms.github.CreateLabel;
import git.tracehub.pmo.platforms.github.CreateLabels;
import java.awt.Color;
import org.cactoos.list.ListOf;
import org.hamcrest.MatcherAssert;
import org.hamcrest.core.IsEqual;
import org.junit.jupiter.api.Test;

/**
* Integration tests for {@link CreateLabel}.
* Integration tests for {@link CreateLabels}.
*
* @since 0.0.0
*/
final class CreateLabelIT {
final class CreateLabelsIT {

@Test
void createsLabelSuccessfully() {
Expand All @@ -44,7 +44,7 @@ void createsLabelSuccessfully() {
.get(
new Coordinates.Simple("hizmailovich/draft")
);
new CreateLabel(repo, new ListOf<>(new Label(label, Color.RED)))
new CreateLabels(repo, new ListOf<>(new Label(label, Color.RED)))
.exec();
MatcherAssert.assertThat(
"Label %s isn't created".formatted(label),
Expand Down

0 comments on commit c8fbdc8

Please sign in to comment.