Changeset 18765 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2023-06-20T20:52:08+02:00 (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/server/OAuthAuthenticationPreferencesPanelTest.java
r18671 r18765 3 3 4 4 import static org.junit.jupiter.api.Assertions.assertAll; 5 import static org.junit.jupiter.api.Assertions.assertEquals; 5 6 import static org.junit.jupiter.api.Assertions.assertNotNull; 6 7 import static org.junit.jupiter.api.Assertions.assertNull; 7 8 import static org.junit.jupiter.api.Assertions.assertSame; 8 9 import static org.junit.jupiter.api.Assertions.fail; 10 import static org.openstreetmap.josm.tools.I18n.tr; 9 11 10 12 import java.lang.reflect.Field; … … 75 77 assertNotNull(getAuthorization(oAuthVersion)); 76 78 final JPanel buttons = (JPanel) ((JPanel) pnlAlreadyAuthorised.get(panel)).getComponent(6); 77 final JButton action = (JButton) buttons.getComponent(oAuthVersion == OAuthVersion.OAuth10a ? 2 : 0); 79 final JButton action = (JButton) buttons.getComponent(oAuthVersion == OAuthVersion.OAuth10a ? 2 : 1); 80 assertEquals(tr("Remove token"), action.getText(), "The selected button should be for removing the token"); 78 81 action.getAction().actionPerformed(null); 79 82 panel.saveToPreferences(); // Save to preferences should make the removal permanent
Note:
See TracChangeset
for help on using the changeset viewer.