[HUDI-3730] Improve meta sync class design and hierarchies (#5854)
* [HUDI-3730] Improve meta sync class design and hierarchies (#5754) * Implements class design proposed in RFC-55 Co-authored-by: jian.feng <fengjian428@gmial.com> Co-authored-by: jian.feng <jian.feng@shopee.com>
This commit is contained in:
@@ -23,6 +23,7 @@ import org.junit.jupiter.api.Test;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotEquals;
|
||||
@@ -45,6 +46,14 @@ public class TestStringUtils {
|
||||
assertNotEquals(null, StringUtils.join(STRINGS));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStringJoinWithJavaImpl() {
|
||||
assertNull(StringUtils.join(",", null));
|
||||
assertEquals("", String.join(",", Collections.singletonList("")));
|
||||
assertEquals(",", String.join(",", Arrays.asList("", "")));
|
||||
assertEquals("a,", String.join(",", Arrays.asList("a", "")));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStringNullToEmpty() {
|
||||
String str = "This is a test";
|
||||
|
||||
Reference in New Issue
Block a user