/*
 * 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.launcher.main;

import static java.util.Arrays.asList;

import org.junit.gen5.engine.TestEngine;

/**
 * @since 5.0
 */
public class LauncherFactoryForTestingPurposesOnly {

	public static DefaultLauncher createLauncher(TestEngine... engines) {
		return createLauncher(asList(engines));
	}

	public static DefaultLauncher createLauncher(Iterable<TestEngine> engines) {
		return new DefaultLauncher(engines);
	}

}

/*
 * 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.launcher.main;

import static java.util.Arrays.asList;

import org.junit.gen5.engine.TestEngine;

/**
 * @since 5.0
 */
public class LauncherFactoryForTestingPurposesOnly {

	public static DefaultLauncher createLauncher(TestEngine... engines) {
		return new DefaultLauncher(asList(engines));
	}

}

Simplify LauncherFactoryForTestingPurposesOnly