-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7139 from deutschebank/db-contrib/waltz-6595-bulk…
…-taxonomy Db contrib/waltz 6595 bulk taxonomy
- Loading branch information
Showing
50 changed files
with
2,955 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
waltz-common/src/test/java/org/finos/waltz/common/StreamUtilities_linesTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package org.finos.waltz.common; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import java.util.stream.Collectors; | ||
import java.util.stream.Stream; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
public class StreamUtilities_linesTest { | ||
|
||
@Test | ||
public void simpleCase(){ | ||
Stream<String> emptyLine = StreamUtilities | ||
.lines(""); | ||
|
||
assertEquals("", emptyLine.collect(Collectors.joining(""))); | ||
|
||
} | ||
|
||
|
||
@Test | ||
public void multiLines(){ | ||
Stream<String> output = StreamUtilities | ||
.lines("a\nb\nc"); | ||
|
||
assertEquals("a#b#c", output.collect(Collectors.joining("#"))); | ||
|
||
} | ||
|
||
|
||
@Test | ||
public void onlyOneLine(){ | ||
Stream<String> output = StreamUtilities | ||
.lines("ddd"); | ||
|
||
assertEquals("<ddd>", output.collect(Collectors.joining("#", "<", ">"))); | ||
|
||
} | ||
|
||
|
||
@Test | ||
public void emptyLines(){ | ||
Stream<String> output = StreamUtilities | ||
.lines("hello\n\nworld"); | ||
|
||
assertEquals("<hello##world>", output.collect(Collectors.joining("#", "<", ">"))); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.