/*
 * Copyright 2015-2017 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.vintage.engine.descriptor;

import static org.junit.platform.commons.meta.API.Usage.Internal;

import org.junit.platform.commons.meta.API;
import org.junit.platform.engine.UniqueId;
import org.junit.platform.engine.support.descriptor.ClassSource;
import org.junit.runner.Request;
import org.junit.runner.Runner;

/**
 * @since 4.12
 */
@API(Internal)
public class RunnerTestDescriptor extends VintageTestDescriptor {

	private final Runner runner;
	private final Class<?> testClass;

	public RunnerTestDescriptor(UniqueId uniqueId, Class<?> testClass, Runner runner) {
		super(uniqueId, runner.getDescription(), testClass.getName(), new ClassSource(testClass));
		this.testClass = testClass;
		this.runner = runner;
	}

	public Runner getRunner() {
		return this.runner;
	}

	public Class<?> getTestClass() {
		return this.testClass;
	}

	public Request toRequest() {
		return new RunnerRequest(this.runner);
	}

}

@@ -776,43 +776,8 @@
 ner;
-%0A%09private final Class%3C?%3E testClass;
 %0A%0A%09p
@@ -963,171 +963,23 @@
 his.
-testClass = testClass;%0A%09%09this.runner = runner;%0A%09%7D%0A%0A%09public Runner getRunner() %7B%0A%09%09return this.runner;%0A%09%7D%0A%0A%09public Class%3C?%3E getTestClass() %7B%0A%09%09return this.testClass
+runner = runner
 ;%0A%09%7D

Remove unused getters