public PropertiesRowAssert hasUserId(int expected) { isNotNull(); if (!Objects.equals(actual.getUserId(), expected)) { failWithMessage("Expected PropertiesRow to have column USER_ID to be <%s> but was <%s>", true, actual.getUserId()); } return this; }
public PropertiesRowAssert hasResourceId(long expected) { isNotNull(); if (!Objects.equals(actual.getResourceId(), expected)) { failWithMessage("Expected PropertiesRow to have column RESOURCE_ID to be <%s> but was <%s>", true, actual.getResourceId()); } return this; }
public PropertiesRowAssert hasCreatedAt(long expected) { isNotNull(); if (!Objects.equals(actual.getCreatedAt(), expected)) { failWithMessage("Expected PropertiesRow to have column CREATED_AT to be <%s> but was <%s>", expected, actual.getCreatedAt()); } return this; } }
public PropertiesRowAssert hasKey(String expected) { isNotNull(); if (!Objects.equals(actual.getKey(), expected)) { failWithMessage("Expected PropertiesRow to have column PROP_KEY to be <%s> but was <%s>", expected, actual.getKey()); } return this; }
public PropertiesRowAssert hasNoUserId() { isNotNull(); if (actual.getUserId() != null) { failWithMessage("Expected PropertiesRow to have column USER_ID to be null but was <%s>", actual.getUserId()); } return this; }
public PropertiesRowAssert hasNoResourceId() { isNotNull(); if (actual.getResourceId() != null) { failWithMessage("Expected PropertiesRow to have column RESOURCE_ID to be null but was <%s>", actual.getResourceId()); } return this; }
public PropertiesRowAssert hasTextValue(String expected) { isNotNull(); if (!Objects.equals(actual.getTextValue(), requireNonNull(expected))) { failWithMessage("Expected PropertiesRow to have column TEXT_VALUE to be <%s> but was <%s>", expected, actual.getTextValue()); } if (actual.getClobValue() != null) { failWithMessage("Expected PropertiesRow to have column CLOB_VALUE to be null but was <%s>", actual.getClobValue()); } if (!Objects.equals(actual.getEmpty(), FALSE)) { failWithMessage("Expected PropertiesRow to have column IS_EMPTY to be <%s> but was <%s>", false, actual.getEmpty()); } return this; }
public PropertiesRowAssert hasClobValue(String expected) { isNotNull(); if (!Objects.equals(actual.getClobValue(), requireNonNull(expected))) { failWithMessage("Expected PropertiesRow to have column CLOB_VALUE to be <%s> but was <%s>", true, actual.getClobValue()); } if (actual.getTextValue() != null) { failWithMessage("Expected PropertiesRow to have column TEXT_VALUE to be null but was <%s>", actual.getTextValue()); } if (!Objects.equals(actual.getEmpty(), FALSE)) { failWithMessage("Expected PropertiesRow to have column IS_EMPTY to be <%s> but was <%s>", false, actual.getEmpty()); } return this; }
public PropertiesRowAssert isEmpty() { isNotNull(); if (!Objects.equals(actual.getEmpty(), TRUE)) { failWithMessage("Expected PropertiesRow to have column IS_EMPTY to be <%s> but was <%s>", true, actual.getEmpty()); } if (actual.getTextValue() != null) { failWithMessage("Expected PropertiesRow to have column TEXT_VALUE to be null but was <%s>", actual.getTextValue()); } if (actual.getClobValue() != null) { failWithMessage("Expected PropertiesRow to have column CLOB_VALUE to be null but was <%s>", actual.getClobValue()); } return this; }