Make test plugins fragments.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.core.tests / src / org / eclipse / linuxtools / lttng / core / tests / event / LttngEventTypeTest.java
index 6abd6a8be13eb3d680ec4cf96507d56ce28b8c31..49000a680a7150c5dc96c4e775d9f1adc4319012 100644 (file)
@@ -9,8 +9,8 @@ import org.eclipse.core.runtime.FileLocator;
 import org.eclipse.core.runtime.Path;
 import org.eclipse.linuxtools.internal.lttng.core.event.LttngEventType;
 import org.eclipse.linuxtools.internal.lttng.core.trace.LTTngTextTrace;
-import org.eclipse.linuxtools.lttng.core.tests.LTTngCoreTestPlugin;
 import org.eclipse.linuxtools.tmf.core.trace.TmfContext;
+import org.osgi.framework.FrameworkUtil;
 
 /*
  Functions tested here :
@@ -38,7 +38,7 @@ public class LttngEventTypeTest 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(), skipIndexing);
                                testStream = tmpStream;
This page took 0.0242 seconds and 5 git commands to generate.