Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 04:50:06 +01:00
28 Zeilen
684 B
Java
28 Zeilen
684 B
Java
package org.bukkit;
|
|
|
|
import net.minecraft.server.MinecraftKey;
|
|
import net.minecraft.server.SoundEffect;
|
|
|
|
import static org.junit.Assert.*;
|
|
import static org.hamcrest.Matchers.*;
|
|
|
|
import org.bukkit.craftbukkit.CraftSound;
|
|
import org.junit.Test;
|
|
|
|
public class SoundTest {
|
|
|
|
@Test
|
|
public void testGetSound() {
|
|
for (Sound sound : Sound.values()) {
|
|
assertThat(sound.name(), CraftSound.getSound(sound), is(not(nullValue())));
|
|
}
|
|
}
|
|
|
|
@Test
|
|
public void testReverse() {
|
|
for (MinecraftKey effect : SoundEffect.a.keySet()) {
|
|
assertNotNull(effect + "", Sound.valueOf(effect.a().replace('.', '_').toUpperCase()));
|
|
}
|
|
}
|
|
}
|