Commit | Line | Data |
---|---|---|
a3fc8213 AM |
1 | package org.eclipse.linuxtools.tmf.core.tests.ctfadaptor; |
2 | ||
3 | import java.io.File; | |
4 | import java.io.FileNotFoundException; | |
5 | ||
6 | import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfEvent; | |
7 | import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace; | |
8 | ||
9 | ||
10 | public abstract class TestParams { | |
11 | ||
12 | /* Path to test traces */ | |
13 | private static final String testTracePath1 = "Tests/traces/trace20m"; //$NON-NLS-1$ | |
14 | private static CtfTmfTrace testTrace1 = null; | |
15 | ||
16 | private static final File emptyFile = new File(""); //$NON-NLS-1$ | |
17 | private static CtfTmfTrace emptyTrace = new CtfTmfTrace(); | |
8636b448 | 18 | |
a3fc8213 AM |
19 | public static File getEmptyFile() { |
20 | return emptyFile; | |
21 | } | |
22 | ||
23 | public static CtfTmfTrace getEmptyTrace() { | |
24 | return emptyTrace; | |
25 | } | |
26 | ||
27 | public static CtfTmfTrace createTrace() throws FileNotFoundException { | |
28 | if ( testTrace1 == null ) { | |
29 | testTrace1 = new CtfTmfTrace(); | |
3118edf1 | 30 | testTrace1.initTrace("test-trace", testTracePath1, CtfTmfEvent.class); //$NON-NLS-1$ |
a3fc8213 AM |
31 | } |
32 | return testTrace1; | |
33 | } | |
34 | } |