use of org.apache.karaf.shell.impl.console.parsing.KarafParser in project karaf by apache.
the class ActionMaskingCallbackTest method setUp.
@Before
public void setUp() {
ThreadIO tio = new ThreadIOImpl();
CommandProcessor cp = new CommandProcessorImpl(tio);
SessionFactory sf = new SessionFactoryImpl(tio);
InputStream is = new ByteArrayInputStream(new byte[0]);
PrintStream os = new PrintStream(new ByteArrayOutputStream());
Session session = new HeadlessSessionImpl(sf, cp, is, os, os);
parser = new KarafParser(session);
ActionCommand cmd = new ActionCommand(null, UserAddCommand.class);
cb = ActionMaskingCallback.build(cmd);
}
Aggregations