Exemple #1
0
 @Test
 public void shouldPointToDefaultTileService() throws Exception {
   assertThat(mapFragment.getTileBaseSource())
       .isEqualTo(
           mapFragment
               .getActivity()
               .getResources()
               .getString(R.string.settings_default_mapsource));
 }
Exemple #2
0
 @Test
 public void shouldPointToConfiguredTileService() throws Exception {
   String expected = "http://test.com";
   setTileSourceConfiguration(expected);
   assertThat(mapFragment.getTileBaseSource()).isEqualTo(expected);
 }