Changeset 33808 in osm for applications/editors/josm/plugins/wikipedia/test/unit
- Timestamp:
- 2017-11-13T06:31:02+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/wikipedia/test/unit/org/wikipedia
- Files:
-
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/test/unit/org/wikipedia/gui/SophoxServerPreferenceTest.java
r33807 r33808 13 13 14 14 /** 15 * Unit tests of {@link WikosmServerPreference} class.15 * Unit tests of {@link SophoxServerPreference} class. 16 16 */ 17 public class WikosmServerPreferenceTest {17 public class SophoxServerPreferenceTest { 18 18 19 19 /** … … 25 25 26 26 /** 27 * Unit test of {@link WikosmServerPreference}.27 * Unit test of {@link SophoxServerPreference}. 28 28 */ 29 29 @Test 30 public void test WikosmServerPreference() {31 assertNotNull(new WikosmServerPreference.Factory().createPreferenceSetting());30 public void testSophoxServerPreference() { 31 assertNotNull(new SophoxServerPreference.Factory().createPreferenceSetting()); 32 32 } 33 33 34 34 /** 35 * Unit test of {@link WikosmServerPreference#addGui}.35 * Unit test of {@link SophoxServerPreference#addGui}. 36 36 */ 37 37 @Test 38 38 public void testAddGui() { 39 PreferencesTestUtils.doTestPreferenceSettingAddGui(new WikosmServerPreference.Factory(), ServerAccessPreference.class);39 PreferencesTestUtils.doTestPreferenceSettingAddGui(new SophoxServerPreference.Factory(), ServerAccessPreference.class); 40 40 } 41 41 } -
applications/editors/josm/plugins/wikipedia/test/unit/org/wikipedia/io/SophoxDownloadReaderTest.java
r33807 r33808 21 21 22 22 /** 23 * Unit tests of {@link WikosmDownloadReader} class.23 * Unit tests of {@link SophoxDownloadReader} class. 24 24 */ 25 public class WikosmDownloadReaderTest {25 public class SophoxDownloadReaderTest { 26 26 27 27 /** … … 37 37 @Test 38 38 public void testPoint() throws UnsupportedEncodingException { 39 assertThat( WikosmDownloadReader.point(9.5, 47.16),39 assertThat(SophoxDownloadReader.point(9.5, 47.16), 40 40 is("\"Point(9.5 47.16)\"^^geo:wktLiteral")); 41 assertThat( WikosmDownloadReader.boxParams(1.1, 2.2, 3.3, 4.4),41 assertThat(SophoxDownloadReader.boxParams(1.1, 2.2, 3.3, 4.4), 42 42 is("\nbd:serviceParam wikibase:cornerWest \"Point(1.1 2.2)\"^^geo:wktLiteral." + 43 43 "\nbd:serviceParam wikibase:cornerEast \"Point(3.3 4.4)\"^^geo:wktLiteral.\n")); … … 58 58 59 59 InputStream stream = new ByteArrayInputStream(json.getBytes(StandardCharsets.UTF_8.name())); 60 List<PrimitiveId> actual = WikosmDownloadReader.getPrimitiveIds(stream);60 List<PrimitiveId> actual = SophoxDownloadReader.getPrimitiveIds(stream); 61 61 62 62 List<PrimitiveId> expected = Arrays.asList(new PrimitiveId[]{
Note:
See TracChangeset
for help on using the changeset viewer.