@@ -0,0 +1,1087 @@
+/**%0A *%0A */%0Apackage test.api.service.impl.retrofit;%0A%0Aimport static org.junit.Assert.assertTrue;%0Aimport javastrava.api.v3.service.impl.retrofit.StravaServiceImpl;%0Aimport javastrava.config.StravaConfig;%0A%0Aimport org.junit.Test;%0A%0A/**%0A * @author Dan Shannon%0A *%0A */%0Apublic class StravaServiceImplTest %7B%0A%09@Test%0A%09public void testRequestRatePercentageWarning() %7B%0A%09%09StravaServiceImpl.requestRate = StravaConfig.RATE_LIMIT;%0A%09%09assertTrue(100f == StravaServiceImpl.requestRatePercentage());%0A%09%7D%0A%0A%09@Test%0A%09public void testRequestRateDailyPercentageWarning() %7B%0A%09%09StravaServiceImpl.requestRateDaily = StravaConfig.RATE_LIMIT_DAILY;%0A%09%09assertTrue(100f == StravaServiceImpl.requestRateDailyPercentage());%0A%09%7D%0A%0A%09@Test%0A%09public void testRequestRatePercentageExceeded() %7B%0A%09%09StravaServiceImpl.requestRate = StravaConfig.RATE_LIMIT + 1;%0A%09%09assertTrue(100f %3C StravaServiceImpl.requestRatePercentage());%0A%09%7D%0A%0A%09@Test%0A%09public void testRequestRateDailyPercentageExceeded() %7B%0A%09%09StravaServiceImpl.requestRateDaily = StravaConfig.RATE_LIMIT_DAILY + 1;%0A%09%09assertTrue(100f %3C StravaServiceImpl.requestRateDailyPercentage());%0A%09%7D%0A%7D%0A

Add tests to validate string formatting for warnings on rate limits