Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 3cdb846d153aaa805c84f45bf30bd64eabd9963c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*******************************************************************************
 * Copyright (c) 2011, 2012 Anton Gorenkov
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     Anton Gorenkov - initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.testsrunner.internal.model;

import org.eclipse.cdt.testsrunner.model.ITestLocation;

/**
 * Represents the location of the test object.
 */
public class TestLocation implements ITestLocation {

	/** Stores the file name in which testing object is located. */
	private String file;

	/** Stores the line number on which testing object is located. */
	private int line;

	public TestLocation(String file, int line) {
		this.file = file;
		this.line = line;
	}

	@Override
	public String getFile() {
		return file;
	}

	@Override
	public int getLine() {
		return line;
	}
}

Back to the top