Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[android] #4702 - fix order styles, added test to check style version…
Browse files Browse the repository at this point in the history
… of the test app.
  • Loading branch information
tobrun committed Apr 24, 2016
1 parent 81ddb5a commit 0b9b2a3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ public class DebugModeActivity extends AppCompatActivity {

private static final String[] STYLES = new String[]{
Style.getMapboxStreetsUrl(AppConstant.STYLE_VERSION),
Style.getOutdoorsStyleUrl(AppConstant.STYLE_VERSION),
Style.getLightStyleUrl(AppConstant.STYLE_VERSION),
Style.getDarkStyleUrl(AppConstant.STYLE_VERSION),
Style.getSatelliteStyleUrl(AppConstant.STYLE_VERSION),
Style.getSatelliteStreetsStyleUrl(AppConstant.STYLE_VERSION),
Style.getOutdoorsStyleUrl(AppConstant.STYLE_VERSION)
Style.getSatelliteStreetsStyleUrl(AppConstant.STYLE_VERSION)
};

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.mapbox.mapboxsdk.constants;

import com.mapbox.mapboxsdk.testapp.model.constants.AppConstant;

import org.junit.Test;

import static junit.framework.Assert.assertEquals;

public class StyleVersionTest {

private static final double DELTA = 1e-15;

@Test
public void testSanity() {
assertEquals("Style version should match, when upgrading, verify that integers.xml is updated",
AppConstant.STYLE_VERSION,
9,
DELTA);
}
}

0 comments on commit 0b9b2a3

Please sign in to comment.