summaryrefslogtreecommitdiffstats
path: root/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/bukkit/SoundTest.java14
1 files changed, 14 insertions, 0 deletions
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()));
+ }
+ }
}