public class BasicTypesJsonTest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicTypesJsonTest.MyEnum |
| Modifier and Type | Field and Description |
|---|---|
protected JsonEntityEncoding |
encoding |
| Constructor and Description |
|---|
BasicTypesJsonTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
causeShouldBe(MpacException.InvalidResponseError e,
Class<? extends SchemaViolation> cause,
com.atlassian.fugue.Option<String> message) |
protected <T> T |
decode(String json,
Class<T> type) |
protected <T> String |
encode(T t) |
void |
enumPropertyIsDecoded() |
void |
enumPropertyIsEncoded() |
void |
errorIfEnumPropertyIsUnknownValue() |
void |
errorIfRequiredPropertyIsOmitted() |
void |
errorIfUriIsMalformed() |
void |
htmlStringPropertyIsDecoded() |
void |
htmlStringPropertyIsEncoded() |
void |
listPropertyIsDecoded() |
void |
listPropertyIsEncoded() |
void |
optionalPropertyCanBeOmitted() |
void |
optionalPropertyIsDecoded() |
void |
optionalPropertyIsEncodedIfSome() |
void |
optionalPropertyIsNotEncodedIfNone() |
void |
requiredPropertyIsDecoded() |
void |
requiredPropertyIsEncoded() |
void |
uriMapPropertyIsDecoded() |
void |
uriMapPropertyIsEncoded() |
void |
uriPropertyIsDecoded() |
void |
uriPropertyIsEncoded() |
protected JsonEntityEncoding encoding
public void requiredPropertyIsDecoded()
throws Exception
Exceptionpublic void errorIfRequiredPropertyIsOmitted()
throws Exception
Exceptionpublic void requiredPropertyIsEncoded()
throws Exception
Exceptionpublic void optionalPropertyIsDecoded()
throws Exception
Exceptionpublic void optionalPropertyCanBeOmitted()
throws Exception
Exceptionpublic void optionalPropertyIsEncodedIfSome()
throws Exception
Exceptionpublic void optionalPropertyIsNotEncodedIfNone()
throws Exception
Exceptionpublic void errorIfEnumPropertyIsUnknownValue()
throws Exception
Exceptionpublic void htmlStringPropertyIsDecoded()
throws Exception
Exceptionpublic void htmlStringPropertyIsEncoded()
throws Exception
Exceptionprotected void causeShouldBe(MpacException.InvalidResponseError e, Class<? extends SchemaViolation> cause, com.atlassian.fugue.Option<String> message)
Copyright © 2016 Atlassian. All rights reserved.