From 845731f822e3981d9c34c1861852062fe5d173b4 Mon Sep 17 00:00:00 2001 From: Jeroen Mols Date: Wed, 15 Mar 2017 22:31:53 +0100 Subject: [PATCH] Fixed failing tests due to changed constructor --- .../recorder/VideoRecorderTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/src/androidTest/java/com/jmolsmobile/landscapevideocapture/recorder/VideoRecorderTest.java b/library/src/androidTest/java/com/jmolsmobile/landscapevideocapture/recorder/VideoRecorderTest.java index da45643..18d8aa2 100644 --- a/library/src/androidTest/java/com/jmolsmobile/landscapevideocapture/recorder/VideoRecorderTest.java +++ b/library/src/androidTest/java/com/jmolsmobile/landscapevideocapture/recorder/VideoRecorderTest.java @@ -210,7 +210,7 @@ public void notifyListenerWhenStoppedSuccess() throws Exception { @Test public void mediaRecorderShouldHaveMediaRecorderOptions() throws Exception { - final CaptureConfiguration config = new CaptureConfiguration(); + final CaptureConfiguration config = CaptureConfiguration.getDefault(); CamcorderProfile profile = getEmptyCamcorderProfile(); final VideoRecorder recorder = new VideoRecorder(null, config, mock(VideoFile.class), createMockCameraWrapperForPrepare(profile), mock(SurfaceHolder.class), false); @@ -228,7 +228,7 @@ public void mediaRecorderShouldHaveMediaRecorderOptions() throws Exception { @Test public void mediaRecorderShouldHaveConfigurationOptions() throws Exception { - final CaptureConfiguration config = new CaptureConfiguration(); + final CaptureConfiguration config = CaptureConfiguration.getDefault(); CamcorderProfile profile = getEmptyCamcorderProfile(); CameraWrapper mockWrapper = createMockCameraWrapperForPrepare(profile); doReturn(new RecordingSize(777, 888)).when(mockWrapper).getSupportedRecordingSize(anyInt(), anyInt()); @@ -247,7 +247,7 @@ public void mediaRecorderShouldHaveConfigurationOptions() throws Exception { @Test public void mediaRecorderShouldHaveOtherOptions() throws Exception { - final CaptureConfiguration config = new CaptureConfiguration(); + final CaptureConfiguration config = CaptureConfiguration.getDefault(); final SurfaceHolder mockHolder = mock(SurfaceHolder.class); final Surface mockSurface = mock(Surface.class); doReturn(mockSurface).when(mockHolder).getSurface(); @@ -267,7 +267,7 @@ public void mediaRecorderShouldHaveOtherOptions() throws Exception { @Test public void mediaRecorderShouldHaveRotationCorrection() throws Exception { - final CaptureConfiguration config = new CaptureConfiguration(); + final CaptureConfiguration config = CaptureConfiguration.getDefault(); final SurfaceHolder mockHolder = mock(SurfaceHolder.class); final Surface mockSurface = mock(Surface.class); doReturn(mockSurface).when(mockHolder).getSurface(); @@ -286,7 +286,7 @@ public void mediaRecorderShouldHaveRotationCorrection() throws Exception { @Test public void continueInitialisationWhenSetMaxFilesizeFails() throws Exception { - final CaptureConfiguration config = new CaptureConfiguration(); + final CaptureConfiguration config = CaptureConfiguration.getDefault(); final VideoRecorder spyRecorder = spy(new VideoRecorder(null, config, mock(VideoFile.class), createMockCameraWrapperForInitialisation(), mock(SurfaceHolder.class), false)); @@ -303,7 +303,7 @@ public void continueInitialisationWhenSetMaxFilesizeFails() throws Exception { @Test public void continueInitialisationWhenSetMaxFilesizeFails2() throws Exception { - final CaptureConfiguration config = new CaptureConfiguration(); + final CaptureConfiguration config = CaptureConfiguration.getDefault(); final VideoRecorder spyRecorder = spy(new VideoRecorder(null, config, mock(VideoFile.class), createMockCameraWrapperForInitialisation(), mock(SurfaceHolder.class), false));