Exclude API28 crashing test

pull/695/head
Mattia Iavarone 6 years ago
parent 1276790b07
commit fe0476615b
  1. 5
      cameraview/src/androidTest/java/com/otaliastudios/cameraview/markers/MarkerLayoutTest.java

@ -9,6 +9,7 @@ import android.view.ViewGroup;
import com.otaliastudios.cameraview.BaseTest;
import com.otaliastudios.cameraview.TestActivity;
import com.otaliastudios.cameraview.runner.SdkExclude;
import org.junit.Assert;
import org.junit.Before;
@ -85,8 +86,12 @@ 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