From 7564d602419f10af5c1b5b1758eb0455250ea169 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 19 Nov 2016 14:27:18 +1100 Subject: Add stopSound for specific sound category & unit test for SoundCategory --- src/test/java/org/bukkit/SoundTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/test') diff --git a/src/test/java/org/bukkit/SoundTest.java b/src/test/java/org/bukkit/SoundTest.java index 8bb093da..ea1d0c84 100644 --- a/src/test/java/org/bukkit/SoundTest.java +++ b/src/test/java/org/bukkit/SoundTest.java @@ -24,4 +24,18 @@ public class SoundTest { assertNotNull(effect + "", Sound.valueOf(effect.a().replace('.', '_').toUpperCase(java.util.Locale.ENGLISH))); } } + + @Test + public void testCategory() { + for (SoundCategory category : SoundCategory.values()) { + assertNotNull(category + "", net.minecraft.server.SoundCategory.valueOf(category.name())); + } + } + + @Test + public void testCategoryReverse() { + for (net.minecraft.server.SoundCategory category : net.minecraft.server.SoundCategory.values()) { + assertNotNull(category + "", SoundCategory.valueOf(category.name())); + } + } } -- cgit v1.2.3