public class AttachmentTester<R>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.Callable<Attachment> |
ref |
protected R |
returnObj |
protected org.pagemodel.core.TestContext |
testContext |
| Constructor and Description |
|---|
AttachmentTester(java.util.concurrent.Callable<Attachment> ref,
R returnObj,
org.pagemodel.core.TestContext testContext,
org.pagemodel.core.testers.TestEvaluator testEvaluator) |
| Modifier and Type | Method and Description |
|---|---|
R |
byteContent(org.pagemodel.core.utils.ThrowingFunction<byte[],java.lang.Boolean,?> byteTest) |
protected Attachment |
callRef() |
org.pagemodel.core.testers.StringTester<R> |
contentType() |
R |
exists() |
org.pagemodel.core.testers.StringTester<R> |
filename() |
protected java.util.Map<java.lang.String,java.lang.Object> |
getAttachmentJson() |
protected org.pagemodel.core.testers.TestEvaluator |
getEvaluator() |
R |
notExists() |
org.pagemodel.core.testers.StringTester<R> |
textContent() |
protected R returnObj
protected final java.util.concurrent.Callable<Attachment> ref
protected final org.pagemodel.core.TestContext testContext
public AttachmentTester(java.util.concurrent.Callable<Attachment> ref, R returnObj, org.pagemodel.core.TestContext testContext, org.pagemodel.core.testers.TestEvaluator testEvaluator)
protected Attachment callRef()
protected org.pagemodel.core.testers.TestEvaluator getEvaluator()
public R exists()
public R notExists()
public org.pagemodel.core.testers.StringTester<R> filename()
public org.pagemodel.core.testers.StringTester<R> contentType()
public org.pagemodel.core.testers.StringTester<R> textContent()
public R byteContent(org.pagemodel.core.utils.ThrowingFunction<byte[],java.lang.Boolean,?> byteTest)
protected java.util.Map<java.lang.String,java.lang.Object> getAttachmentJson()