Class SharedStringCollector

  • public class SharedStringCollector
    extends 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 Detail

      • SharedStringCollector

        public SharedStringCollector()
    • Method Detail

      • getList

        public static List<String> getList()
        Returns an unmodifiable list of the collected strings.
      • add

        public static void add​(String s)
        Adds a new element to the end of the list.