/**
 *
 */
package test.issues.strava;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import javastrava.api.v3.model.StravaSegmentLeaderboard;
import javastrava.api.v3.model.reference.StravaResourceState;
import javastrava.api.v3.rest.API;

import org.junit.Test;

import test.utils.RateLimitedTestRunner;
import test.utils.TestUtils;

/**
 * <p>
 * Issue test for javastrava-api #73
 * </p>
 *
 * <p>
 * Tests will PASS if the issue is still current
 * </p>
 *
 * @author Dan Shannon
 * @see <a href="https://github.com/danshannon/javastravav3api/issues/73">https://github.com/danshannon/javastravav3api/issues/73</a>
 */
public class Issue73 {
	@Test
	public void issueTest() throws Exception {
		RateLimitedTestRunner.run(() -> {
			final API api = new API(TestUtils.getValidToken());
			final StravaSegmentLeaderboard leaderboard = api.getSegmentLeaderboard(1190741, null, null, null, null, null, null, null, null, null);
			assertNotNull(leaderboard);
			assertEquals(StravaResourceState.PRIVATE, leaderboard.getResourceState());
		});
	}
}

@@ -66,24 +66,27 @@
 ssert.assert
+Not
 Equals;%0Aimpo
@@ -188,70 +188,8 @@
 rd;%0A
-import javastrava.api.v3.model.reference.StravaResourceState;%0A
 impo
@@ -949,42 +949,19 @@
 sert
+Not
 Equals(
-StravaResourceState.PRIVATE
+0
 , le
@@ -977,21 +977,15 @@
 .get
-ResourceState
+Entries
 ());

Fix issue test See https://github.com/danshannon/javastravav3api/issues/73