package test.issues.strava;

import static org.junit.Assert.assertNull;
import javastrava.api.v3.model.StravaSegmentEffort;
import javastrava.api.v3.service.exception.NotFoundException;
import javastrava.api.v3.service.impl.retrofit.Retrofit;
import javastrava.api.v3.service.impl.retrofit.SegmentEffortServicesRetrofit;

import org.junit.Test;

import test.utils.TestUtils;

/**
 * <p>
 * These tests should PASS if issue <a href="https://github.com/danshannon/javastravav3api/issues/32">javastrava-api #32</a> still exists
 * </p>
 * 
 * @author Dan Shannon
 * @see <a href="https://github.com/danshannon/javastravav3api/issues/32">https://github.com/danshannon/javastravav3api/issues/32</a>
 *
 */
public class Issue27 {
	@Test
	public void testIssue() throws NotFoundException {
		SegmentEffortServicesRetrofit retrofit = Retrofit.retrofit(SegmentEffortServicesRetrofit.class, TestUtils.getValidToken());
		StravaSegmentEffort effort = retrofit.getSegmentEffort(5591276015L);
		assertNull(effort.getAthlete().getResourceState());
	}
}

@@ -478,18 +478,18 @@
 /issues/
-3
 2
+7
 %22%3Ejavast
@@ -498,18 +498,18 @@
 va-api #
-3
 2
+7
 %3C/a%3E sti
@@ -623,18 +623,18 @@
 /issues/
-3
 2
+7
 %22%3Ehttps:
@@ -684,10 +684,10 @@
 ues/
-3
 2
+7
 %3C/a%3E

Correct issue number in documentation