<commit_before>package kuleuven.group2.data.updating;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import kuleuven.group2.data.TestDatabase;
import kuleuven.group2.data.TestedMethod;
import kuleuven.group2.data.updating.ICurrentRunningTestHolder;
import kuleuven.group2.data.updating.MethodTestLinkUpdater;
import kuleuven.group2.data.updating.OssRewriterLoader;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class MethodTestLinkUpdaterTest {
	
	private TestDatabase database;
	private MethodTestLinkUpdater updater;
	CurrentTestHolder currentTestHolder;
	
	private static String getFalsePath = "kuleuven/group2/data/methodlink/MethodLinkerTest$TestedClass.getFalse()Z";
	@SuppressWarnings("unused")
	private static TestedMethod getFalse = new TestedMethod(getFalsePath);
	private static String getTruePath = "kuleuven/group2/data/methodlink/MethodLinkerTest$TestedClass.getTrue()Z";
	private static TestedMethod getTrue = new TestedMethod(getTruePath);
	
	private static kuleuven.group2.data.Test testMethod1S = new kuleuven.group2.data.Test("TestClass", "testMethod1S");
	private static kuleuven.group2.data.Test testMethod2F = new kuleuven.group2.data.Test("TestClass", "testMethod2F");
	

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
		database = new TestDatabase();
		database.addMethod(getTrue);
		OssRewriterLoader loader = new OssRewriterLoader();
		currentTestHolder = new CurrentTestHolder();
		updater = new MethodTestLinkUpdater(database, loader, currentTestHolder);
	}

	@After
	public void tearDown() throws Exception {
	}
<commit_msg>Fixed method test link updater test.<commit_after>package kuleuven.group2.data.updating;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import kuleuven.group2.data.TestDatabase;
import kuleuven.group2.data.TestedMethod;
import kuleuven.group2.data.updating.ICurrentRunningTestHolder;
import kuleuven.group2.data.updating.MethodTestLinkUpdater;
import kuleuven.group2.data.updating.OssRewriterLoader;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class MethodTestLinkUpdaterTest {
	
	private TestDatabase database;
	private MethodTestLinkUpdater updater;
	CurrentTestHolder currentTestHolder;
	
	private static String getFalsePath = "kuleuven/group2/data/methodlink/MethodLinkerTest$TestedClass.getFalse()Z";
	@SuppressWarnings("unused")
	private static TestedMethod getFalse = new TestedMethod(getFalsePath);
	private static String getTruePath = "kuleuven/group2/data/methodlink/MethodLinkerTest$TestedClass.getTrue()Z";
	private static TestedMethod getTrue = new TestedMethod(getTruePath);
	
	private static kuleuven.group2.data.Test testMethod1S = new kuleuven.group2.data.Test("TestClass", "testMethod1S");
	private static kuleuven.group2.data.Test testMethod2F = new kuleuven.group2.data.Test("TestClass", "testMethod2F");
	

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
		database = new TestDatabase();
		database.addMethod(getTrue);
		OssRewriterLoader loader = new OssRewriterLoader();
		currentTestHolder = new CurrentTestHolder();
		updater = new MethodTestLinkUpdater(database, loader);
		updater.registerTestHolder(currentTestHolder);
	}

	@After
	public void tearDown() throws Exception {
	}

{'fraction_non_alphanumeric': 0.08981555733761026, 'fraction_numerical': 0.00855386260358193, 'mean_word_length': 6.514056224899599, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7323213', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1168, 'n_words': 241}