|
|
|
@ -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.
|
|
|
|
|