Begin implementation of CheckStyle style checking
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -15,13 +15,13 @@ public class FakeConversable implements Conversable {
|
||||
public Conversation begunConversation;
|
||||
public Conversation abandonedConverstion;
|
||||
public ConversationAbandonedEvent abandonedConversationEvent;
|
||||
|
||||
|
||||
public boolean isConversing() {
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
public void acceptConversationInput(String input) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
public boolean beginConversation(Conversation conversation) {
|
||||
@@ -40,66 +40,66 @@ public class FakeConversable implements Conversable {
|
||||
}
|
||||
|
||||
public void sendRawMessage(String message) {
|
||||
lastSentMessage = message;
|
||||
lastSentMessage = message;
|
||||
}
|
||||
|
||||
public Server getServer() {
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean isPermissionSet(String name) {
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isPermissionSet(Permission perm) {
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean hasPermission(String name) {
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean hasPermission(Permission perm) {
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
public PermissionAttachment addAttachment(Plugin plugin, String name, boolean value) {
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
public PermissionAttachment addAttachment(Plugin plugin) {
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
public PermissionAttachment addAttachment(Plugin plugin, String name, boolean value, int ticks) {
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
public PermissionAttachment addAttachment(Plugin plugin, int ticks) {
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
public void removeAttachment(PermissionAttachment attachment) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void recalculatePermissions() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
public Set<PermissionAttachmentInfo> getEffectivePermissions() {
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean isOp() {
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setOp(boolean value) {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ public class ValidatingPromptTest {
|
||||
prompt.acceptInput(null, "no");
|
||||
assertFalse(prompt.result);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void TestFixedSetPrompt() {
|
||||
TestFixedSetPrompt prompt = new TestFixedSetPrompt("foo", "bar");
|
||||
@@ -27,7 +27,7 @@ public class ValidatingPromptTest {
|
||||
prompt.acceptInput(null, "foo");
|
||||
assertEquals("foo", prompt.result);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void TestNumericPrompt() {
|
||||
TestNumericPrompt prompt = new TestNumericPrompt();
|
||||
@@ -36,7 +36,7 @@ public class ValidatingPromptTest {
|
||||
prompt.acceptInput(null, "1010220");
|
||||
assertEquals(1010220, prompt.result);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void TestRegexPrompt() {
|
||||
TestRegexPrompt prompt = new TestRegexPrompt("a.c");
|
||||
@@ -48,10 +48,10 @@ public class ValidatingPromptTest {
|
||||
}
|
||||
|
||||
//TODO: TestPlayerNamePrompt()
|
||||
|
||||
|
||||
private class TestBooleanPrompt extends BooleanPrompt {
|
||||
public boolean result;
|
||||
|
||||
|
||||
@Override
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, boolean input) {
|
||||
result = input;
|
||||
@@ -62,7 +62,7 @@ public class ValidatingPromptTest {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private class TestFixedSetPrompt extends FixedSetPrompt {
|
||||
public String result;
|
||||
|
||||
@@ -80,10 +80,10 @@ public class ValidatingPromptTest {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private class TestNumericPrompt extends NumericPrompt {
|
||||
public Number result;
|
||||
|
||||
|
||||
@Override
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, Number input) {
|
||||
result = input;
|
||||
|
||||
Reference in New Issue
Block a user