diff options
author | snowleo <schneeleo@gmail.com> | 2011-10-21 01:36:13 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-10-21 01:36:13 +0200 |
commit | aa922c5b67dc6d9fc5ef865edb9269397a687e13 (patch) | |
tree | 6912ca173e596e91757788825e1ae7c555a07c8d | |
parent | 1a020698d14264f469864062f8c48b8bebf2bc1b (diff) | |
download | Essentials-aa922c5b67dc6d9fc5ef865edb9269397a687e13.tar Essentials-aa922c5b67dc6d9fc5ef865edb9269397a687e13.tar.gz Essentials-aa922c5b67dc6d9fc5ef865edb9269397a687e13.tar.lz Essentials-aa922c5b67dc6d9fc5ef865edb9269397a687e13.tar.xz Essentials-aa922c5b67dc6d9fc5ef865edb9269397a687e13.zip |
Fix Test
-rw-r--r-- | Essentials/test/com/earth2me/essentials/FakeServer.java | 65 |
1 files 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<String, Object> serialize() + { + throw new UnsupportedOperationException("Not supported yet."); + } + }; } @Override |