Search in sources :

Example 86 with LinkHeaders

use of com.instructure.canvasapi2.utils.LinkHeaders in project instructure-android by instructure.

the class LinkHeadersTest method toString_TestFirst.

@Test
public void toString_TestFirst() throws Exception {
    LinkHeaders linkHeaders = generateLinkHeaders();
    String testVal = linkHeaders.toString();
    String[] testValArray = testVal.split("\n");
    assertEquals("FIRST: firstUrl", testValArray[3]);
}
Also used : LinkHeaders(com.instructure.canvasapi2.utils.LinkHeaders) Test(org.junit.Test)

Example 87 with LinkHeaders

use of com.instructure.canvasapi2.utils.LinkHeaders in project instructure-android by instructure.

the class LinkHeadersTest method toString_TestLast.

@Test
public void toString_TestLast() throws Exception {
    LinkHeaders linkHeaders = generateLinkHeaders();
    String testVal = linkHeaders.toString();
    String[] testValArray = testVal.split("\n");
    assertEquals("LAST:  lastUrl", testValArray[2]);
}
Also used : LinkHeaders(com.instructure.canvasapi2.utils.LinkHeaders) Test(org.junit.Test)

Aggregations

LinkHeaders (com.instructure.canvasapi2.utils.LinkHeaders)87 Response (okhttp3.Response)57 ArrayList (java.util.ArrayList)31 Request (okhttp3.Request)27 List (java.util.List)25 RestBuilder (com.instructure.canvasapi2.builders.RestBuilder)24 ApiType (com.instructure.canvasapi2.utils.ApiType)23 Response (retrofit2.Response)15 QuizSubmissionResponse (com.instructure.canvasapi2.models.QuizSubmissionResponse)13 QuizSubmissionQuestionResponse (com.instructure.canvasapi2.models.QuizSubmissionQuestionResponse)12 ParentResponse (com.instructure.canvasapi2.models.ParentResponse)10 Conversation (com.instructure.canvasapi2.models.Conversation)9 NonNull (android.support.annotation.NonNull)8 GradingPeriodResponse (com.instructure.canvasapi2.models.GradingPeriodResponse)8 StatusCallback (com.instructure.canvasapi2.StatusCallback)7 FileFolder (com.instructure.canvasapi2.models.FileFolder)6 Submission (com.instructure.canvasapi2.models.Submission)6 Assignment (com.instructure.canvasapi2.models.Assignment)5 CourseNickname (com.instructure.canvasapi2.models.CourseNickname)5 ResponseBody (okhttp3.ResponseBody)5