BAEL-2193 - Merge 2 java.util.Properties object
This commit is contained in:
parent
1da2629562
commit
5930d0d363
@ -14,21 +14,21 @@ import org.junit.Test;
|
|||||||
public class MergePropertiesUnitTest {
|
public class MergePropertiesUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenTwoProperties_whenMergedUsingIteration_thenAllPropertiesInResult() throws Exception {
|
public void givenTwoProperties_whenMergedUsingIteration_thenAllPropertiesInResult() {
|
||||||
Properties globalProperties = mergePropertiesByIteratingKeySet(propertiesA(), propertiesB());
|
Properties globalProperties = mergePropertiesByIteratingKeySet(propertiesA(), propertiesB());
|
||||||
|
|
||||||
testMergedProperties(globalProperties);
|
testMergedProperties(globalProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenTwoProperties_whenMergedUsingPutAll_thenAllPropertiesInResult() throws Exception {
|
public void givenTwoProperties_whenMergedUsingPutAll_thenAllPropertiesInResult() {
|
||||||
Properties globalProperties = mergePropertiesByUsingPutAll(propertiesA(), propertiesB());
|
Properties globalProperties = mergePropertiesByUsingPutAll(propertiesA(), propertiesB());
|
||||||
|
|
||||||
testMergedProperties(globalProperties);
|
testMergedProperties(globalProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenTwoProperties_whenMergedUsingStreamAPI_thenAllPropertiesInResult() throws Exception {
|
public void givenTwoProperties_whenMergedUsingStreamAPI_thenAllPropertiesInResult() {
|
||||||
Properties globalProperties = mergePropertiesByUsingStreamApi(propertiesB(), propertiesA());
|
Properties globalProperties = mergePropertiesByUsingStreamApi(propertiesB(), propertiesA());
|
||||||
|
|
||||||
testMergedProperties(globalProperties);
|
testMergedProperties(globalProperties);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user