mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
@@ -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()) {
|
||||
|
@@ -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() {
|
||||
|
@@ -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()) {
|
||||
|
@@ -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()) {
|
||||
|
@@ -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.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user