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;
}
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));
}
Aggregations