summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-10-21 01:36:13 +0200
committersnowleo <schneeleo@gmail.com>2011-10-21 01:36:13 +0200
commit1b4b78d6e63ec54a5fceb604dffd1311b83bef8b (patch)
tree3e4a614467defa109f60da10b8048a936ea50d45
parent86f29b28c19a63f1375fdb69bfdb62c98651d2dd (diff)
downloadEssentials-1b4b78d6e63ec54a5fceb604dffd1311b83bef8b.tar
Essentials-1b4b78d6e63ec54a5fceb604dffd1311b83bef8b.tar.gz
Essentials-1b4b78d6e63ec54a5fceb604dffd1311b83bef8b.tar.lz
Essentials-1b4b78d6e63ec54a5fceb604dffd1311b83bef8b.tar.xz
Essentials-1b4b78d6e63ec54a5fceb604dffd1311b83bef8b.zip
Fix Test
-rw-r--r--Essentials/test/com/earth2me/essentials/FakeServer.java65
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