summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/bukkit/SoundTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/bukkit/SoundTest.java')
-rw-r--r--src/test/java/org/bukkit/SoundTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/java/org/bukkit/SoundTest.java b/src/test/java/org/bukkit/SoundTest.java
index ca45067f..c9865fa0 100644
--- a/src/test/java/org/bukkit/SoundTest.java
+++ b/src/test/java/org/bukkit/SoundTest.java
@@ -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())));
}
}
}