public PropertyDtoAssert hasValue(String expected) { requireNonNull(expected); isNotNull(); if (!Objects.equals(actual.getValue(), expected)) { failWithMessage("Expected PropertyDto to have value to be <%s> but was <%s>", true, actual.getValue()); } return this; } }
public PropertyDtoAssert hasUserId(long expected) { isNotNull(); if (!Objects.equals(actual.getUserId(), expected)) { failWithMessage("Expected PropertyDto to have userId to be <%s> but was <%s>", true, actual.getUserId()); } return this; }
public PropertyDtoAssert hasResourceId(long expected) { isNotNull(); if (!Objects.equals(actual.getResourceId(), expected)) { failWithMessage("Expected PropertyDto to have resourceId to be <%s> but was <%s>", true, actual.getResourceId()); } return this; }
public PropertyDtoAssert hasKey(String expected) { isNotNull(); if (!Objects.equals(actual.getKey(), expected)) { failWithMessage("Expected PropertyDto to have key to be <%s> but was <%s>", expected, actual.getKey()); } return this; }
public PropertyDtoAssert hasNoUserId() { isNotNull(); if (actual.getUserId() != null) { failWithMessage("Expected PropertyDto to have userId to be null but was <%s>", actual.getUserId()); } return this; }
public PropertyDtoAssert hasNoResourceId() { isNotNull(); if (actual.getResourceId() != null) { failWithMessage("Expected PropertyDto to have resourceId to be null but was <%s>", actual.getResourceId()); } return this; }