Fix more warnings from FindBugs
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.core.tests / src / org / eclipse / linuxtools / lttng / core / tests / LttngTestPreparation.java
index 015365af8936bec55e81bcc0e3e25b5e92506fae..f886fa332b9d538c76306b0236d3703abd210903 100644 (file)
@@ -123,7 +123,7 @@ public abstract class LttngTestPreparation extends TestCase {
                                URL location = FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(), new Path(ftracepath_T1),
                                                null);
                                File testfile = new File(FileLocator.toFileURL(location).toURI());
-                               LTTngTrace tmpStream = new LTTngTrace(testfile.getPath(), false);
+                               LTTngTrace tmpStream = new LTTngTrace(testfile.getName(), testfile.getPath(), false);
                                frealStream = tmpStream;
                        } catch (Exception e) {
                                System.out.println("ERROR : Could not open " + ftracepath_T1);
@@ -142,7 +142,7 @@ public abstract class LttngTestPreparation extends TestCase {
                                URL location = FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(),
                                                new Path(fTextTracepath_T1), null);
                                File testfile = new File(FileLocator.toFileURL(location).toURI());
-                               LTTngTextTrace tmpStream = new LTTngTextTrace(testfile.getPath());
+                               LTTngTextTrace tmpStream = new LTTngTextTrace(testfile.getName(), testfile.getPath());
                                ftextStream_T1 = tmpStream;
 
                        } catch (Exception e) {
@@ -239,9 +239,6 @@ public abstract class LttngTestPreparation extends TestCase {
                                                System.out.println("Expected Event: "
                                                                + expectedEvents_T1[feventCount] + " actual: "
                                                                + event.getTimestamp().getValue());
-                                       } else {
-                                               System.out.println("Synthetic Event: " + feventCount
-                                                               + " matched expected time");
                                        }
                                }
        
@@ -265,7 +262,7 @@ public abstract class LttngTestPreparation extends TestCase {
                                // requestCompleted();
                                // }
        
-                               System.out.println("handleCompleted(request:" + startIdx + ") Number of events processed: " + feventCount);
+//                             System.out.println("handleCompleted(request:" + startIdx + ") Number of events processed: " + feventCount);
                        }
        
                };
@@ -353,7 +350,7 @@ public abstract class LttngTestPreparation extends TestCase {
                                // requestCompleted();
                                // }
        
-                               System.out.println("handleCompleted(request:" + startIdx + ") Number of events processed: " + feventCount);
+//                             System.out.println("handleCompleted(request:" + startIdx + ") Number of events processed: " + feventCount);
                        }
        
                };
This page took 0.025975 seconds and 5 git commands to generate.