Skip to content

Commit

Permalink
Updates tests.
Browse files Browse the repository at this point in the history
ChallengesGUITest is removed because GUI is removed.
  • Loading branch information
BONNe committed Sep 18, 2021
1 parent 09e25dc commit 3a3af0e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 409 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -741,13 +741,13 @@ public void testContainsChallenge() {
}

/**
* Test method for {@link ChallengesManager#createChallenge(java.lang.String, world.bentobox.challenges.database.object.Challenge.ChallengeType, world.bentobox.challenges.database.object.requirements.Requirements)}.
* Test method for {@link ChallengesManager#createChallenge(java.lang.String, java.lang.String, world.bentobox.challenges.database.object.Challenge.ChallengeType, world.bentobox.challenges.database.object.requirements.Requirements)}.
*/
@Test
public void testCreateChallenge() {
@Nullable
Challenge ch = cm.createChallenge("newChal", ChallengeType.ISLAND, new IslandRequirements());
assertEquals(ChallengeType.ISLAND, ch.getChallengeType());
Challenge ch = cm.createChallenge("newChal", "newChal", ChallengeType.ISLAND_TYPE, new IslandRequirements());
assertEquals(ChallengeType.ISLAND_TYPE, ch.getChallengeType());
assertEquals("newChal", ch.getUniqueId());
}

Expand Down Expand Up @@ -833,12 +833,12 @@ public void testRemoveChallengeFromLevel() throws InterruptedException {
}

/**
* Test method for {@link ChallengesManager#createLevel(java.lang.String, org.bukkit.World)}.
* Test method for {@link ChallengesManager#createLevel(java.lang.String, java.lang.String, org.bukkit.World)}.
*/
@Test
public void testCreateLevel() {
@Nullable
ChallengeLevel cl = cm.createLevel("Expert", world);
ChallengeLevel cl = cm.createLevel("Expert", "Expert", world);
assertEquals("Expert", cl.getUniqueId());
assertEquals(world.getName(), cl.getWorld());
}
Expand Down

0 comments on commit 3a3af0e

Please sign in to comment.