public class org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter extends org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test
{
public void <init>()
{
org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter v;
v := @this: org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter;
specialinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test: void <init>()>();
return;
}
public void happyCase() throws java.lang.Exception
{
org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter v;
java.lang.Integer v, v;
java.util.Map v;
org.hamcrest.Matcher v, v, v, v, v;
int v;
java.lang.Object v, v;
java.lang.String v, v;
org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext v;
v := @this: org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter;
v = new org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext;
specialinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: void <init>(java.lang.String,org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScripts)>("foo=bar\nbop=baz", null);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.util.Map getParameterMap()>();
v = interfaceinvoke v.<java.util.Map: int size()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>(v);
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("foo");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("bar");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("bop");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("baz");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.lang.String getParameter(java.lang.String)>("foo");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("bar");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.lang.String getParameter(java.lang.String)>("bop");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("baz");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
return;
}
public void givenNull() throws java.lang.Exception
{
org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter v;
java.lang.Integer v, v;
java.util.Map v;
org.hamcrest.Matcher v, v, v;
int v;
java.lang.String v, v;
org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext v;
v := @this: org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter;
v = new org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext;
v = null;
specialinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: void <init>(java.lang.String,org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScripts)>(v, null);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.util.Map getParameterMap()>();
v = interfaceinvoke v.<java.util.Map: int size()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(0);
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>(v);
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.lang.String getParameter(java.lang.String)>("foo");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher nullValue()>();
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;
}
public void givenEmpty() throws java.lang.Exception
{
org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter v;
java.lang.Integer v, v;
java.util.Map v;
org.hamcrest.Matcher v, v, v;
int v;
java.lang.String v;
org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext v;
v := @this: org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter;
v = new org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext;
specialinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: void <init>(java.lang.String,org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScripts)>("", null);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.util.Map getParameterMap()>();
v = interfaceinvoke v.<java.util.Map: int size()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(0);
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>(v);
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.lang.String getParameter(java.lang.String)>("foo");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher nullValue()>();
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;
}
public void malformed() throws java.lang.Exception
{
org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter v;
java.lang.Integer v, v;
java.util.Map v;
org.hamcrest.Matcher v, v, v;
int v;
java.lang.String v;
org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext v;
v := @this: org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter;
v = new org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext;
specialinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: void <init>(java.lang.String,org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScripts)>("abcde", null);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.util.Map getParameterMap()>();
v = interfaceinvoke v.<java.util.Map: int size()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(0);
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>(v);
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.lang.String getParameter(java.lang.String)>("foo");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher nullValue()>();
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;
}
public void partiallyMalformed() throws java.lang.Exception
{
org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter v;
java.lang.Integer v, v;
java.util.Map v;
org.hamcrest.Matcher v, v, v, v, v;
int v;
java.lang.Object v, v;
java.lang.String v, v;
org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext v;
v := @this: org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter;
v = new org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext;
specialinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: void <init>(java.lang.String,org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScripts)>("foo=bar\nabcde\nbop=baz", null);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.util.Map getParameterMap()>();
v = interfaceinvoke v.<java.util.Map: int size()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>(v);
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("foo");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("bar");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("bop");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("baz");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.lang.String getParameter(java.lang.String)>("foo");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("bar");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.lang.String getParameter(java.lang.String)>("bop");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("baz");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
return;
}
public void trim() throws java.lang.Exception
{
org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter v;
java.lang.Integer v, v;
java.util.Map v;
int v;
java.lang.String v, v, v;
org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext v;
org.hamcrest.Matcher v, v, v, v, v, v, v;
java.lang.Object v, v, v;
v := @this: org.apache.isis.testing.fixtures.applib.fixturescripts.ExecutionContext_Test$GetParameter;
v = new org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext;
specialinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: void <init>(java.lang.String,org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScripts)>(" foo=bar\nbop=baz \n bip = bap ", null);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.util.Map getParameterMap()>();
v = interfaceinvoke v.<java.util.Map: int size()>();
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>(v);
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("foo");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("bar");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("bop");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("baz");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>("bip");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("bap");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.lang.String getParameter(java.lang.String)>("foo");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("bar");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.lang.String getParameter(java.lang.String)>("bop");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("baz");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
v = virtualinvoke v.<org.apache.isis.testing.fixtures.applib.fixturescripts.FixtureScript$ExecutionContext: java.lang.String getParameter(java.lang.String)>("bip");
v = staticinvoke <org.hamcrest.CoreMatchers: org.hamcrest.Matcher is(java.lang.Object)>("bap");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
return;
}
}