geforkt von Mirrors/Paper
03f12497b2
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.
18 Zeilen
336 B
Java
18 Zeilen
336 B
Java
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));
|
|
}
|
|
}
|
|
}
|