Skip to content

Commit ed89b23

Browse files
committed
Update naming in tests
1 parent fd2b8d0 commit ed89b23

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/test/java/io/github/thebusybiscuit/slimefun4/api/profiles/TestGuideHistory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void testItemGroup() throws InterruptedException {
120120
PlayerProfile profile = TestUtilities.awaitProfile(player);
121121
GuideHistory history = profile.getGuideHistory();
122122

123-
ItemGroup itemGroup = new ItemGroup(new NamespacedKey(plugin, "category_guide_history"), new CustomItemStack(Material.BEDROCK, "&4Can't touch this"));
123+
ItemGroup itemGroup = new ItemGroup(new NamespacedKey(plugin, "itemgroup_guide_history"), new CustomItemStack(Material.BEDROCK, "&4Can't touch this"));
124124

125125
Assertions.assertThrows(IllegalArgumentException.class, () -> history.add((ItemGroup) null, 1));
126126
Assertions.assertThrows(IllegalArgumentException.class, () -> history.add(itemGroup, -20));

src/test/java/io/github/thebusybiscuit/slimefun4/core/guide/TestGuideOpening.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void testOpenMainMenu() throws InterruptedException {
6262
@Test
6363
@DisplayName("Test if an ItemGroup can be opened from the History")
6464
void testOpenItemGroup() throws InterruptedException {
65-
ItemGroup itemGroup = new ItemGroup(new NamespacedKey(plugin, "history_category"), new CustomItemStack(Material.BLUE_TERRACOTTA, "&9Testy test"));
65+
ItemGroup itemGroup = new ItemGroup(new NamespacedKey(plugin, "history_itemgroup"), new CustomItemStack(Material.BLUE_TERRACOTTA, "&9Testy test"));
6666

6767
SlimefunGuideImplementation guide = Mockito.mock(SlimefunGuideImplementation.class);
6868
PlayerProfile profile = prepare(guide, history -> history.add(itemGroup, 1));

src/test/java/io/github/thebusybiscuit/slimefun4/implementation/registration/TestItemGroups.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ void testLockedItemGroupsUnlocking() throws InterruptedException {
170170
// No Items, so it should be unlocked
171171
Assertions.assertTrue(locked.hasUnlocked(player, profile));
172172

173-
SlimefunItem item = new SlimefunItem(group, new SlimefunItemStack("LOCKED_CATEGORY_TEST", new CustomItemStack(Material.LANTERN, "&6Test Item for locked categories")), RecipeType.NULL, new ItemStack[9]);
173+
SlimefunItem item = new SlimefunItem(group, new SlimefunItemStack("LOCKED_ITEMGROUP_TEST", new CustomItemStack(Material.LANTERN, "&6Test Item for locked categories")), RecipeType.NULL, new ItemStack[9]);
174174
item.register(plugin);
175175
item.load();
176176

src/test/java/io/github/thebusybiscuit/slimefun4/implementation/registration/TestSlimefunItemRegistration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void testIdConflict() {
8888
@Test
8989
@DisplayName("Test ItemGroup registration when registering an item")
9090
void testItemGroupRegistration() {
91-
SlimefunItem item = TestUtilities.mockSlimefunItem(plugin, "CATEGORY_TEST", new CustomItemStack(Material.DIAMOND, "&cTest"));
91+
SlimefunItem item = TestUtilities.mockSlimefunItem(plugin, "ITEMGROUP_TEST", new CustomItemStack(Material.DIAMOND, "&cTest"));
9292
item.register(plugin);
9393
item.load();
9494

src/test/java/io/github/thebusybiscuit/slimefun4/utils/TestSoulboundItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void testDoubleCalls() {
8181
@Test
8282
@DisplayName("Test that soulbound Slimefun Items are soulbound")
8383
void testSoulboundSlimefunItem() {
84-
SlimefunItem item = new SoulboundMock(new ItemGroup(new NamespacedKey(plugin, "soulbound_category"), new CustomItemStack(Material.REDSTONE, "&4Walshrus forever")));
84+
SlimefunItem item = new SoulboundMock(new ItemGroup(new NamespacedKey(plugin, "soulbound_itemgroup"), new CustomItemStack(Material.REDSTONE, "&4Walshrus forever")));
8585
item.register(plugin);
8686

8787
Assertions.assertTrue(SlimefunUtils.isSoulbound(item.getItem()));

0 commit comments

Comments
 (0)