<commit_before>/*
 * Copyright 2015-2016 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 v1.0 which
 * accompanies this distribution and is available at
 *
 * http://www.eclipse.org/legal/epl-v10.html
 */

package org.junit.gen5.engine.junit5.extension;

import static org.junit.gen5.api.Assertions.*;

import java.lang.reflect.*;
import java.util.*;

import org.junit.gen5.api.*;
import org.junit.gen5.commons.util.*;

class TestReporterParameterResolverTests {

	TestReporterParameterResolver resolver = new TestReporterParameterResolver();

	@Test
	void testSupports() {
		Method method = ReflectionUtils.findMethod(Sample.class, "methodWithTestReporterParameter",
			new Class[] { TestReporter.class }).get();
		Parameter parameter = method.getParameters()[0];

		assertTrue(resolver.supports(parameter, null, null));

		//	assertTrue(resolver.supports(null, null, null));

	}

	@Test
	void testResolve() {

	}

}

class Sample {

	public void methodWithTestReporterParameter(TestReporter reporter) {

	}

}<commit_msg>#57: added missing unit test<commit_after>/*
 * Copyright 2015-2016 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 v1.0 which
 * accompanies this distribution and is available at
 *
 * http://www.eclipse.org/legal/epl-v10.html
 */

package org.junit.gen5.engine.junit5.extension;

import static org.junit.gen5.api.Assertions.*;

import java.lang.reflect.*;
import java.util.*;

import org.junit.gen5.api.*;
import org.junit.gen5.commons.util.*;

class TestReporterParameterResolverTests {

	TestReporterParameterResolver resolver = new TestReporterParameterResolver();

	@Test
	void testSupports() {
		Method methodWithTestReporterParameter = ReflectionUtils.findMethod(Sample.class,
			"methodWithTestReporterParameter", new Class[] { TestReporter.class }).get();
		Parameter parameter1 = methodWithTestReporterParameter.getParameters()[0];
		assertTrue(resolver.supports(parameter1, null, null));

		Method methodWithoutTestReporterParameter = ReflectionUtils.findMethod(Sample.class,
			"methodWithoutTestReporterParameter", new Class[] { String.class }).get();
		Parameter parameter2 = methodWithoutTestReporterParameter.getParameters()[0];
		assertFalse(resolver.supports(parameter2, null, null));

		//	assertTrue(resolver.supports(null, null, null));

	}

	@Test
	void testResolve() {

	}

}

class Sample {

	public void methodWithTestReporterParameter(TestReporter reporter) {
	}

	public void methodWithoutTestReporterParameter(String nothing) {
	}

}
{'fraction_non_alphanumeric': 0.10728670816550714, 'fraction_numerical': 0.015745148297326986, 'mean_word_length': 5.139325842696629, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3234314', 'n_tokens_mistral': 828, 'n_tokens_neox': 776, 'n_words': 194}