public class org.apache.isis.viewer.restfulobjects.applib.JsonRepresentationTest_asInputStream extends java.lang.Object
{
private org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation jsonRepresentation;
public void <init>()
{
org.apache.isis.viewer.restfulobjects.applib.JsonRepresentationTest_asInputStream v;
v := @this: org.apache.isis.viewer.restfulobjects.applib.JsonRepresentationTest_asInputStream;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void setUp() throws java.lang.Exception
{
org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation v;
org.apache.isis.viewer.restfulobjects.applib.JsonRepresentationTest_asInputStream v;
com.fasterxml.jackson.databind.JsonNode v;
v := @this: org.apache.isis.viewer.restfulobjects.applib.JsonRepresentationTest_asInputStream;
v = new org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation;
v = staticinvoke <org.apache.isis.viewer.restfulobjects.applib.JsonFixture: com.fasterxml.jackson.databind.JsonNode readJson(java.lang.String)>("map.json");
specialinvoke v.<org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation: void <init>(com.fasterxml.jackson.databind.JsonNode)>(v);
v.<org.apache.isis.viewer.restfulobjects.applib.JsonRepresentationTest_asInputStream: org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation jsonRepresentation> = v;
return;
}
public void asInputStream() throws java.io.IOException
{
byte[] v;
org.apache.isis.viewer.restfulobjects.applib.JsonRepresentationTest_asInputStream v;
java.nio.charset.Charset v;
org.hamcrest.Matcher v, v, v;
org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation v;
java.lang.String v;
java.io.InputStream v;
v := @this: org.apache.isis.viewer.restfulobjects.applib.JsonRepresentationTest_asInputStream;
v = v.<org.apache.isis.viewer.restfulobjects.applib.JsonRepresentationTest_asInputStream: org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation jsonRepresentation>;
v = virtualinvoke v.<org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation: java.io.InputStream asInputStream()>();
v = staticinvoke <org.apache.isis.commons.internal.base._Bytes: byte[] of(java.io.InputStream)>(v);
v = <java.nio.charset.StandardCharsets: java.nio.charset.Charset UTF_8>;
v = staticinvoke <org.apache.isis.commons.internal.base._Strings: java.lang.String ofBytes(byte[],java.nio.charset.Charset)>(v, v);
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher nullValue()>();
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher not(org.hamcrest.Matcher)>(v);
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(org.hamcrest.Matcher)>(v);
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
return;
}
}