Commit | Line | Data |
---|---|---|
eb8ea213 MK |
1 | package org.eclipse.linuxtools.tmf.ui.tests.trace; |
2 | ||
3 | import java.util.ArrayList; | |
4 | ||
5 | import org.eclipse.linuxtools.internal.tmf.ui.parsers.custom.CustomXmlTrace; | |
6 | import org.eclipse.linuxtools.internal.tmf.ui.parsers.custom.CustomXmlTraceDefinition; | |
7 | import org.eclipse.linuxtools.internal.tmf.ui.parsers.custom.CustomTraceDefinition.OutputColumn; | |
8 | import org.eclipse.linuxtools.internal.tmf.ui.parsers.custom.CustomXmlTraceDefinition.InputElement; | |
9 | import org.junit.Before; | |
10 | ||
11 | /** | |
12 | * Abstract test parent | |
13 | * | |
14 | * @author Matthew Khouzam | |
15 | * | |
16 | */ | |
17 | public 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 | } |