Make test plugins fragments.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.core.tests / src / org / eclipse / linuxtools / lttng / core / tests / event / LttngEventContentTest.java
index fc2e9c671964675ab9d49acd894b02d838dff4e8..c69a91021ef6a962e44d0296216d8244756e5e44 100644 (file)
@@ -14,10 +14,10 @@ import org.eclipse.linuxtools.internal.lttng.core.event.LttngEventField;
 import org.eclipse.linuxtools.internal.lttng.core.event.LttngEventType;
 import org.eclipse.linuxtools.internal.lttng.core.event.LttngTimestamp;
 import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTextTrace;
-import org.eclipse.linuxtools.lttng.core.tests.LTTngCoreTestPlugin;
 import org.eclipse.linuxtools.tmf.core.trace.ITmfContext;
 import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
 import org.eclipse.linuxtools.tmf.core.trace.TmfLocation;
+import org.osgi.framework.FrameworkUtil;
 
 /*
  Functions tested here :
@@ -63,7 +63,7 @@ public class LttngEventContentTest extends TestCase {
     private LTTngTextTrace initializeEventStream() {
        if (testStream == null) {
                        try {
-                               URL location = FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(), new Path(tracepath1), null);
+                               URL location = FileLocator.find(FrameworkUtil.getBundle(this.getClass()), new Path(tracepath1), null);
                                File testfile = new File(FileLocator.toFileURL(location).toURI());
                                LTTngTextTrace tmpStream = new LTTngTextTrace(testfile.getName(), testfile.getPath());
                                testStream = tmpStream;
This page took 0.024456 seconds and 5 git commands to generate.