use of com.instructure.canvasapi2.models.Tab in project instructure-android by instructure.
the class TabManager method getTabs.
public static void getTabs(CanvasContext canvasContext, StatusCallback<List<Tab>> callback, boolean forceNetwork) {
if (isTesting() || mTesting) {
// TODO: Add testing
// TabManager_Test.getTabs(callback, courseId)
} else {
RestBuilder adapter = new RestBuilder(callback);
RestParams params = new RestParams.Builder().withCanvasContext(canvasContext).withForceReadFromNetwork(forceNetwork).withShouldIgnoreToken(false).build();
TabAPI.getTabs(canvasContext.getId(), adapter, callback, params);
}
}
use of com.instructure.canvasapi2.models.Tab in project instructure-android by instructure.
the class TabTest method equals_TestSameValues.
@Test
public void equals_TestSameValues() {
Tab tabby2 = Tab.newInstance("id", "label");
assertTrue(tabby1.equals(tabby2));
}
use of com.instructure.canvasapi2.models.Tab in project instructure-android by instructure.
the class TabTest method equals_TestSameObject.
// region equals
@SuppressWarnings("UnnecessaryLocalVariable")
@Test
public void equals_TestSameObject() {
Tab tabby2 = tabby1;
assertTrue(tabby1.equals(tabby2));
}
Aggregations