From 049a7cc1d09ff056929e39e26ec5c37405ed18ca Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Mon, 30 Jan 2012 21:32:48 +0100 Subject: Deprecation cleanup. --- src/test/java/org/bukkit/AchievementTest.java | 7 ------- src/test/java/org/bukkit/ChatColorTest.java | 6 ------ src/test/java/org/bukkit/NoteTest.java | 7 ------- src/test/java/org/bukkit/StatisticTest.java | 7 ------- .../java/org/bukkit/plugin/messaging/TestPlugin.java | 18 ------------------ 5 files changed, 45 deletions(-) (limited to 'src/test/java/org') diff --git a/src/test/java/org/bukkit/AchievementTest.java b/src/test/java/org/bukkit/AchievementTest.java index ddd46e78..53ac7fa6 100644 --- a/src/test/java/org/bukkit/AchievementTest.java +++ b/src/test/java/org/bukkit/AchievementTest.java @@ -7,13 +7,6 @@ import org.junit.Test; public class AchievementTest { - @Test - public void getByDeprecated() { - for (Achievement achievement : Achievement.values()) { - assertThat(Achievement.getAchievement(achievement.getId()), is(achievement)); - } - } - @Test public void getById() { for (Achievement achievement : Achievement.values()) { diff --git a/src/test/java/org/bukkit/ChatColorTest.java b/src/test/java/org/bukkit/ChatColorTest.java index 7ccff623..d721c4f1 100644 --- a/src/test/java/org/bukkit/ChatColorTest.java +++ b/src/test/java/org/bukkit/ChatColorTest.java @@ -7,12 +7,6 @@ import static org.junit.Assert.assertThat; import org.junit.Test; public class ChatColorTest { - @Test - public void getByDeprecated() { - for (ChatColor color : ChatColor.values()) { - assertThat(ChatColor.getByCode(color.getCode()), is(color)); - } - } @Test public void getByChar() { diff --git a/src/test/java/org/bukkit/NoteTest.java b/src/test/java/org/bukkit/NoteTest.java index 34284b96..b76b0b6b 100644 --- a/src/test/java/org/bukkit/NoteTest.java +++ b/src/test/java/org/bukkit/NoteTest.java @@ -15,13 +15,6 @@ import org.junit.Test; import com.google.common.collect.Lists; public class NoteTest { - @Test - public void getToneByDeprecated() { - for (Note.Tone tone : Note.Tone.values()) { - assertThat(Note.Tone.getToneById(tone.getId()), is(tone)); - } - } - @Test public void getToneByData() { for (Note.Tone tone : Note.Tone.values()) { diff --git a/src/test/java/org/bukkit/StatisticTest.java b/src/test/java/org/bukkit/StatisticTest.java index 1c758fc3..5fc763f0 100644 --- a/src/test/java/org/bukkit/StatisticTest.java +++ b/src/test/java/org/bukkit/StatisticTest.java @@ -6,13 +6,6 @@ import static org.junit.Assert.assertThat; import org.junit.Test; public class StatisticTest { - @Test - public void getDeprecated() { - for (Statistic statistic : Statistic.values()) { - assertThat(Statistic.getStatistic(statistic.getId()), is(statistic)); - } - } - @Test public void getById() { for (Statistic statistic : Statistic.values()) { diff --git a/src/test/java/org/bukkit/plugin/messaging/TestPlugin.java b/src/test/java/org/bukkit/plugin/messaging/TestPlugin.java index d42a75b8..a03581c3 100644 --- a/src/test/java/org/bukkit/plugin/messaging/TestPlugin.java +++ b/src/test/java/org/bukkit/plugin/messaging/TestPlugin.java @@ -7,13 +7,11 @@ import org.bukkit.Server; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.configuration.file.FileConfiguration; -import org.bukkit.event.Event.Type; import org.bukkit.generator.ChunkGenerator; import org.bukkit.plugin.Plugin; import org.bukkit.plugin.PluginDescriptionFile; import org.bukkit.plugin.PluginLoader; import org.bukkit.plugin.PluginLogger; -import org.bukkit.util.config.Configuration; public class TestPlugin implements Plugin { private boolean enabled = true; @@ -30,10 +28,6 @@ public class TestPlugin implements Plugin { throw new UnsupportedOperationException("Not supported."); } - public Configuration getConfiguration() { - throw new UnsupportedOperationException("Not supported."); - } - public FileConfiguration getConfig() { throw new UnsupportedOperationException("Not supported."); } @@ -102,18 +96,6 @@ public class TestPlugin implements Plugin { throw new UnsupportedOperationException("Not supported."); } - public long getTiming(Type type) { - throw new UnsupportedOperationException("Not supported."); - } - - public void incTiming(Type type, long delta) { - throw new UnsupportedOperationException("Not supported."); - } - - public void resetTimings() { - throw new UnsupportedOperationException("Not supported."); - } - public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { throw new UnsupportedOperationException("Not supported."); } -- cgit v1.2.3