From 0f4c206f9b256c441a142b0be68a4a76421c2911 Mon Sep 17 00:00:00 2001 From: Wesley Wolfe Date: Fri, 14 Dec 2012 02:02:02 -0600 Subject: Add isRecord and new material method tests. Cleaned up all of the CraftBukkit tests, including moving some tests from MaterialTest to PerMaterialTest. --- src/test/java/org/bukkit/SoundTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/test/java/org/bukkit/SoundTest.java') 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()))); } } } -- cgit v1.2.3