forked from danshannon/javastrava-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dacf574
commit 6b454be
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package test.issues.strava; | ||
|
||
import javastrava.api.v3.model.StravaActivity; | ||
|
||
/** | ||
* @author Dan Shannon | ||
* | ||
*/ | ||
public class Issue94 extends IssueTest { | ||
|
||
/** | ||
* @see test.issues.strava.IssueTest#isIssue() | ||
*/ | ||
@Override | ||
public boolean isIssue() throws Exception { | ||
final StravaActivity[] both = api.listRecentClubActivities(2130, 1, 2); | ||
final StravaActivity[] first = api.listRecentClubActivities(2130, 1, 1); | ||
final StravaActivity[] second = api.listRecentClubActivities(2130, 2, 1); | ||
|
||
if (both[0].equals(first[0]) && both[1].equals(second[0])) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
|
||
/** | ||
* @see test.issues.strava.IssueTest#issueNumber() | ||
*/ | ||
@Override | ||
public int issueNumber() { | ||
return 94; | ||
} | ||
|
||
} |