fix cn.hutool.core.text.StrJoinerTest#joinMultiArrayTest

This commit is contained in:
zeyu cai 2021-10-09 18:40:43 -05:00
parent a81306ef5c
commit 03d40cf4ff

View File

@ -4,6 +4,7 @@ import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.collection.ListUtil; import cn.hutool.core.collection.ListUtil;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
import org.hamcrest.CoreMatchers;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -36,7 +37,7 @@ public class StrJoinerTest {
append.append(new Object[]{ListUtil.of("1", "2"), append.append(new Object[]{ListUtil.of("1", "2"),
CollUtil.newHashSet("3", "4") CollUtil.newHashSet("3", "4")
}); });
Assert.assertEquals("1,2,3,4", append.toString()); Assert.assertThat(append.toString(), CoreMatchers.anyOf(CoreMatchers.is("1,2,3,4"), CoreMatchers.is("1,2,4,3")));
} }
@Test @Test