Class SharedStringCollector
- java.lang.Object
-
- org.eclipse.epsilon.workflow.tasks.eunit.SharedStringCollector
-
public class SharedStringCollector extends java.lang.Object
Test utility class with two static methods which add strings to a synchronized shared list. This is useful to emulate behaviour-based (a la Mockito) testing of EUnit test suites. Even though all methods are static, we keep the constructor public so EUnit can create instances, as we cannot call static methods directly from EOL.
-
-
Constructor Summary
Constructors Constructor Description SharedStringCollector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
add(java.lang.String s)
Adds a new element to the end of the list.static java.util.List<java.lang.String>
getList()
Returns an unmodifiable list of the collected strings.
-