Skip to content

Commit fe6d2e0

Browse files
author
Ilja
committed
Adjustments
1 parent 6353870 commit fe6d2e0

2 files changed

Lines changed: 26 additions & 26 deletions

File tree

videokit/src/test/java/processing/ffmpeg/videokit/CommandBuilderTest.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ public void shouldThrowOnIncorrectInputPath() {
4747
builder.addInputPath("aaaaa");
4848
}
4949

50-
private String getTestFilePath() {
51-
final ClassLoader classLoader = getClass().getClassLoader();
52-
final URL resource = classLoader.getResource("test");
53-
return resource.getPath();
54-
}
55-
5650
@Test
5751
public void shouldCreateCorrectBuilder() {
5852
//given
@@ -62,20 +56,6 @@ public void shouldCreateCorrectBuilder() {
6256
builder.build();
6357
}
6458

65-
private boolean areStringArraysEqual(String[] actual, String[] expected) {
66-
if (actual.length != expected.length) {
67-
return false;
68-
}
69-
70-
for (int i = 0; i < actual.length; i++) {
71-
if (!actual[i].equals(expected[i])) {
72-
return false;
73-
}
74-
}
75-
76-
return true;
77-
}
78-
7959
@Test
8060
public void shouldAppendOverwriteFlag() {
8161
// given
@@ -220,4 +200,24 @@ private CommandBuilder getCorrectCommandBuilder() {
220200
.addInputPath(testPath)
221201
.addOutputPath(testPath);
222202
}
203+
204+
private String getTestFilePath() {
205+
final ClassLoader classLoader = getClass().getClassLoader();
206+
final URL resource = classLoader.getResource("test");
207+
return resource.getPath();
208+
}
209+
210+
private boolean areStringArraysEqual(String[] actual, String[] expected) {
211+
if (actual.length != expected.length) {
212+
return false;
213+
}
214+
215+
for (int i = 0; i < actual.length; i++) {
216+
if (!actual[i].equals(expected[i])) {
217+
return false;
218+
}
219+
}
220+
221+
return true;
222+
}
223223
}

videokit/src/test/java/processing/ffmpeg/videokit/CommandTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ public void setUp() {
2828
.when(videoKit).process(Mockito.any(String[].class));
2929
}
3030

31-
private String getTestFilePath() {
32-
final ClassLoader classLoader = getClass().getClassLoader();
33-
final URL resource = classLoader.getResource("test");
34-
return resource.getPath();
35-
}
36-
3731
@Test
3832
public void shouldReturnSuccess() {
3933
//given
@@ -48,4 +42,10 @@ public void shouldReturnSuccess() {
4842
//then
4943
assertEquals(VideoProcessingResult.SUCCESSFUL_RESULT, result);
5044
}
45+
46+
private String getTestFilePath() {
47+
final ClassLoader classLoader = getClass().getClassLoader();
48+
final URL resource = classLoader.getResource("test");
49+
return resource.getPath();
50+
}
5151
}

0 commit comments

Comments
 (0)