Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPawel Piech2012-09-05 04:02:49 +0000
committerPawel Piech2012-09-05 04:02:49 +0000
commit896fe8b1f06ca09fd3b8d648116ccc53cf020397 (patch)
tree713a72bd73d56ae25828fb5f4ceab869ef6d3b50 /tests
parent43dd852807de52ed7147e31733e5b310008246d4 (diff)
downloadorg.eclipse.tcf-896fe8b1f06ca09fd3b8d648116ccc53cf020397.tar.gz
org.eclipse.tcf-896fe8b1f06ca09fd3b8d648116ccc53cf020397.tar.xz
org.eclipse.tcf-896fe8b1f06ca09fd3b8d648116ccc53cf020397.zip
Bug 388786 - Exposing TCF internal classes/methods for data access
Fixed compile errors in debug tests plus a fix to the breakpoint scope detail pane.
Diffstat (limited to 'tests')
-rw-r--r--tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/AbstractTcfUITest.java22
-rw-r--r--tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/BreakpointDetailPaneTest.java4
2 files changed, 20 insertions, 6 deletions
diff --git a/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/AbstractTcfUITest.java b/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/AbstractTcfUITest.java
index 14d1e64d1..d498596fa 100644
--- a/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/AbstractTcfUITest.java
+++ b/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/AbstractTcfUITest.java
@@ -30,6 +30,7 @@ import org.eclipse.jface.viewers.TreeSelection;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.tcf.debug.test.util.Transaction;
+import org.eclipse.tcf.debug.ui.ITCFModel;
import org.eclipse.tcf.debug.ui.ITCFObject;
import org.eclipse.tcf.protocol.IChannel;
import org.eclipse.tcf.te.tests.interfaces.IConfigurationProperties;
@@ -148,12 +149,18 @@ public abstract class AbstractTcfUITest extends AbstractCMTest implements IViewe
final TestProcessInfo processInfo = startProcess();
ITCFObject processTCFContext = new ITCFObject() {
- public String getID() { return processInfo.fProcessId; }
- public IChannel getChannel() { return channels[0]; }
+ @Override public String getID() { return processInfo.fProcessId; }
+ @Override public IChannel getChannel() { return channels[0]; }
+ @Override public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) { return null; }
+ @Override public ITCFModel getModel() { return null; }
+ @Override public ITCFObject getParent() { return null; }
};
ITCFObject threadTCFContext = new ITCFObject() {
- public String getID() { return processInfo.fThreadId; }
- public IChannel getChannel() { return channels[0]; }
+ @Override public String getID() { return processInfo.fThreadId; }
+ @Override public IChannel getChannel() { return channels[0]; }
+ @Override public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) { return null; }
+ @Override public ITCFModel getModel() { return null; }
+ @Override public ITCFObject getParent() { return null; }
};
// Make sure that delta is posted after launching process so that it doesn't interfere
@@ -174,8 +181,11 @@ public abstract class AbstractTcfUITest extends AbstractCMTest implements IViewe
}.get();
ITCFObject frameTCFContext = new ITCFObject() {
- public String getID() { return topFrameId; }
- public IChannel getChannel() { return channels[0]; }
+ @Override public String getID() { return topFrameId; }
+ @Override public IChannel getChannel() { return channels[0]; }
+ @Override public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) { return null; }
+ @Override public ITCFModel getModel() { return null; }
+ @Override public ITCFObject getParent() { return null; }
};
VirtualItem topFrameItem = null;
diff --git a/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/BreakpointDetailPaneTest.java b/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/BreakpointDetailPaneTest.java
index 6c66101d2..e03663c16 100644
--- a/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/BreakpointDetailPaneTest.java
+++ b/tests/plugins/org.eclipse.tcf.debug.test/src/org/eclipse/tcf/debug/test/BreakpointDetailPaneTest.java
@@ -225,6 +225,10 @@ public class BreakpointDetailPaneTest extends AbstractTcfUITest
escaped.append('\\');
}
escaped.append(c);
+ // Make spaces optional:
+ if (c == ' ') {
+ escaped.append("*");
+ }
}
return escaped.toString();
}

Back to the top