Debian Codegraph @

junit-trait-runner/src/main/java/org/eclipse/collections/impl/test/junit/Java8Runner.java

raw
1 /*
2 * Copyright (c) 2021 Goldman Sachs.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * and Eclipse Distribution License v. 1.0 which accompany this distribution.
6 * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
7 * and the Eclipse Distribution License is available at
8 * http://www.eclipse.org/org/documents/edl-v10.php.
9 */
10
11 package org.eclipse.collections.impl.test.junit;
12
13 import org.junit.runners.BlockJUnit4ClassRunner;
14 import org.junit.runners.model.InitializationError;
15
16 public class Java8Runner extends BlockJUnit4ClassRunner
17 {
18 /**
19 * Creates a Java8Runner to run {@code klass}
20 *
21 * @throws InitializationError if the test class is malformed.
22 */
23 public Java8Runner(Class<?> klass) throws InitializationError
24 {
25 super(klass);
26 }
27
28 @Override
29 protected Java8TestClass createTestClass(Class<?> testClass)
30 {
31 return new Java8TestClass(testClass);
32 }
33 }