Changeset 32078 in osm for applications/editors/josm/plugins/mapillary/test
- Timestamp:
- 2016-02-19T23:36:27+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mapillary/test/unit/org/openstreetmap/josm/plugins/mapillary/gui/MapillaryPreferenceSettingTest.java
r31909 r32078 47 47 assertEquals(I18n.tr("You are currently not logged in."), ((JLabel) getPrivateField(setting, "loginLabel")).getText()); 48 48 assertFalse(((JPanel) getPrivateField(setting, "loginPanel")).isAncestorOf(((JButton) getPrivateField(setting, "logoutButton")))); 49 assertTrue(((JPanel) getPrivateField(setting, "loginPanel")).isAncestorOf(((JButton) getPrivateField(setting, "loginButton")))); 49 50 50 51 String username = "TheMapillaryUsername"; 51 52 setting.onLogin(username); 52 53 53 assertEquals(I18n.tr(" Re-Login"), ((JButton) getPrivateField(setting, "loginButton")).getText());54 assertEquals(I18n.tr("Login"), ((JButton) getPrivateField(setting, "loginButton")).getText()); 54 55 assertEquals(I18n.tr("You are logged in as ''{0}''.", username), ((JLabel) getPrivateField(setting, "loginLabel")).getText()); 55 56 assertTrue(((JPanel) getPrivateField(setting, "loginPanel")).isAncestorOf(((JButton) getPrivateField(setting, "logoutButton")))); 57 assertFalse(((JPanel) getPrivateField(setting, "loginPanel")).isAncestorOf(((JButton) getPrivateField(setting, "loginButton")))); 56 58 } 57 59
Note:
See TracChangeset
for help on using the changeset viewer.