Add isRecord and new material method tests.
Cleaned up all of the CraftBukkit tests, including moving some tests from MaterialTest to PerMaterialTest. By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
parent
5e25b8cbe8
commit
30e0f5be63
8 changed files with 122 additions and 90 deletions
|
@ -1,6 +1,7 @@
|
|||
package org.bukkit;
|
||||
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.*;
|
||||
import static org.hamcrest.Matchers.*;
|
||||
|
||||
import org.bukkit.craftbukkit.CraftSound;
|
||||
import org.junit.Test;
|
||||
|
@ -11,7 +12,7 @@ public class SoundTest {
|
|||
@Test
|
||||
public void testGetSound() {
|
||||
for (Sound sound : Sound.values()) {
|
||||
assertNotNull(sound.name(), CraftSound.getSound(sound));
|
||||
assertThat(sound.name(), CraftSound.getSound(sound), is(not(nullValue())));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue