<commit_before>/*
 * Copyright 2015-2019 the original author or authors.
 *
 * All rights reserved. This program and the accompanying materials are
 * made available under the terms of the Eclipse Public License v2.0 which
 * accompanies this distribution and is available at
 *
 * http://www.eclipse.org/legal/epl-v20.html
 */

package platform.tooling.support.tests;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertLinesMatch;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assumptions.assumeFalse;

import java.nio.file.Files;
import java.nio.file.Path;
import java.time.Duration;
import java.util.List;

import de.sormuras.bartholdy.Result;

import org.junit.jupiter.api.Test;
import platform.tooling.support.Request;

/**
 * @since 1.4
 */
class MultiReleaseJarTests {

	@Test
	void checkDefault() throws Exception {
		var variant = "default";
		var expectedLines = List.of( //
			">> BANNER >>",
			".", //
			"'-- JUnit Jupiter [OK]", //
			"  '-- JupiterIntegrationTests [OK]", //
			"    +-- javaPlatformModuleSystemIsAvailable() [OK]", //
			"    +-- javaScriptingModuleIsAvailable() [OK]", //
			"    +-- moduleIsNamed() [OK]", //
			"    +-- packageName() [OK]", //
			"    '-- resolve() [OK]", //
			"", //
			"Test run finished after \\d+ ms", //
			"[         2 containers found      ]", //
			"[         0 containers skipped    ]", //
			"[         2 containers started    ]", //
			"[         0 containers aborted    ]", //
			"[         2 containers successful ]", //
			"[         0 containers failed     ]", //
			"[         5 tests found           ]", //
			"[         0 tests skipped         ]", //
			"[         5 tests started         ]", //
			"[         0 tests aborted         ]", //
			"[         5 tests successful      ]", //
			"[         0 tests failed          ]", //
			"" //
		);

		var result = mvn(variant, expectedLines);
<commit_msg>Spotless<commit_after>/*
 * Copyright 2015-2019 the original author or authors.
 *
 * All rights reserved. This program and the accompanying materials are
 * made available under the terms of the Eclipse Public License v2.0 which
 * accompanies this distribution and is available at
 *
 * http://www.eclipse.org/legal/epl-v20.html
 */

package platform.tooling.support.tests;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertLinesMatch;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assumptions.assumeFalse;

import java.nio.file.Files;
import java.nio.file.Path;
import java.time.Duration;
import java.util.List;

import de.sormuras.bartholdy.Result;

import org.junit.jupiter.api.Test;
import platform.tooling.support.Request;

/**
 * @since 1.4
 */
class MultiReleaseJarTests {

	@Test
	void checkDefault() throws Exception {
		var variant = "default";
		var expectedLines = List.of( //
			">> BANNER >>", //
			".", //
			"'-- JUnit Jupiter [OK]", //
			"  '-- JupiterIntegrationTests [OK]", //
			"    +-- javaPlatformModuleSystemIsAvailable() [OK]", //
			"    +-- javaScriptingModuleIsAvailable() [OK]", //
			"    +-- moduleIsNamed() [OK]", //
			"    +-- packageName() [OK]", //
			"    '-- resolve() [OK]", //
			"", //
			"Test run finished after \\d+ ms", //
			"[         2 containers found      ]", //
			"[         0 containers skipped    ]", //
			"[         2 containers started    ]", //
			"[         0 containers aborted    ]", //
			"[         2 containers successful ]", //
			"[         0 containers failed     ]", //
			"[         5 tests found           ]", //
			"[         0 tests skipped         ]", //
			"[         5 tests started         ]", //
			"[         0 tests aborted         ]", //
			"[         5 tests successful      ]", //
			"[         0 tests failed          ]", //
			"" //
		);

		var result = mvn(variant, expectedLines);

{'fraction_non_alphanumeric': 0.1540785498489426, 'fraction_numerical': 0.013091641490433032, 'mean_word_length': 2.1431962025316458, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4159661', 'n_tokens_mistral': 1340, 'n_tokens_neox': 1152, 'n_words': 286}