Code example for Joiner

Methods: join

0
        if (actual == null || expected == null) {
            fail("Collections not equal: expected: " + expected + " and actual: " + actual);
        } 
 
        if (!HashMultiset.create(actual).equals(HashMultiset.create(expected))) {
            fail("Collections differ:\n    expected \n        " + ERROR_JOINER.join(expected) + "\n    actual:\n        " + ERROR_JOINER.join(actual));
        } 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java