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 11language : java
2- " dist " : " precise"
2+ " dist " : " trusty"
3+
34jdk :
4- - oraclejdk8
5- - oraclejdk7
6- - openjdk7
7- - openjdk6
5+ - openjdk7
6+ - oraclejdk8
Original file line number Diff line number Diff line change 99import java .io .*;
1010import java .net .URL ;
1111import java .util .*;
12- import java .util .stream .Collectors ;
1312
1413public class UtilityTest extends BaseTest {
1514 String propertiesFilename ;
1615 Properties properties ;
1716
1817 @ Before
1918 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 ();
2323 try {
2424 properties = new Properties ();
25- properties .load (is );
25+ properties .load (new FileReader ( propertiesFilename ) );
2626 } catch (IOException e ) {
2727 fail ("Unable to load properties file" );
2828 }
You can’t perform that action at this time.
0 commit comments