Skip to content

Commit

Permalink
Do not use JLine in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
3arthqu4ke committed Aug 9, 2024
1 parent b2cf0a8 commit 1ea37cc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.earth.headlessmc.testplugin;

import lombok.CustomLog;
import me.earth.headlessmc.api.command.line.DefaultCommandLineProvider;
import me.earth.headlessmc.launcher.Launcher;
import me.earth.headlessmc.launcher.plugin.HeadlessMcPlugin;
import org.junit.platform.commons.util.ExceptionUtils;
Expand Down Expand Up @@ -48,6 +49,7 @@ public void init(Launcher launcher) {
// launcher.getInAndOutProvider().setErr(() -> out);
TestInputStream in = new TestInputStream();
launcher.getCommandLine().getInAndOutProvider().setIn(() -> in);
launcher.getCommandLine().setCommandLineProvider(new DefaultCommandLineProvider(launcher.getCommandLine().getInAndOutProvider()));

LaunchTest.build(launcher.getJavaService().getCurrent(), launcher, in);
}
Expand Down

0 comments on commit 1ea37cc

Please sign in to comment.