Skip to content

Commit

Permalink
add test for set parkour
Browse files Browse the repository at this point in the history
  • Loading branch information
456dev committed Jul 30, 2023
1 parent f87ae67 commit 6bf612c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/test/java/world/bentobox/parkour/SettingsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,18 @@ public void testSetHiddenFlags() {
}

/**
* Test method for {@link world.bentobox.aoneblock.Settings#setVisitorBannedCommands(java.util.List)}.
* Test method for {@link Settings#setParkourAllowedCommands(java.util.List)}.
*/
@Test
public void testSetParkourAllowedCommands() {
s.setParkourAllowedCommands(List.of("allowed"));
assertTrue(s.getVisitorBannedCommands().contains("allowed"));
assertFalse(s.getVisitorBannedCommands().contains("not-allowed"));
}


/**
* Test method for {@link Settings#setVisitorBannedCommands(java.util.List)}.
*/
@Test
public void testSetVisitorBannedCommands() {
Expand Down

0 comments on commit 6bf612c

Please sign in to comment.