liquibase.ui.MockConsoleWrapper Maven / Gradle / Ivy
package liquibase.ui;
import java.util.*;
public class MockConsoleWrapper extends ConsoleUIService.ConsoleWrapper {
final private List responses;
public MockConsoleWrapper(String... responses) {
super(null, false);
this.responses = new ArrayList<>(Arrays.asList(responses));
}
@Override
public boolean supportsInput() {
return true;
}
@Override
public String readLine() {
return responses.remove(0);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy