summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2012-01-30 21:32:48 +0100
committerEvilSeph <evilseph@gmail.com>2012-02-18 13:05:58 -0500
commit049a7cc1d09ff056929e39e26ec5c37405ed18ca (patch)
treefa3e6e16f87f023bc5837ae2636f2256753ff850 /src/test
parent54004d7d4721a8234127967783c78fb73f991494 (diff)
downloadbukkit-049a7cc1d09ff056929e39e26ec5c37405ed18ca.tar
bukkit-049a7cc1d09ff056929e39e26ec5c37405ed18ca.tar.gz
bukkit-049a7cc1d09ff056929e39e26ec5c37405ed18ca.tar.lz
bukkit-049a7cc1d09ff056929e39e26ec5c37405ed18ca.tar.xz
bukkit-049a7cc1d09ff056929e39e26ec5c37405ed18ca.zip
Deprecation cleanup.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/bukkit/AchievementTest.java7
-rw-r--r--src/test/java/org/bukkit/ChatColorTest.java6
-rw-r--r--src/test/java/org/bukkit/NoteTest.java7
-rw-r--r--src/test/java/org/bukkit/StatisticTest.java7
-rw-r--r--src/test/java/org/bukkit/plugin/messaging/TestPlugin.java18
5 files changed, 0 insertions, 45 deletions
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
@@ -8,13 +8,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()) {
assertThat(Achievement.getById(achievement.getId()), is(achievement));
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
@@ -16,13 +16,6 @@ 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()) {
assertThat(Note.Tone.getById(tone.getId()), is(tone));
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
@@ -7,13 +7,6 @@ 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()) {
assertThat(Statistic.getById(statistic.getId()), is(statistic));
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.");
}