File tree Expand file tree Collapse file tree 11 files changed +43
-48
lines changed
src/test/java/com/github/vbauer/avconv4java Expand file tree Collapse file tree 11 files changed +43
-48
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ private TestUtils() {
1313 }
1414
1515
16- public static void checkUtilClassConstructor (final Class <?> utilsClass ) throws Throwable {
16+ public static void checkUtilClassConstructor (final Class <?> utilsClass ) {
1717 PrivateConstructorChecker .forClass (utilsClass )
1818 .expectedTypeOfException (UnsupportedOperationException .class )
1919 .check ();
Original file line number Diff line number Diff line change 11package com .github .vbauer .avconv4java .core ;
22
3- import java .util .List ;
4-
53import org .testng .annotations .Test ;
64import org .testng .collections .Lists ;
5+
6+ import java .util .List ;
7+
78import static org .hamcrest .MatcherAssert .assertThat ;
8- import static org .hamcrest .Matchers .emptyIterable ;
9- import static org .hamcrest .Matchers .equalTo ;
10- import static org .hamcrest .Matchers .not ;
9+ import static org .hamcrest .Matchers .*;
1110
1211/**
1312 * @author Vladislav Bauer
@@ -22,7 +21,7 @@ public class AVRootOptionsTest {
2221 @ Test
2322 public void testSmokeAVRootOptions () {
2423 final AVRootOptions rootOptions = AVRootOptions .create (INPUT_FILE , OUTPUT_FILE )
25- .builders (Lists .< AVOptions > newArrayList ())
24+ .builders (Lists .newArrayList ())
2625 .builders ()
2726 .flags (Lists .newArrayList ())
2827 .flags ();
Original file line number Diff line number Diff line change 11package com .github .vbauer .avconv4java .option ;
22
3- import java .util .List ;
4-
5- import com .github .vbauer .avconv4java .core .AVOptions ;
63import com .github .vbauer .avconv4java .type .AVAudioCodecType ;
74import com .github .vbauer .avconv4java .type .AVStreamType ;
85import org .testng .annotations .Test ;
96import org .testng .collections .Lists ;
7+
8+ import java .util .List ;
9+
1010import static org .hamcrest .MatcherAssert .assertThat ;
1111import static org .hamcrest .Matchers .emptyIterable ;
1212import static org .hamcrest .Matchers .not ;
@@ -34,7 +34,7 @@ public void testSmokeAVAudioOptions() {
3434 .sampleFormat ("format" )
3535 .sampleRate (AVStreamType .AUDIO , 1 )
3636 .sampleRate (1 )
37- .builders (Lists .< AVOptions > newArrayList ())
37+ .builders (Lists .newArrayList ())
3838 .builders ()
3939 .flags (Lists .newArrayList ())
4040 .flags ()
Original file line number Diff line number Diff line change 11package com .github .vbauer .avconv4java .option ;
22
3- import java .util .List ;
4-
5- import com .github .vbauer .avconv4java .core .AVOptions ;
6- import com .github .vbauer .avconv4java .type .AVCodecFlagType ;
7- import com .github .vbauer .avconv4java .type .AVDebugInfoType ;
8- import com .github .vbauer .avconv4java .type .AVMotionEstimationType ;
9- import com .github .vbauer .avconv4java .type .AVStreamType ;
10- import com .github .vbauer .avconv4java .type .AVStrictType ;
3+ import com .github .vbauer .avconv4java .type .*;
114import org .testng .annotations .Test ;
125import org .testng .collections .Lists ;
6+
7+ import java .util .List ;
8+
139import static org .hamcrest .MatcherAssert .assertThat ;
1410import static org .hamcrest .Matchers .emptyIterable ;
1511import static org .hamcrest .Matchers .not ;
@@ -46,7 +42,7 @@ public void testSmokeAVCodecOptions() {
4642 .strict (AVStrictType .STRICT .getName ())
4743 .videoBitRateTolerance (AVStreamType .AUDIO , 1 )
4844 .videoBitRateTolerance (1 )
49- .builders (Lists .< AVOptions > newArrayList ())
45+ .builders (Lists .newArrayList ())
5046 .builders ()
5147 .flags (Lists .newArrayList ())
5248 .flags ()
Original file line number Diff line number Diff line change 11package com .github .vbauer .avconv4java .option ;
22
3- import java .util .List ;
4-
5- import com .github .vbauer .avconv4java .core .AVOptions ;
63import com .github .vbauer .avconv4java .type .AVErrorDetectionType ;
74import com .github .vbauer .avconv4java .type .AVFormatDebugInfoType ;
85import com .github .vbauer .avconv4java .type .AVFormatFlagType ;
96import org .testng .annotations .Test ;
107import org .testng .collections .Lists ;
8+
9+ import java .util .List ;
10+
1111import static org .hamcrest .MatcherAssert .assertThat ;
1212import static org .hamcrest .Matchers .emptyIterable ;
1313import static org .hamcrest .Matchers .not ;
@@ -36,7 +36,7 @@ public void testSmokeAVFormatOptions() {
3636 .probeSize (1L )
3737 .realTimeBufferSize (1L )
3838 .timestampIndexSize (1L )
39- .builders (Lists .< AVOptions > newArrayList ())
39+ .builders (Lists .newArrayList ())
4040 .builders ()
4141 .flags (Lists .newArrayList ())
4242 .flags ()
Original file line number Diff line number Diff line change 11package com .github .vbauer .avconv4java .option ;
22
3- import java .util .List ;
4-
5- import com .github .vbauer .avconv4java .core .AVOptions ;
63import com .github .vbauer .avconv4java .type .AVLogLevelType ;
74import org .testng .annotations .Test ;
85import org .testng .collections .Lists ;
6+
7+ import java .util .List ;
8+
99import static org .hamcrest .MatcherAssert .assertThat ;
1010import static org .hamcrest .Matchers .emptyIterable ;
1111import static org .hamcrest .Matchers .not ;
@@ -24,7 +24,7 @@ public void testSmokeAVGenericOptions() {
2424 .logLevel (AVLogLevelType .DEBUG )
2525 .logLevel (AVLogLevelType .DEBUG .getName ())
2626 .showLicense ()
27- .builders (Lists .< AVOptions > newArrayList ())
27+ .builders (Lists .newArrayList ())
2828 .builders ()
2929 .flags (Lists .newArrayList ())
3030 .flags ()
Original file line number Diff line number Diff line change 11package com .github .vbauer .avconv4java .option ;
22
3- import java .util .List ;
4-
5- import com .github .vbauer .avconv4java .core .AVOptions ;
63import com .github .vbauer .avconv4java .type .AVFileFormatType ;
74import com .github .vbauer .avconv4java .type .AVStreamType ;
85import com .github .vbauer .avconv4java .type .AVTargetFileType ;
96import org .testng .annotations .Test ;
107import org .testng .collections .Lists ;
8+
9+ import java .util .List ;
10+
1111import static org .hamcrest .MatcherAssert .assertThat ;
1212import static org .hamcrest .Matchers .emptyIterable ;
1313import static org .hamcrest .Matchers .not ;
@@ -49,7 +49,7 @@ public void testSmokeAVMainOptions() {
4949 .seek ("position" )
5050 .target (AVTargetFileType .DV )
5151 .target (AVTargetFileType .DV .getName ())
52- .builders (Lists .< AVOptions > newArrayList ())
52+ .builders (Lists .newArrayList ())
5353 .builders ()
5454 .flags (Lists .newArrayList ())
5555 .flags ()
Original file line number Diff line number Diff line change 11package com .github .vbauer .avconv4java .option ;
22
3- import java .util .List ;
4-
5- import com .github .vbauer .avconv4java .core .AVOptions ;
63import org .testng .annotations .Test ;
74import org .testng .collections .Lists ;
5+
6+ import java .util .List ;
7+
88import static org .hamcrest .MatcherAssert .assertThat ;
99import static org .hamcrest .Matchers .emptyIterable ;
1010import static org .hamcrest .Matchers .not ;
@@ -20,7 +20,7 @@ public void testSmokeAVSubtitleOptions() {
2020 final List <String > options = AVSubtitleOptions .create ()
2121 .disableRecording ()
2222 .subtitleCodec ("codecName" )
23- .builders (Lists .< AVOptions > newArrayList ())
23+ .builders (Lists .newArrayList ())
2424 .builders ()
2525 .flags (Lists .newArrayList ())
2626 .flags ()
Original file line number Diff line number Diff line change 11package com .github .vbauer .avconv4java .option ;
22
3- import java .util .List ;
4-
5- import com .github .vbauer .avconv4java .core .AVOptions ;
63import com .github .vbauer .avconv4java .type .AVMovFlagsType ;
74import com .github .vbauer .avconv4java .type .AVStreamType ;
85import com .github .vbauer .avconv4java .type .AVVideoCodecType ;
96import com .github .vbauer .avconv4java .type .AVVideoSizeType ;
107import org .testng .annotations .Test ;
118import org .testng .collections .Lists ;
9+
10+ import java .util .List ;
11+
1212import static org .hamcrest .MatcherAssert .assertThat ;
1313import static org .hamcrest .Matchers .emptyIterable ;
1414import static org .hamcrest .Matchers .not ;
@@ -50,7 +50,7 @@ public void testSmokeAVVideoOptions() {
5050 .twoPassEncoding (AVStreamType .AUDIO )
5151 .videoCodec (AVVideoCodecType .H264 )
5252 .videoCodec (AVVideoCodecType .H264 .getName ())
53- .builders (Lists .< AVOptions > newArrayList ())
53+ .builders (Lists .newArrayList ())
5454 .builders ()
5555 .flags (Lists .newArrayList ())
5656 .flags ()
Original file line number Diff line number Diff line change 11package com .github .vbauer .avconv4java .option .advanced ;
22
3- import java .util .List ;
4-
5- import com .github .vbauer .avconv4java .core .AVOptions ;
63import com .github .vbauer .avconv4java .type .AVVideoSyncType ;
74import org .testng .annotations .Test ;
85import org .testng .collections .Lists ;
6+
7+ import java .util .List ;
8+
99import static org .hamcrest .MatcherAssert .assertThat ;
1010import static org .hamcrest .Matchers .emptyIterable ;
1111import static org .hamcrest .Matchers .not ;
@@ -33,7 +33,7 @@ public void testSmokeAVAdvancedOptions() {
3333 .timeLimit (1L )
3434 .videoSyncMethod (AVVideoSyncType .AUTO )
3535 .videoSyncMethod (AVVideoSyncType .AUTO .getName ())
36- .builders (Lists .< AVOptions > newArrayList ())
36+ .builders (Lists .newArrayList ())
3737 .builders ()
3838 .flags (Lists .newArrayList ())
3939 .flags ()
You can’t perform that action at this time.
0 commit comments