File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
java/src/test/java/com/cybersource/ws/client Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
language : java
2
- " dist " : " precise"
2
+ " dist " : " trusty"
3
+
3
4
jdk :
4
- - oraclejdk8
5
- - oraclejdk7
6
- - openjdk7
7
- - openjdk6
5
+ - openjdk7
6
+ - oraclejdk8
Original file line number Diff line number Diff line change 9
9
import java .io .*;
10
10
import java .net .URL ;
11
11
import java .util .*;
12
- import java .util .stream .Collectors ;
13
12
14
13
public class UtilityTest extends BaseTest {
15
14
String propertiesFilename ;
16
15
Properties properties ;
17
16
18
17
@ Before
19
18
public void setUp () {
20
- InputStream is = Thread .currentThread ().getContextClassLoader ().getResourceAsStream ("test_cybs.properties" );
21
- if (is != null ) {
22
- propertiesFilename = new BufferedReader (new InputStreamReader (is )).lines ().collect (Collectors .joining ("\n " ));
19
+ URL fileUrl = Thread .currentThread ().getContextClassLoader ().getResource ("test_cybs.properties" );
20
+ String filepath = "" ;
21
+ if (fileUrl != null ) {
22
+ propertiesFilename = fileUrl .getFile ();
23
23
try {
24
24
properties = new Properties ();
25
- properties .load (is );
25
+ properties .load (new FileReader ( propertiesFilename ) );
26
26
} catch (IOException e ) {
27
27
fail ("Unable to load properties file" );
28
28
}
You can’t perform that action at this time.
0 commit comments