Fix Typos in interface methods of TmfUml2SdSynchLoader
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / ctfadaptor / TestParams.java
index 5deda663e0b260d8d1ecabf0677da2acadf6af86..c2bf932672d28a623f856fdd2a2d52bacf66e1f0 100644 (file)
@@ -1,33 +1,51 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Ericsson
+ *
+ * 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:
+ *   Matthew Khouzam - Initial API and implementation
+ *******************************************************************************/
+
 package org.eclipse.linuxtools.tmf.core.tests.ctfadaptor;
 
 import java.io.File;
-import java.io.FileNotFoundException;
 
 import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfEvent;
 import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace;
+import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
 
+/**
+ * This is the set up for the trace files to be used with the ctfAdaptor tests.
+ */
+abstract class TestParams {
 
-public abstract class TestParams {
-    
     /* Path to test traces */
-    private static final String testTracePath1 = "Tests/traces/trace20m"; //$NON-NLS-1$
+    private static final String testTracePath1 = "../org.eclipse.linuxtools.ctf.core.tests/traces/kernel"; //$NON-NLS-1$
     private static CtfTmfTrace testTrace1 = null;
-    
+
     private static final File emptyFile = new File(""); //$NON-NLS-1$
     private static CtfTmfTrace emptyTrace = new CtfTmfTrace();
-    
+
     public static File getEmptyFile() {
         return emptyFile;
     }
-    
+
     public static CtfTmfTrace getEmptyTrace() {
         return emptyTrace;
     }
-    
-    public static CtfTmfTrace createTrace() throws FileNotFoundException {
-        if ( testTrace1 == null ) {
+
+    public static String getPath(){
+        return testTracePath1;
+    }
+
+    public synchronized static CtfTmfTrace createTrace() throws TmfTraceException {
+        if (testTrace1 == null) {
             testTrace1 = new CtfTmfTrace();
-            testTrace1.initTrace("test-trace", testTracePath1, CtfTmfEvent.class); //$NON-NLS-1$
+            testTrace1.initTrace(null, testTracePath1, CtfTmfEvent.class);
         }
         return testTrace1;
     }
This page took 0.025706 seconds and 5 git commands to generate.