Search in sources :

Example 6 with LockedModule

use of com.instructure.canvasapi2.models.LockedModule in project instructure-android by instructure.

the class LockedModuleTest method getValidLockedModule.

private LockedModule getValidLockedModule() {
    LockedModule module = new LockedModule();
    module.setContextId(1);
    module.setName("module");
    module.setUnlockAt("2017-01-15T15:53:00+07:00");
    return module;
}
Also used : LockedModule(com.instructure.canvasapi2.models.LockedModule)

Example 7 with LockedModule

use of com.instructure.canvasapi2.models.LockedModule in project instructure-android by instructure.

the class LockedModuleTest method isLockedModuleValid_InvalidContextId.

@Test
public void isLockedModuleValid_InvalidContextId() {
    LockedModule module = getValidLockedModule();
    module.setContextId(0);
    assertEquals(false, LockedModule.isLockedModuleValid(module));
}
Also used : LockedModule(com.instructure.canvasapi2.models.LockedModule) Test(org.junit.Test)

Aggregations

LockedModule (com.instructure.canvasapi2.models.LockedModule)7 Test (org.junit.Test)6 Assignment (com.instructure.canvasapi2.models.Assignment)1 LockInfo (com.instructure.canvasapi2.models.LockInfo)1