|
|
@ -19,10 +19,7 @@ package org.apache.dolphinscheduler.common.utils; |
|
|
|
import org.junit.Assert; |
|
|
|
import org.junit.Assert; |
|
|
|
import org.junit.Test; |
|
|
|
import org.junit.Test; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.*; |
|
|
|
import java.util.HashSet; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class CollectionUtilsTest { |
|
|
|
public class CollectionUtilsTest { |
|
|
@ -56,4 +53,10 @@ public class CollectionUtilsTest { |
|
|
|
b.add(4); |
|
|
|
b.add(4); |
|
|
|
Assert.assertArrayEquals(new Integer[]{1,3},CollectionUtils.subtract(a,b).toArray()); |
|
|
|
Assert.assertArrayEquals(new Integer[]{1,3},CollectionUtils.subtract(a,b).toArray()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
|
|
public void stringToMap() { |
|
|
|
|
|
|
|
Map<String, String> a = CollectionUtils.stringToMap("a=b;c=d", ";", ""); |
|
|
|
|
|
|
|
Assert.assertNotNull(a); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|