diff options
author | md_5 <git@md-5.net> | 2016-11-19 14:27:18 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-11-19 14:27:18 +1100 |
commit | 7564d602419f10af5c1b5b1758eb0455250ea169 (patch) | |
tree | a86a09fee1b19eea07dfa8ccf7ba7278657065a6 /src/test | |
parent | 63c13c5e628eaa82fb95c5e21d8cc39f4b49ed42 (diff) | |
download | craftbukkit-7564d602419f10af5c1b5b1758eb0455250ea169.tar craftbukkit-7564d602419f10af5c1b5b1758eb0455250ea169.tar.gz craftbukkit-7564d602419f10af5c1b5b1758eb0455250ea169.tar.lz craftbukkit-7564d602419f10af5c1b5b1758eb0455250ea169.tar.xz craftbukkit-7564d602419f10af5c1b5b1758eb0455250ea169.zip |
Add stopSound for specific sound category & unit test for SoundCategory
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/bukkit/SoundTest.java | 14 |
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())); + } + } } |