private void generateDataViewingData(final Path dir) {
        final int shortLoremText = 4;
        final int longLoremText = 200;
        // Increment the random seed each time so each data set has different but predictable data
        long randomSeed = 0;

        // Data that has one record per line
        // One with long lines, one with short
        generateDataViewRawData(
                dir,
                1,
                "DATA_VIEWING_MULTI_LINE-EVENTS",
                "\n",
                DataWriterMode.CSV,
                shortLoremText,
                LocalDateTime.of(2020, 6, 1, 0, 0),
                randomSeed++);

        generateDataViewRawData(
                dir,
                2,
                "DATA_VIEWING_MULTI_LINE-EVENTS",
                "\n",
                DataWriterMode.CSV,
                longLoremText,
                LocalDateTime.of(2020, 7, 1, 0, 0),
                randomSeed++);

        // Data that is all on one massive single line
        generateDataViewRawData(
                dir,
                1,
                "DATA_VIEWING_SINGLE_LINE-EVENTS",
                "|",
                DataWriterMode.CSV,
                shortLoremText,
                LocalDateTime.of(2020, 8, 1, 0, 0),
                randomSeed++);

        // XML data that is all on one massive single line
        generateDataViewRawData(
                dir,
                1,
                "DATA_VIEWING_XML_SINGLE_LINE-EVENTS",
                "",
                DataWriterMode.XML,
                shortLoremText,
                LocalDateTime.of(2020, 9, 1, 0, 0),
                randomSeed++);

        // Data that has one record per line
        // One with long lines, one with short
        generateDataViewRawData(
                dir,
                1,
                "DATA_VIEWING_XML_MULTI_LINE-EVENTS",
                "\n",
                DataWriterMode.XML,
                shortLoremText,
                LocalDateTime.of(2020, 10, 1, 0, 0),
                randomSeed++);

        generateDataViewRawData(
                dir,
                2,
                "DATA_VIEWING_XML_MULTI_LINE-EVENTS",
                "\n",
                DataWriterMode.XML,
                longLoremText,
                LocalDateTime.of(2020, 11, 1, 0, 0),
                randomSeed++);
    }
To aid testing the generation without running {@link SetupSampleData}
stroom-app/src/test/java/stroom/test/SampleDataGenerator.java