Skip to content

Commit

Permalink
Fix stupid test
Browse files Browse the repository at this point in the history
  • Loading branch information
fynntimes committed Apr 16, 2017
1 parent 8ed8cfb commit 3fd704c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public TestPlatform(File pluginDirectory, boolean suppressOutput) {
}

@Override public Scheduler getScheduler() {
return null;
return new TestScheduler();
}

@Override public GUI createGUI(String title, int numRows) {
Expand Down
32 changes: 32 additions & 0 deletions prison-core/src/test/java/tech/mcprison/prison/TestScheduler.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package tech.mcprison.prison;

import tech.mcprison.prison.internal.Scheduler;

/**
* @author Faizaan A. Datoo
*/
public class TestScheduler implements Scheduler {
@Override public int runTaskLater(Runnable run, long delay) {
return 0;
}

@Override public int runTaskLaterAsync(Runnable run, long delay) {
return 0;
}

@Override public int runTaskTimer(Runnable run, long delay, long interval) {
return 0;
}

@Override public int runTaskTimerAsync(Runnable run, long delay, long interval) {
return 0;
}

@Override public void cancelTask(int taskId) {

}

@Override public void cancelAll() {

}
}

0 comments on commit 3fd704c

Please sign in to comment.