Search in sources :

Example 16 with EntityCheck

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());
}
Also used : Entity(com.axibase.tsd.api.model.entity.Entity) EntityCheck(com.axibase.tsd.api.method.checks.EntityCheck) EntityCommand(com.axibase.tsd.api.model.command.EntityCommand) Issue(io.qameta.allure.Issue) Test(org.testng.annotations.Test)

Aggregations

EntityCheck (com.axibase.tsd.api.method.checks.EntityCheck)16 Entity (com.axibase.tsd.api.model.entity.Entity)16 Test (org.testng.annotations.Test)13 Issue (io.qameta.allure.Issue)12 SqlTest (com.axibase.tsd.api.method.sql.SqlTest)4 EntityCommand (com.axibase.tsd.api.model.command.EntityCommand)4 EntityTest (com.axibase.tsd.api.method.entity.EntityTest)3 BeforeClass (org.testng.annotations.BeforeClass)3 DeletionCheck (com.axibase.tsd.api.method.checks.DeletionCheck)1 StringCommand (com.axibase.tsd.api.model.command.StringCommand)1 Trade (com.axibase.tsd.api.model.financial.Trade)1 Property (com.axibase.tsd.api.model.property.Property)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1