use of io.confluent.ksql.rest.entity.FunctionInfo in project ksql by confluentinc.
the class ConsoleTest method shouldPrintFunctionDescription.
@Test
public void shouldPrintFunctionDescription() {
final KsqlEntityList entityList = new KsqlEntityList(ImmutableList.of(new FunctionDescriptionList("DESCRIBE FUNCTION foo;", "FOO", "Description that is very, very, very, very, very, very, very, very, very, " + "very, very, very, very, very, very, very, very, very, very, very, very long\n" + "and containing new lines\n" + "\tAND TABS\n" + "too!", "Andy", "v1.1.0", "some.jar", ImmutableList.of(new FunctionInfo(ImmutableList.of(new ArgumentInfo("arg1", "INT", "Another really, really, really, really, really, really, really," + "really, really, really, really, really, really, really, really " + " really, really, really, really, really, really, really, long\n" + "description\n" + "\tContaining Tabs\n" + "and stuff", true)), "LONG", "The function description, which too can be really, really, really, " + "really, really, really, really, really, really, really, really, really, " + "really, really, really, really, really, really, really, really, long\n" + "and contains\n\ttabs and stuff")), FunctionType.SCALAR)));
console.printKsqlEntityList(entityList);
final String output = terminal.getOutputString();
Approvals.verify(output, approvalOptions);
}
Aggregations