Skip to content

Commit 85be373

Browse files
committed
TravisCI doesn't seem to set System Properties
Using getenv
1 parent 1a15ffa commit 85be373

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/test/java/SdkUnitTests.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@
3030
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
3131
public class SdkUnitTests {
3232

33-
private static final String UserName = System.getProperty("USER_NAME");
34-
private static final String UserId = System.getProperty("USER_ID");
35-
private static final String IntegratorKey = System.getProperty("INTEGRATOR_KEY_JWT");
36-
private static final String IntegratorKeyImplicit = System.getProperty("INTEGRATOR_KEY_IMPLICIT");
37-
//private static final String ClientSecret = System.getProperty("CLIENT_SECRET");
38-
private static final String RedirectURI = System.getProperty("REDIRECT_URI");
33+
private static final String UserName = System.getenv("USER_NAME");
34+
private static final String UserId = System.getenv("USER_ID");
35+
private static final String IntegratorKey = System.getenv("INTEGRATOR_KEY_JWT");
36+
private static final String IntegratorKeyImplicit = System.getenv("INTEGRATOR_KEY_IMPLICIT");
37+
//private static final String ClientSecret = System.getenv("CLIENT_SECRET");
38+
private static final String RedirectURI = System.getenv("REDIRECT_URI");
3939

4040
private static final String BaseUrl = "https://demo.docusign.net/restapi";
4141
//private static final String OAuthBaseUrl = "account-d.docusign.com";
42-
private static final byte[] privateKeyBytes = System.getProperty("PRIVATE_KEY").getBytes();
42+
private static final byte[] privateKeyBytes = System.getenv("PRIVATE_KEY").getBytes();
4343
private static final String brandLogoFullPath = System.getProperty("user.dir") + "/src/test/docs/DS.png";
4444

4545
private static final String SignTest1File = "/src/test/docs/SignTest1.pdf";
46-
private static final String TemplateId = System.getProperty("TEMPLATE_ID");
47-
private static final String BrandId = System.getProperty("BRAND_ID");
46+
private static final String TemplateId = System.getenv("TEMPLATE_ID");
47+
private static final String BrandId = System.getenv("BRAND_ID");
4848
private String[] envelopeIds = new String[0];
4949
// JUnit 4.12 runs test cases in parallel, so the envelope ID needs to be initiated as well.
5050

@@ -78,7 +78,7 @@ public void tearDown() {
7878
public void JWTLoginTest() {
7979
System.out.println("\nJWTLoginTest:\n" + "===========================================");
8080
ApiClient apiClient = new ApiClient(BaseUrl);
81-
//String currentDir = System.getProperty("user.dir");
81+
//String currentDir = System.getenv("user.dir");
8282

8383
try {
8484
// IMPORTANT NOTE:

0 commit comments

Comments
 (0)