diff --git a/.gitignore b/.gitignore index 86886d5..6a8b46f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,8 @@ target/ .project *.prefs .classpath + +## Don't publish. +/src/test/resources/largeFiles/report-2024-08-23-part1.json +/src/test/resources/largeFiles/report-2024-08-23-part2.json +/src/test/resources/largeFiles/report-2024-08-23-part3.json diff --git a/src/test/java/ch/zizka/yaml/merger/YamlMergerTest.kt b/src/test/java/ch/zizka/yaml/merger/YamlMergerTest.kt index 9a25cab..dfd6a61 100644 --- a/src/test/java/ch/zizka/yaml/merger/YamlMergerTest.kt +++ b/src/test/java/ch/zizka/yaml/merger/YamlMergerTest.kt @@ -1,6 +1,7 @@ package ch.zizka.yaml.merger import org.junit.jupiter.api.Assertions +import org.junit.jupiter.api.Disabled import org.junit.jupiter.api.Test import org.slf4j.Logger import org.slf4j.LoggerFactory @@ -39,6 +40,15 @@ class YamlMergerTest { Assertions.assertEquals(dbProperties!!["hibernate.dialect"], "org.hibernate.dialect.MySQL5InnoDBDialect", "wrong db url") } + @Test @Disabled("I need to generate some test data.") + fun testMerge2Files_Large() { + val merged = merger.mergeYamlFiles(arrayOf( + getResourceFile("largeFiles_/report-2024-08-23-part1.json"), + getResourceFile("largeFiles_/report-2024-08-23-part2.json"), + )) + val mergedYmlString = merger.exportToString(merged) + } + @Test fun testMergeFileIntoSelf() { val merged = merger.mergeYamlFiles(arrayOf(YAML_1, YAML_1))