tmf: Rework test trace classes
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui.tests / src / org / eclipse / linuxtools / tmf / ui / tests / trace / CustomXmlTraceTest.java
CommitLineData
eb8ea213
MK
1package org.eclipse.linuxtools.tmf.ui.tests.trace;
2
3import java.util.ArrayList;
4
5import org.eclipse.linuxtools.internal.tmf.ui.parsers.custom.CustomXmlTrace;
6import org.eclipse.linuxtools.internal.tmf.ui.parsers.custom.CustomXmlTraceDefinition;
7import org.eclipse.linuxtools.internal.tmf.ui.parsers.custom.CustomTraceDefinition.OutputColumn;
8import org.eclipse.linuxtools.internal.tmf.ui.parsers.custom.CustomXmlTraceDefinition.InputElement;
9import org.junit.Before;
10
11/**
12 * Abstract test parent
13 *
14 * @author Matthew Khouzam
15 *
16 */
17public abstract class CustomXmlTraceTest {
18 private CustomXmlTraceDefinition cxtd;
19 /**
20 * The trace to use to "validate" the xml files
21 */
22 private CustomXmlTrace t;
23 /**
24 * The path of the trace
25 */
26 private String path;
27
28
29 /**
30 * set up directories
31 */
32 @Before
33 public void init() {
34 cxtd = new CustomXmlTraceDefinition("test", new InputElement(), new ArrayList<OutputColumn>(), "s");
35 t = new CustomXmlTrace(cxtd);
36 }
37
38
39 /**
40 * @return the trace
41 */
42 public CustomXmlTrace getTrace() {
43 return t;
44 }
45
46
47 /**
48 * @return the path
49 */
50 public String getPath() {
51 return path;
52 }
53
54
55 /**
56 * @param path the path to set
57 */
58 public void setPath(String path) {
59 this.path = path;
60 }
61
62}
This page took 0.027867 seconds and 5 git commands to generate.