Exclude API28 crashing test

pull/695/head
Mattia Iavarone 6 years ago
parent fe0476615b
commit 324e38b5f2
  1. 9
      cameraview/src/androidTest/java/com/otaliastudios/cameraview/markers/MarkerLayoutTest.java

@ -31,6 +31,11 @@ import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
/**
* Not clear why, but for some reason on API 28 the UiThreadTests here crash for an internal NPE
* in FrameLayout.onMeasure.
*/
@SdkExclude(minSdkVersion = 28, maxSdkVersion = 28)
@TargetApi(17)
public class MarkerLayoutTest extends BaseTest {
@ -86,12 +91,8 @@ public class MarkerLayoutTest extends BaseTest {
Mockito.eq(markerLayout));
}
/**
* Not clear why, but on API 28 this test crashes for an internal NPE in FrameLayout.onMeasure.
*/
@Test
@UiThreadTest
@SdkExclude(minSdkVersion = 28, maxSdkVersion = 28)
public void testOnEvent() {
final View mockView = spy(new View(getContext()));
// These fail, however it's not really needed.

Loading…
Cancel
Save