refactor the virtdata docs facility

This commit is contained in:
Jonathan Shook 2020-03-28 01:51:48 -05:00
parent 000944b9fb
commit 7a75408423

View File

@ -0,0 +1,25 @@
package io.nosqlbench.virtdata.userlibs.apps.docsapp;
import io.nosqlbench.virtdata.processors.ExampleDocData;
import io.nosqlbench.virtdata.userlibs.apps.docsapp.fdocs.ExampleDocFunc1;
import io.nosqlbench.virtdata.userlibs.apps.docsapp.fdocs.ExampleDocFunc2;
import io.nosqlbench.virtdata.userlibs.apps.docsapp.fdocs.FDocFunc;
import io.nosqlbench.virtdata.userlibs.apps.docsapp.fdocs.FDocFuncs;
import org.testng.annotations.Test;
public class FDocFuncsTest {
@Test
public void testMarkdownFormat() {
ExampleDocFunc1 exampleDocData1 = new ExampleDocFunc1();
ExampleDocFunc2 exampleDocData2 = new ExampleDocFunc2();
FDocFuncs funcs = new FDocFuncs(exampleDocData1.getClassName());
funcs.addFunctionDoc(new FDocFunc(exampleDocData1));
funcs.addFunctionDoc(new FDocFunc(exampleDocData2));
String out = funcs.asMarkdown();
System.out.print(out);
}
}