Project: SWT
Bug 102830 Junit test of TableColumn (test_setTextLjava_lang_String) use wrong comparaison operator
Reported: 2005-07-06 08:35:26 | Status: verified fixed

In the junit test test_setTextLjava_lang_String from Test_org_eclipse_swt_widgets_TableColumn.java, wrong comparaison operator is used to compare 2 strings: .. assertTrue(":a:", tableColumn.getText() == ""); tableColumn.setText("text"); assertTrue(":b:", tableColumn.getText() == "text"); .. it should be replaced by either a .equals() or an assertEquals(..)

Files changed in fix:
tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_TableColumn.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_TreeColumn.java