1 /******************************************************************************* 2 * Copyright (c) 2005, 2017 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.jdt.internal.junit.model; 15 16 import org.eclipse.jdt.junit.model.ITestRunSession; 17 18 public class TestRoot extends TestSuiteElement { 19 20 private final ITestRunSession fSession; 21 TestRoot(ITestRunSession session)22 public TestRoot(ITestRunSession session) { 23 super(null, "-1", session.getTestRunName(), 1, session.getTestRunName(), null, null); //$NON-NLS-1$ 24 fSession= session; 25 } 26 27 @Override getRoot()28 public TestRoot getRoot() { 29 return this; 30 } 31 32 @Override getTestRunSession()33 public ITestRunSession getTestRunSession() { 34 return fSession; 35 } 36 } 37