This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[android] #4702 - fix order styles, added test to check style version…
… of the test app.
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...boxGLAndroidSDKTestApp/src/test/java/com/mapbox/mapboxsdk/constants/StyleVersionTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |