Commit | Line | Data |
---|---|---|
13201b83 MK |
1 | /******************************************************************************* |
2 | * Copyright (c) 2013 Ericsson | |
3 | * | |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
10 | * Matthew Khouzam - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
eb8ea213 MK |
13 | package org.eclipse.linuxtools.tmf.ui.tests.trace; |
14 | ||
15 | import java.util.ArrayList; | |
16 | ||
47aafe74 AM |
17 | import org.eclipse.linuxtools.tmf.core.parsers.custom.CustomXmlTrace; |
18 | import org.eclipse.linuxtools.tmf.core.parsers.custom.CustomXmlTraceDefinition; | |
19 | import org.eclipse.linuxtools.tmf.core.parsers.custom.CustomTraceDefinition.OutputColumn; | |
20 | import org.eclipse.linuxtools.tmf.core.parsers.custom.CustomXmlTraceDefinition.InputElement; | |
eb8ea213 MK |
21 | import org.junit.Before; |
22 | ||
23 | /** | |
24 | * Abstract test parent | |
25 | * | |
26 | * @author Matthew Khouzam | |
27 | * | |
28 | */ | |
29 | public abstract class CustomXmlTraceTest { | |
30 | private CustomXmlTraceDefinition cxtd; | |
31 | /** | |
32 | * The trace to use to "validate" the xml files | |
33 | */ | |
34 | private CustomXmlTrace t; | |
35 | /** | |
36 | * The path of the trace | |
37 | */ | |
38 | private String path; | |
39 | ||
40 | ||
41 | /** | |
42 | * set up directories | |
43 | */ | |
44 | @Before | |
45 | public void init() { | |
46 | cxtd = new CustomXmlTraceDefinition("test", new InputElement(), new ArrayList<OutputColumn>(), "s"); | |
47 | t = new CustomXmlTrace(cxtd); | |
48 | } | |
49 | ||
50 | ||
51 | /** | |
52 | * @return the trace | |
53 | */ | |
54 | public CustomXmlTrace getTrace() { | |
55 | return t; | |
56 | } | |
57 | ||
58 | ||
59 | /** | |
60 | * @return the path | |
61 | */ | |
62 | public String getPath() { | |
63 | return path; | |
64 | } | |
65 | ||
66 | ||
67 | /** | |
68 | * @param path the path to set | |
69 | */ | |
70 | public void setPath(String path) { | |
71 | this.path = path; | |
72 | } | |
73 | ||
74 | } |