public final class TestResource extends Object
| Constructor and Description |
|---|
TestResource(com.helger.commons.io.resource.IReadableResource aRes,
com.helger.commons.collection.impl.ICommonsSet<ErrorDefinition> aExpectedErrors) |
| Modifier and Type | Method and Description |
|---|---|
static TestResource |
createGoodCase(String sClassPathResource) |
com.helger.commons.collection.impl.ICommonsSet<ErrorDefinition> |
getAllExpectedErrors() |
String |
getPath() |
com.helger.commons.io.resource.IReadableResource |
getResource() |
boolean |
hasExpectedErrors() |
String |
toString() |
public TestResource(@Nonnull com.helger.commons.io.resource.IReadableResource aRes, @Nullable com.helger.commons.collection.impl.ICommonsSet<ErrorDefinition> aExpectedErrors)
@Nonnull public com.helger.commons.io.resource.IReadableResource getResource()
null.@Nonnull @Nonempty public String getPath()
null nor
empty.@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsSet<ErrorDefinition> getAllExpectedErrors()
null but maybe
empty.public boolean hasExpectedErrors()
true if at least one expected error is contained@Nonnull public static TestResource createGoodCase(@Nonnull String sClassPathResource)
Copyright © 2015–2020 Philip Helger. All rights reserved.