public class AuditResourceMatchers extends Object
AuditResource
This is initial version, please feel free to add new matchers when needed.
Please ensure you are using hamcrest MatcherAssert.assertThat(T, org.hamcrest.Matcher<? super T>)
method
(no JUnit one).
AuditMatchers
Constructor and Description |
---|
AuditResourceMatchers() |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> |
hasId(Long id) |
static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> |
hasId(org.hamcrest.Matcher<String> idMatcher) |
static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> |
hasId(String id) |
static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> |
hasName(org.hamcrest.Matcher<String> nameMatcher) |
static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> |
hasName(String name) |
static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> |
hasUri(org.hamcrest.Matcher<String> uriMatcher) |
static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> |
isType(AssociatedItem.Type type) |
static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> |
isType(org.hamcrest.Matcher<String> typeMatcher) |
static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> |
isType(String type) |
public static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> hasName(@Nullable String name)
public static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> hasName(@Nonnull org.hamcrest.Matcher<String> nameMatcher)
public static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> hasId(@Nullable Long id)
public static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> hasId(@Nullable String id)
public static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> hasId(@Nonnull org.hamcrest.Matcher<String> idMatcher)
public static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> hasUri(@Nonnull org.hamcrest.Matcher<String> uriMatcher)
public static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> isType(@Nonnull AssociatedItem.Type type)
public static org.hamcrest.BaseMatcher<com.atlassian.audit.entity.AuditResource> isType(@Nullable String type)
Copyright © 2002-2023 Atlassian. All Rights Reserved.