[HUDI-3825] Fixing Column Stats Index updating sequence (#5267)
This commit is contained in:
@@ -22,9 +22,6 @@ import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
||||
@@ -69,18 +66,10 @@ public class TestStringUtils {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStringToSet() {
|
||||
assertEquals(new HashSet<>(), StringUtils.toSet(null));
|
||||
assertEquals(new HashSet<>(), StringUtils.toSet(""));
|
||||
Set<String> expected = new HashSet<>(Arrays.asList("a", "b", "c"));
|
||||
assertEquals(expected, StringUtils.toSet("a,b, c"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStringToList() {
|
||||
assertEquals(new ArrayList<>(), StringUtils.toList(null));
|
||||
assertEquals(new ArrayList<>(), StringUtils.toList(""));
|
||||
List<String> expected = Arrays.asList("a", "b", "c");
|
||||
assertEquals(expected, StringUtils.toList("a,b, c"));
|
||||
public void testSplit() {
|
||||
assertEquals(new ArrayList<>(), StringUtils.split(null, ","));
|
||||
assertEquals(new ArrayList<>(), StringUtils.split("", ","));
|
||||
assertEquals(Arrays.asList("a", "b", "c"), StringUtils.split("a,b, c", ","));
|
||||
assertEquals(Arrays.asList("a", "b", "c"), StringUtils.split("a,b,, c ", ","));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user