public class StringDecorator extends Object
This class provides a method to pass data from the test bolts and spouts to the test method, via the worker log. Test components can use decorate(java.lang.String, java.lang.String) to create a string containing a unique prefix. Such prefixed log lines can be retrieved from the worker logs, and recognized via isDecorated(java.lang.String, java.lang.String).
| Constructor and Description |
|---|
StringDecorator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decorate(String componentId,
String decorate) |
static boolean |
isDecorated(String componentId,
String str) |
static String[] |
split2(String decoratedString) |
Copyright © 2021 The Apache Software Foundation. All rights reserved.