Skip to content

Commit

Permalink
fixed a problem with the BB and GH unit tests on travis
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Wittmann <eric.wittmann@gmail.com>
  • Loading branch information
EricWittmann committed Nov 30, 2017
1 parent 5113c75 commit 1519e2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ public static void globalSetUp() {

@Before
public void setUp() {
if (basicAuth == null) {
File credsFile = new File(".bitbucket");
throw new RuntimeException("Missing Bitbucket credentials. Expected a Java properties file with Bitbucket 'username' and 'password' (personal or App password) located here: " + credsFile.getAbsolutePath());
}
service = new BitbucketSourceConnector() {
@Override
protected String getExternalToken() throws SourceConnectorException {
if (basicAuth == null) {
File credsFile = new File(".bitbucket");
throw new SourceConnectorException("Missing Bitbucket credentials. Expected a Java properties file with Bitbucket 'username' and 'password' (personal or App password) located here: " + credsFile.getAbsolutePath());
}
return basicAuth;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ public static void globalSetUp() {

@Before
public void setUp() {
if (githubToken == null) {
File credsFile = new File(".github");
throw new RuntimeException("Missing GitHub credentials. Expected a Java properties file with GitHub Personal Access Token 'pat' located here: " + credsFile.getAbsolutePath());
}
service = new GitHubSourceConnector() {
@Override
protected String getExternalToken() throws SourceConnectorException {
if (githubToken == null) {
File credsFile = new File(".github");
throw new SourceConnectorException("Missing GitHub credentials. Expected a Java properties file with GitHub Personal Access Token 'pat' located here: " + credsFile.getAbsolutePath());
}
return githubToken;
}
};
Expand Down

0 comments on commit 1519e2f

Please # to comment.