[android] - add get source id to supported layer types
This commit is contained in:
@@ -50,6 +50,18 @@ public class CircleLayerTest extends BaseActivityTest {
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSourceId() {
|
||||
validateTestSetup();
|
||||
setupLayer();
|
||||
Timber.i("SourceId");
|
||||
invoke(mapboxMap, (uiController, mapboxMap) -> {
|
||||
assertNotNull(layer);
|
||||
// Get source id
|
||||
assertEquals(layer.getSourceId(), "composite");
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetVisibility() {
|
||||
validateTestSetup();
|
||||
|
||||
@@ -50,6 +50,18 @@ public class FillExtrusionLayerTest extends BaseActivityTest {
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSourceId() {
|
||||
validateTestSetup();
|
||||
setupLayer();
|
||||
Timber.i("SourceId");
|
||||
invoke(mapboxMap, (uiController, mapboxMap) -> {
|
||||
assertNotNull(layer);
|
||||
// Get source id
|
||||
assertEquals(layer.getSourceId(), "composite");
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetVisibility() {
|
||||
validateTestSetup();
|
||||
|
||||
@@ -50,6 +50,18 @@ public class FillLayerTest extends BaseActivityTest {
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSourceId() {
|
||||
validateTestSetup();
|
||||
setupLayer();
|
||||
Timber.i("SourceId");
|
||||
invoke(mapboxMap, (uiController, mapboxMap) -> {
|
||||
assertNotNull(layer);
|
||||
// Get source id
|
||||
assertEquals(layer.getSourceId(), "composite");
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetVisibility() {
|
||||
validateTestSetup();
|
||||
|
||||
@@ -50,6 +50,18 @@ public class HeatmapLayerTest extends BaseActivityTest {
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSourceId() {
|
||||
validateTestSetup();
|
||||
setupLayer();
|
||||
Timber.i("SourceId");
|
||||
invoke(mapboxMap, (uiController, mapboxMap) -> {
|
||||
assertNotNull(layer);
|
||||
// Get source id
|
||||
assertEquals(layer.getSourceId(), "composite");
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetVisibility() {
|
||||
validateTestSetup();
|
||||
|
||||
@@ -50,6 +50,18 @@ public class HillshadeLayerTest extends BaseActivityTest {
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSourceId() {
|
||||
validateTestSetup();
|
||||
setupLayer();
|
||||
Timber.i("SourceId");
|
||||
invoke(mapboxMap, (uiController, mapboxMap) -> {
|
||||
assertNotNull(layer);
|
||||
// Get source id
|
||||
assertEquals(layer.getSourceId(), "composite");
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetVisibility() {
|
||||
validateTestSetup();
|
||||
|
||||
@@ -50,6 +50,18 @@ public class LineLayerTest extends BaseActivityTest {
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSourceId() {
|
||||
validateTestSetup();
|
||||
setupLayer();
|
||||
Timber.i("SourceId");
|
||||
invoke(mapboxMap, (uiController, mapboxMap) -> {
|
||||
assertNotNull(layer);
|
||||
// Get source id
|
||||
assertEquals(layer.getSourceId(), "composite");
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetVisibility() {
|
||||
validateTestSetup();
|
||||
|
||||
@@ -50,6 +50,18 @@ public class RasterLayerTest extends BaseActivityTest {
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSourceId() {
|
||||
validateTestSetup();
|
||||
setupLayer();
|
||||
Timber.i("SourceId");
|
||||
invoke(mapboxMap, (uiController, mapboxMap) -> {
|
||||
assertNotNull(layer);
|
||||
// Get source id
|
||||
assertEquals(layer.getSourceId(), "composite");
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetVisibility() {
|
||||
validateTestSetup();
|
||||
|
||||
@@ -50,6 +50,18 @@ public class SymbolLayerTest extends BaseActivityTest {
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSourceId() {
|
||||
validateTestSetup();
|
||||
setupLayer();
|
||||
Timber.i("SourceId");
|
||||
invoke(mapboxMap, (uiController, mapboxMap) -> {
|
||||
assertNotNull(layer);
|
||||
// Get source id
|
||||
assertEquals(layer.getSourceId(), "composite");
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSetVisibility() {
|
||||
validateTestSetup();
|
||||
|
||||
@@ -60,6 +60,20 @@ public class <%- camelize(type) %>LayerTest extends BaseActivityTest {
|
||||
});
|
||||
<% } -%>
|
||||
}
|
||||
<% if (type !== 'background') { -%>
|
||||
|
||||
@Test
|
||||
public void testSourceId() {
|
||||
validateTestSetup();
|
||||
setupLayer();
|
||||
Timber.i("SourceId");
|
||||
invoke(mapboxMap, (uiController, mapboxMap) -> {
|
||||
assertNotNull(layer);
|
||||
// Get source id
|
||||
assertEquals(layer.getSourceId(), "composite");
|
||||
});
|
||||
}
|
||||
<% } -%>
|
||||
|
||||
@Test
|
||||
public void testSetVisibility() {
|
||||
|
||||
Reference in New Issue
Block a user