Deprecation cleanup.

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot
2012-01-30 21:32:48 +01:00
parent fe4de0bb01
commit 75fd934339
165 changed files with 409 additions and 4280 deletions

View File

@@ -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()) {

View File

@@ -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() {

View File

@@ -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()) {

View File

@@ -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()) {

View File

@@ -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.");
}