diff options
Diffstat (limited to 'testsrunner/org.eclipse.cdt.testsrunner/src/org/eclipse/cdt/testsrunner/internal/model/TestLocation.java')
-rw-r--r-- | testsrunner/org.eclipse.cdt.testsrunner/src/org/eclipse/cdt/testsrunner/internal/model/TestLocation.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testsrunner/org.eclipse.cdt.testsrunner/src/org/eclipse/cdt/testsrunner/internal/model/TestLocation.java b/testsrunner/org.eclipse.cdt.testsrunner/src/org/eclipse/cdt/testsrunner/internal/model/TestLocation.java new file mode 100644 index 00000000000..afe8bfaae58 --- /dev/null +++ b/testsrunner/org.eclipse.cdt.testsrunner/src/org/eclipse/cdt/testsrunner/internal/model/TestLocation.java @@ -0,0 +1,41 @@ +/******************************************************************************* + * Copyright (c) 2011 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; + } +} |