/*
 * Copyright 2015 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;

public class EngineDescriptor extends AbstractTestDescriptor {

	private TestEngine engine;

	public EngineDescriptor(TestEngine engine) {
		super(engine.getId());
		this.engine = engine;
	}

	@Override
	public final String getDisplayName() {
		return "Test engine: " + engine.getId();
	}

	@Override
	public final boolean isTest() {
		return false;
	}

}

/*
 * Copyright 2015 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;

public class EngineDescriptor extends AbstractTestDescriptor {

	private final TestEngine engine;

	public EngineDescriptor(TestEngine engine) {
		super(engine.getId());
		this.engine = engine;
	}

	@Override
	public String getDisplayName() {
		return "Test engine: " + engine.getId();
	}

	@Override
	public final boolean isTest() {
		return false;
	}

}

Allow for custom display name in EngineDescriptor