修改了引入的overflow依赖,目前可以正常进行测试
This commit is contained in:
@@ -13,9 +13,7 @@ dependencies{
|
||||
implementation ("junit:junit:4.13.2")
|
||||
implementation ("org.apache.logging.log4j:log4j-core:2.23.1")
|
||||
implementation ("org.apache.logging.log4j:log4j-api:2.23.1")
|
||||
implementation("top.mrxiaom.mirai:overflow-core:0.9.9.515-f8d867b-SNAPSHOT")
|
||||
|
||||
|
||||
implementation("top.mrxiaom.mirai:overflow-core-all:1.0.0")
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
||||
@@ -4,12 +4,21 @@ import net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader;
|
||||
import org.junit.Test;
|
||||
import plugin.App;
|
||||
|
||||
import java.nio.file.Path;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class MyTest {
|
||||
@Test
|
||||
public void mainTest() {
|
||||
Scanner scanner = new Scanner(System.in);
|
||||
MiraiConsoleTerminalLoader.INSTANCE.startAsDaemon(new MiraiConsoleImplementationTerminal());
|
||||
PluginManager.INSTANCE.loadPlugin(App.INSTANCE);
|
||||
PluginManager.INSTANCE.enablePlugin(App.INSTANCE);
|
||||
while (true);
|
||||
String input = scanner.nextLine();
|
||||
while (true) {
|
||||
if (input.equals("exit")) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user