Skip to content

Commit 8bd7d47

Browse files
authored
TravisCI doesn't run in X11 mode
AWT Desktop methods can still be used in DISPLAY mode
1 parent 1184da4 commit 8bd7d47

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/SdkUnitTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import com.docusign.esign.client.auth.OAuth;
55
import com.docusign.esign.client.auth.OAuth.UserInfo;
66
import java.io.File;
7-
import java.awt.Desktop;
7+
//import java.awt.Desktop;
88

99
import org.joda.time.DateTime;
1010
import org.junit.*;
@@ -137,7 +137,7 @@ public void AuthorizationCodeLoginTest() {
137137
// get DocuSign OAuth authorization url
138138
URI oauthLoginUrl = apiClient.getAuthorizationUri(IntegratorKey, scopes, RedirectURI, OAuth.CODE, randomState);
139139
// open DocuSign OAuth login in the browser
140-
Desktop.getDesktop().browse(oauthLoginUrl);
140+
//Desktop.getDesktop().browse(oauthLoginUrl);
141141
// IMPORTANT: after the login, DocuSign will send back a fresh
142142
// authorization code as a query param of the redirect URI.
143143
// You should set up a route that handles the redirect call to get
@@ -185,7 +185,7 @@ public void ImplicitLoginTest() {
185185
// get DocuSign OAuth authorization url
186186
URI oAuthLoginUri = apiClient.getAuthorizationUri(IntegratorKeyImplicit, scopes, RedirectURI, OAuth.TOKEN, randomState);
187187
// open DocuSign OAuth login in the browser
188-
Desktop.getDesktop().browse(oAuthLoginUri);
188+
//Desktop.getDesktop().browse(oAuthLoginUri);
189189
// IMPORTANT: after the login, DocuSign will send back a new
190190
// access token in the hash fragment of the redirect URI.
191191
// You should set up a client-side handler that handles window.location change to get
@@ -549,7 +549,7 @@ public void EmbeddedSigningTest() {
549549

550550
Assert.assertNotNull(viewUrl);
551551
Assert.assertNotNull(viewUrl.getUrl());
552-
Desktop.getDesktop().browse(URI.create(viewUrl.getUrl()));
552+
//Desktop.getDesktop().browse(URI.create(viewUrl.getUrl()));
553553
// This Url should work in an Iframe or browser to allow signing
554554
System.out.println("ViewUrl is " + viewUrl);
555555

@@ -1692,4 +1692,4 @@ private String[] getLastTenEnvelopeIds() {
16921692

16931693
return envelopeIds;
16941694
}
1695-
}
1695+
}

0 commit comments

Comments
 (0)