diff options
author | Wesley Wolfe <weswolf@aol.com> | 2012-09-26 16:34:06 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-09-26 19:02:05 -0400 |
commit | 03f12497b2c6f21c9c7f766dc7f85667cfb432b6 (patch) | |
tree | 70e7524bfe4a3571b5aad3921b3da66346c1ba51 /src/test | |
parent | 74b3be57b77ff3bee30b8fb0fd993c325d7f9207 (diff) | |
download | craftbukkit-03f12497b2c6f21c9c7f766dc7f85667cfb432b6.tar craftbukkit-03f12497b2c6f21c9c7f766dc7f85667cfb432b6.tar.gz craftbukkit-03f12497b2c6f21c9c7f766dc7f85667cfb432b6.tar.lz craftbukkit-03f12497b2c6f21c9c7f766dc7f85667cfb432b6.tar.xz craftbukkit-03f12497b2c6f21c9c7f766dc7f85667cfb432b6.zip |
Map org.bukkit.Sound to String values for sending to client.
This change was done to remove the internal sound names from the API.
Along with moving the internal names into CraftBukkit, a unit test was
added for any new sounds added in the API to assure they have a non-null
mapping.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/bukkit/SoundTest.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/java/org/bukkit/SoundTest.java b/src/test/java/org/bukkit/SoundTest.java new file mode 100644 index 00000000..ca45067f --- /dev/null +++ b/src/test/java/org/bukkit/SoundTest.java @@ -0,0 +1,17 @@ +package org.bukkit; + +import static org.junit.Assert.assertNotNull; + +import org.bukkit.craftbukkit.CraftSound; +import org.junit.Test; + + +public class SoundTest { + + @Test + public void testGetSound() { + for (Sound sound : Sound.values()) { + assertNotNull(sound.name(), CraftSound.getSound(sound)); + } + } +} |