Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGrant Gayed2006-10-17 21:29:24 +0000
committerGrant Gayed2006-10-17 21:29:24 +0000
commitf59b8c4f6e3402e346615bc3530691504ae92ffb (patch)
tree6b9dd864c004a039e96e7c50878133ed47100326 /tests
parentd8d47f31030b0f019027b58a46920c7a4bdfdcae (diff)
downloadeclipse.platform.swt-f59b8c4f6e3402e346615bc3530691504ae92ffb.tar.gz
eclipse.platform.swt-f59b8c4f6e3402e346615bc3530691504ae92ffb.tar.xz
eclipse.platform.swt-f59b8c4f6e3402e346615bc3530691504ae92ffb.zip
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Combo.java2
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java5
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Combo.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Combo.java
index dd8818c53e..a75b20a258 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Combo.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Combo.java
@@ -142,6 +142,7 @@ public void test_addModifyListenerLorg_eclipse_swt_events_ModifyListener() {
exceptionThrown = true;
}
assertTrue("Expected exception not thrown", exceptionThrown);
+ exceptionThrown = false;
// test whether all content modifying API methods send a Modify event
combo.addModifyListener(listener);
@@ -160,6 +161,7 @@ public void test_addModifyListenerLorg_eclipse_swt_events_ModifyListener() {
catch (IllegalArgumentException e) {
exceptionThrown = true;
}
+ assertTrue("Expected exception not thrown", exceptionThrown);
}
public void test_addSelectionListenerLorg_eclipse_swt_events_SelectionListener() {
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java
index 0641664b36..396f02d2d2 100644
--- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java
+++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java
@@ -73,6 +73,7 @@ public void test_addModifyListenerLorg_eclipse_swt_events_ModifyListener() {
exceptionThrown = true;
}
assertTrue("Expected exception not thrown", exceptionThrown);
+ exceptionThrown = false;
// test whether all content modifying API methods send a Modify event
text.addModifyListener(listener);
@@ -91,6 +92,7 @@ public void test_addModifyListenerLorg_eclipse_swt_events_ModifyListener() {
catch (IllegalArgumentException e) {
exceptionThrown = true;
}
+ assertTrue("Expected exception not thrown", exceptionThrown);
}
public void test_addSelectionListenerLorg_eclipse_swt_events_SelectionListener() {
@@ -1079,8 +1081,7 @@ public void test_setTextLimitI() {
catch (IllegalArgumentException e) {
exceptionThrown = true;
}
- assertTrue(":c:", exceptionThrown == true);
- exceptionThrown = false;
+ assertTrue(":c:", exceptionThrown);
}
public void test_setTextLjava_lang_String() {

Back to the top