File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
src/test/java/org/javalite/common Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 100
100
<artifactId >log4j</artifactId >
101
101
</dependency >
102
102
103
+ <dependency >
104
+ <groupId >org.apache.commons</groupId >
105
+ <artifactId >commons-lang3</artifactId >
106
+ <version >3.8.1</version >
107
+ <scope >test</scope >
108
+ </dependency >
103
109
</dependencies >
104
110
</project >
Original file line number Diff line number Diff line change 1
1
package org .javalite .common ;
2
2
3
+ import org .apache .commons .lang3 .SystemUtils ;
3
4
import org .junit .Test ;
4
5
5
6
import static org .javalite .common .RuntimeUtil .execute ;
6
7
import static org .javalite .test .jspec .JSpec .the ;
8
+ import static org .junit .Assume .assumeFalse ;
7
9
8
10
/**
9
11
* @author igor on 9/23/18.
@@ -12,21 +14,29 @@ public class RuntimeUtilSpec {
12
14
13
15
@ Test
14
16
public void shouldUseDefaultBufferSize (){
17
+ assumeFalse (SystemUtils .IS_OS_WINDOWS );
18
+
15
19
the (execute ("ls -ls" ).out ).shouldContain ("pom.xml" );
16
20
}
17
21
18
22
@ Test
19
23
public void shouldUseDefaultBufferSizeSplitArguments (){
24
+ assumeFalse (SystemUtils .IS_OS_WINDOWS );
25
+
20
26
the (execute ("ls" , "-ls" ).out ).shouldContain ("pom.xml" );
21
27
}
22
28
23
29
@ Test
24
30
public void shouldOverrideBufferSize (){
31
+ assumeFalse (SystemUtils .IS_OS_WINDOWS );
32
+
25
33
the (execute (4096 , "ls" , "-ls" ).out ).shouldContain ("pom.xml" );
26
34
}
27
35
28
36
@ Test
29
37
public void shouldOverrideBufferSizeSplitArguments (){
38
+ assumeFalse (SystemUtils .IS_OS_WINDOWS );
39
+
30
40
the (execute (4096 , "ls -ls" ).out ).shouldContain ("pom.xml" );
31
41
}
32
42
}
You can’t perform that action at this time.
0 commit comments