blob: b361e7e40ca413a0997e271f3fc7e7757b238fbb (
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
|
/*******************************************************************************
* Copyright (c) 2011, 2012 Anton Gorenkov
* 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
*
* 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;
}
}
|