-
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.
Pull request #395: CTCTOWALTZ-3313 bulk taxonomy 6595
Merge in WALTZ/waltz from WALTZ/waltz-dw:CTCTOWALTZ-3313-bulk-taxonomy-6595 to db-feature/waltz-6595-bulk-taxonomy * commit '69bc6681e4a2a7a82cf190919ec419105b8ea4cb': Measurable Taxonomy - bulk load Measurable Taxonomy - bulk load Measurable Taxonomy - bulk load WIP Measurable Taxonomy - bulk load WIP Measurable Taxonomy - bulk load WIP Measurable Taxonomy - bulk load WIP Measurable Taxonomy - bulk load WIP Measurable Taxonomy - bulk load WIP Measurable Taxonomy - bulk load WIP Measurable Taxonomy - bulk load WIP Bulk measurable creation Bulk measurable creation Bulk measurable creation
- 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.