mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-27 19:20:42 -06:00
refactor the virtdata docs facility
This commit is contained in:
parent
000944b9fb
commit
7a75408423
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user