Merge pull request #1883 from ZeyuCai/v5-dev

fix cn.hutool.core.text.StrJoinerTest#joinMultiArrayTest
This commit is contained in:
Golden Looly 2021-10-10 14:05:26 +08:00 committed by GitHub
commit 8b3789e393
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.collection.ListUtil;
import org.junit.Assert;
import org.junit.Test;
import org.hamcrest.CoreMatchers;
import java.util.ArrayList;
import java.util.List;
@ -36,7 +37,7 @@ public class StrJoinerTest {
append.append(new Object[]{ListUtil.of("1", "2"),
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