use of com.axibase.tsd.api.method.checks.EntityCheck in project atsd-api-test by axibase.
the class EntityCommandTest method testDisabled.
@Issue("3550")
@Issue("6319")
@Test
public void testDisabled() throws Exception {
Entity entity = new Entity(Mocks.entity());
entity.setEnabled(false);
EntityCommand command = new EntityCommand(entity);
String assertMessage = "Failed to set disabled";
assertTrue(assertMessage, transport.send(command));
Checker.check(new EntityCheck(entity));
Entity actualEntity = EntityMethod.getEntity(entity.getName());
assertFalse(assertMessage, actualEntity.getEnabled());
}
Aggregations