Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/test/java/net/bramp/ffmpeg/FFprobeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,11 @@ public void testProbeDefaultArguments() throws IOException {

verify(runFunc, times(2)).run(argsCaptor.capture());

List<String> value = argsCaptor.getValue();
List<String> value = argsCaptor.getValue().subList(1, argsCaptor.getValue().size());

assertThat(
value,
is(ImmutableList.of("ffprobe", "-v", "quiet", "-print_format", "json", "-show_error", "-show_format", "-show_streams", "-show_chapters", Samples.always_on_my_mind))
is(ImmutableList.of("-v", "quiet", "-print_format", "json", "-show_error", "-show_format", "-show_streams", "-show_chapters", Samples.always_on_my_mind))
);
}

Expand All @@ -437,11 +437,11 @@ public void testProbeProbeBuilder() throws IOException {

verify(runFunc, times(2)).run(argsCaptor.capture());

List<String> value = argsCaptor.getValue();
List<String> value = argsCaptor.getValue().subList(1, argsCaptor.getValue().size());

assertThat(
value,
is(ImmutableList.of("ffprobe", "-v", "quiet", "-print_format", "json", "-show_error", "-show_format", "-show_streams", "-show_chapters", Samples.always_on_my_mind))
is(ImmutableList.of("-v", "quiet", "-print_format", "json", "-show_error", "-show_format", "-show_streams", "-show_chapters", Samples.always_on_my_mind))
);
}

Expand All @@ -451,11 +451,11 @@ public void testProbeProbeBuilderBuilt() throws IOException {

verify(runFunc, times(2)).run(argsCaptor.capture());

List<String> value = argsCaptor.getValue();
List<String> value = argsCaptor.getValue().subList(1, argsCaptor.getValue().size());

assertThat(
value,
is(ImmutableList.of("ffprobe", "-v", "quiet", "-print_format", "json", "-show_error", "-show_format", "-show_streams", "-show_chapters", Samples.always_on_my_mind))
is(ImmutableList.of("-v", "quiet", "-print_format", "json", "-show_error", "-show_format", "-show_streams", "-show_chapters", Samples.always_on_my_mind))
);
}

Expand All @@ -465,11 +465,11 @@ public void testProbeProbeExtraArgs() throws IOException {

verify(runFunc, times(2)).run(argsCaptor.capture());

List<String> value = argsCaptor.getValue();
List<String> value = argsCaptor.getValue().subList(1, argsCaptor.getValue().size());

assertThat(
value,
is(ImmutableList.of("ffprobe", "-v", "quiet", "-print_format", "json", "-show_error", "-rw_timeout", "0", "-show_format", "-show_streams", "-show_chapters", Samples.always_on_my_mind))
is(ImmutableList.of("-v", "quiet", "-print_format", "json", "-show_error", "-rw_timeout", "0", "-show_format", "-show_streams", "-show_chapters", Samples.always_on_my_mind))
);
}

Expand All @@ -479,11 +479,11 @@ public void testProbeProbeUserAgent() throws IOException {

verify(runFunc, times(2)).run(argsCaptor.capture());

List<String> value = argsCaptor.getValue();
List<String> value = argsCaptor.getValue().subList(1, argsCaptor.getValue().size());

assertThat(
value,
is(ImmutableList.of("ffprobe", "-v", "quiet", "-print_format", "json", "-show_error", "-user_agent", "ffmpeg-cli-wrapper", "-show_format", "-show_streams", "-show_chapters", Samples.always_on_my_mind))
is(ImmutableList.of("-v", "quiet", "-print_format", "json", "-show_error", "-user_agent", "ffmpeg-cli-wrapper", "-show_format", "-show_streams", "-show_chapters", Samples.always_on_my_mind))
);
}
}