<commit_before>package org.testeditor.rcp4.views.tcltestrun

import com.google.common.io.Files
import java.io.File
import java.nio.charset.StandardCharsets
import javax.xml.parsers.DocumentBuilderFactory
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.InjectMocks
import org.mockito.runners.MockitoJUnitRunner

import static org.junit.Assert.*
import org.junit.Rule
import org.junit.rules.TemporaryFolder

@RunWith(MockitoJUnitRunner)
class TestResultFileWriterTest {

	@InjectMocks TestResultFileWriter testResultWriter
	@Rule public TemporaryFolder tempFolder = new TemporaryFolder();

	@Test
	def void testErrorFile() {
		// given
		val errorFile = File.createTempFile("mFile", "tmp")

		// when
		testResultWriter.writeErrorFile("MyPrj.package.MyTest", errorFile)

		// then		
		val lines = Files.toString(errorFile, StandardCharsets.UTF_8)
		assertTrue(lines.contains("MyPrj.package.MyTest"))
	}
<commit_msg> TE-290 Multi select for test execution<commit_after>package org.testeditor.rcp4.views.tcltestrun

import com.google.common.io.Files
import java.io.File
import java.nio.charset.StandardCharsets
import javax.xml.parsers.DocumentBuilderFactory
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.InjectMocks
import org.mockito.runners.MockitoJUnitRunner

import static org.junit.Assert.*
import org.junit.Rule
import org.junit.rules.TemporaryFolder

@RunWith(MockitoJUnitRunner)
class TestResultFileWriterTest {

	@InjectMocks TestResultFileWriter testResultWriter
	@Rule public TemporaryFolder tempFolder = new TemporaryFolder();

	@Test
	def void testErrorFile() {
		// given
		val errorFile = tempFolder.newFile("mFile.tmp")

		// when
		testResultWriter.writeErrorFile("MyPrj.package.MyTest", errorFile)

		// then		
		val lines = Files.toString(errorFile, StandardCharsets.UTF_8)
		assertTrue(lines.contains("MyPrj.package.MyTest"))
	}

{'fraction_non_alphanumeric': 0.09536354056902002, 'fraction_numerical': 0.0036880927291886197, 'mean_word_length': 5.548275862068966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7595978', 'n_tokens_mistral': 619, 'n_tokens_neox': 596, 'n_words': 115}