From aa922c5b67dc6d9fc5ef865edb9269397a687e13 Mon Sep 17 00:00:00 2001 From: snowleo Date: Fri, 21 Oct 2011 01:36:13 +0200 Subject: Fix Test --- .../test/com/earth2me/essentials/FakeServer.java | 65 +++++++++++++++++++++- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/Essentials/test/com/earth2me/essentials/FakeServer.java b/Essentials/test/com/earth2me/essentials/FakeServer.java index 2344c4513..7f3fb9bf2 100644 --- a/Essentials/test/com/earth2me/essentials/FakeServer.java +++ b/Essentials/test/com/earth2me/essentials/FakeServer.java @@ -467,9 +467,70 @@ public class FakeServer implements Server } @Override - public org.bukkit.OfflinePlayer getOfflinePlayer(String string) + public org.bukkit.OfflinePlayer getOfflinePlayer(final String string) { - return null; + return new org.bukkit.OfflinePlayer() { + + @Override + public boolean isOnline() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public String getName() + { + return string; + } + + @Override + public boolean isBanned() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void setBanned(boolean bln) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public boolean isWhitelisted() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void setWhitelisted(boolean bln) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public Player getPlayer() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public boolean isOp() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void setOp(boolean bln) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public Map serialize() + { + throw new UnsupportedOperationException("Not supported yet."); + } + }; } @Override -- cgit v1.2.3