Testing Components
Create the component
MyComponent component = new MyComponent();Configure your component
// some example properties
component.setRate(20.3);
component.setLabel("label");Optionally "start" your component
SdkTestUtils.startTransformer(component);Create a sample document to use in your test
IngestDocument doc = new IngestDocument("doc1");
doc.setField("text", "some text");
doc.setField("cost", 2800.23);Process the document with your component
Assert conditions on the document
Last updated
Was this helpful?