summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2009-01-14 04:43:38 (EST)
committerCarsten Drossel2009-01-14 04:43:38 (EST)
commit94aaa004246c9428dd4c2965bbee240c4da31ffc (patch)
treed7a4a35f730b01cc54a6a35f43c139aef7cd27a6
parent166a15125405925cb309445a0afc2112ce29d6f7 (diff)
downloadorg.eclipse.riena-94aaa004246c9428dd4c2965bbee240c4da31ffc.zip
org.eclipse.riena-94aaa004246c9428dd4c2965bbee240c4da31ffc.tar.gz
org.eclipse.riena-94aaa004246c9428dd4c2965bbee240c4da31ffc.tar.bz2
fixed warning
-rw-r--r--org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/ComboRidgetTest.java1
-rw-r--r--org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/LabelRidgetTest.java10
2 files changed, 8 insertions, 3 deletions
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/ComboRidgetTest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/ComboRidgetTest.java
index 33f89c3..4e0b581 100644
--- a/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/ComboRidgetTest.java
+++ b/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/ComboRidgetTest.java
@@ -372,6 +372,7 @@ public class ComboRidgetTest extends AbstractSWTRidgetTest {
* Should be deleted when the deprecated method getSelectionObservable() is
* removed.
*/
+ @SuppressWarnings("deprecation")
public void testGetSelectionObservable() {
ComboRidget ridget = getRidget();
StringManager aManager = new StringManager("A", "B", "C", "D", "E");
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/LabelRidgetTest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/LabelRidgetTest.java
index f18c2b6..50659c4 100644
--- a/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/LabelRidgetTest.java
+++ b/org.eclipse.riena.tests/src/org/eclipse/riena/internal/ui/ridgets/swt/LabelRidgetTest.java
@@ -287,9 +287,11 @@ public class LabelRidgetTest extends AbstractSWTRidgetTest {
}
/**
- * Test method getUIControlObservable().
+ * Test deprecated method getRidgetObservable(). When this method is removed
+ * the test may be removed too.
*/
- public void testGetUIControlObservable() throws Exception {
+ @SuppressWarnings("deprecation")
+ public void testGetRidgetObservable() throws Exception {
ILabelRidget ridget = getRidget();
IObservableValue ridgetObservable = ridget.getRidgetObservable();
@@ -311,8 +313,10 @@ public class LabelRidgetTest extends AbstractSWTRidgetTest {
}
/**
- * Test method getValueType().
+ * Test method getValueType(). When the deprecated method
+ * getRidgetObservable() is removed this test may be removed too.
*/
+ @SuppressWarnings("deprecation")
public void testGetValueType() throws Exception {
ILabelRidget ridget = getRidget();
assertEquals(String.class, ridget.getRidgetObservable().getValueType());