Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2010-11-30 22:47:18 +0000
committerPawel Piech2010-11-30 22:47:18 +0000
commitacfb30df58825807f0c23821b8b51a93a3b05641 (patch)
treef3839d69e9ef9b83de967d19d45798f9b4c2a112 /dsf/org.eclipse.cdt.tests.dsf
parent3c0d068f998ded62c2da25a83d8348ac69548c6c (diff)
downloadorg.eclipse.cdt-acfb30df58825807f0c23821b8b51a93a3b05641.tar.gz
org.eclipse.cdt-acfb30df58825807f0c23821b8b51a93a3b05641.tar.xz
org.eclipse.cdt-acfb30df58825807f0c23821b8b51a93a3b05641.zip
Bug 328883 - AbstractCachingVMProvider throws ClassCastException
Corrected Fix.
Diffstat (limited to 'dsf/org.eclipse.cdt.tests.dsf')
-rw-r--r--dsf/org.eclipse.cdt.tests.dsf/src/org/eclipse/cdt/tests/dsf/vm/FormattedValueTests.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/dsf/org.eclipse.cdt.tests.dsf/src/org/eclipse/cdt/tests/dsf/vm/FormattedValueTests.java b/dsf/org.eclipse.cdt.tests.dsf/src/org/eclipse/cdt/tests/dsf/vm/FormattedValueTests.java
index 60d127311a7..e7abbd8ba42 100644
--- a/dsf/org.eclipse.cdt.tests.dsf/src/org/eclipse/cdt/tests/dsf/vm/FormattedValueTests.java
+++ b/dsf/org.eclipse.cdt.tests.dsf/src/org/eclipse/cdt/tests/dsf/vm/FormattedValueTests.java
@@ -233,7 +233,10 @@ abstract public class FormattedValueTests extends TestCase implements IViewerUpd
while (!fViewerListener.isFinished(ALL_UPDATES_COMPLETE | PROPERTY_UPDATES) || !fVMListener.isFinished(CONTENT_UPDATES | PROPERTY_UPDATES))
if (!fDisplay.readAndDispatch ()) fDisplay.sleep ();
- validateModel(IFormattedValues.HEX_FORMAT, " (" + FormattedValueVMUtil.getFormatLabel(IFormattedValues.HEX_FORMAT) + ")");
+ validateModel(IFormattedValues.HEX_FORMAT,
+ " (" + FormattedValueVMUtil.getFormatLabel(IFormattedValues.HEX_FORMAT) + ")",
+ DummyFormattedValueService.DUMMY_FORMAT,
+ " (" + DummyFormattedValueService.DUMMY_FORMAT + ")");
}
/**
@@ -345,6 +348,10 @@ abstract public class FormattedValueTests extends TestCase implements IViewerUpd
}
private void validateModel(final String formatId, final String suffix) {
+ validateModel(formatId, suffix, formatId, suffix);
+ }
+
+ private void validateModel(final String formatId, final String suffix, final String dummyFormatId, final String dummySuffix) {
fModel.validateData(
fViewer, TreePath.EMPTY,
new TestElementValidator() {
@@ -356,7 +363,7 @@ abstract public class FormattedValueTests extends TestCase implements IViewerUpd
assertEquals(fModel.getFormattedValueText(modelElement, formatId) + suffix, label.getText());
label = fViewer.getElementLabel(viewerPath, TestModelCachingVMProvider.COLUMN_DUMMY_VALUE);
- assertEquals(formatId, label.getText());
+ assertEquals(dummyFormatId + dummySuffix, label.getText());
}
});
}

Back to the top