summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/layer.junit.ejs
diff options
context:
space:
mode:
authorTobrun <tobrun@mapbox.com>2017-03-31 17:51:26 +0200
committerGitHub <noreply@github.com>2017-03-31 17:51:26 +0200
commit939526bac4aff734be4e6382b64c43214eb0bc9b (patch)
treeb286e7b2b72b4776d2adfed628e0bebf38ec9710 /platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/layer.junit.ejs
parent05992c47aca0c83d5c0abc79c8e7833d69d24803 (diff)
downloadqtlocation-mapboxgl-939526bac4aff734be4e6382b64c43214eb0bc9b.tar.gz
[android] - transition options for layer properties (#8509)
[android] fixup highlevel bindings for transition options finish integration
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/layer.junit.ejs')
-rw-r--r--platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/layer.junit.ejs16
1 files changed, 16 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/layer.junit.ejs b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/layer.junit.ejs
index 3dc88d29bb..8aa0f15954 100644
--- a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/layer.junit.ejs
+++ b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/style/layer.junit.ejs
@@ -40,6 +40,8 @@ import static org.junit.Assert.*;
import static com.mapbox.mapboxsdk.style.layers.Property.*;
import static com.mapbox.mapboxsdk.style.layers.PropertyFactory.*;
+import com.mapbox.mapboxsdk.style.layers.TransitionOptions;
+
/**
* Basic smoke tests for <%- camelize(type) %>Layer
*/
@@ -91,6 +93,20 @@ public class <%- camelize(type) %>LayerTest extends BaseStyleTest {
}
<% for (const property of properties) { -%>
+<% if (property.transition) { -%>
+ @Test
+ public void test<%- camelize(property.name) %>Transition() {
+ checkViewIsDisplayed(R.id.mapView);
+ Timber.i("<%- property.name %>TransitionOptions");
+ assertNotNull(layer);
+
+ // Set and Get
+ TransitionOptions options = new TransitionOptions(300, 100);
+ layer.set<%- camelize(property.name) %>Transition(options);
+ assertEquals(layer.get<%- camelize(property.name) %>Transition(), options);
+ }
+<% } -%>
+
@Test
public void test<%- camelize(property.name) %>AsConstant() {
checkViewIsDisplayed(R.id.mapView);