public class org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test extends java.lang.Object
{
public void <init>()
{
org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test v;
v := @this: org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void whenQuotes() throws java.lang.Exception
{
java.lang.String v;
org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test v;
org.hamcrest.Matcher v;
v := @this: org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test;
v = staticinvoke <org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext: java.lang.String stripQuotes(java.lang.String)>("\"123\"");
v = staticinvoke <org.hamcrest.Matchers: org.hamcrest.Matcher is(java.lang.Object)>("123");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
return;
}
public void whenNoQuotes() throws java.lang.Exception
{
java.lang.String v;
org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test v;
org.hamcrest.Matcher v;
v := @this: org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test;
v = staticinvoke <org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext: java.lang.String stripQuotes(java.lang.String)>("123");
v = staticinvoke <org.hamcrest.Matchers: org.hamcrest.Matcher is(java.lang.Object)>("123");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
return;
}
public void whenFirstQuote() throws java.lang.Exception
{
java.lang.String v;
org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test v;
org.hamcrest.Matcher v;
v := @this: org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test;
v = staticinvoke <org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext: java.lang.String stripQuotes(java.lang.String)>("\"123");
v = staticinvoke <org.hamcrest.Matchers: org.hamcrest.Matcher is(java.lang.Object)>("\"123");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
return;
}
public void whenEndQuote() throws java.lang.Exception
{
java.lang.String v;
org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test v;
org.hamcrest.Matcher v;
v := @this: org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test;
v = staticinvoke <org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext: java.lang.String stripQuotes(java.lang.String)>("123\"");
v = staticinvoke <org.hamcrest.Matchers: org.hamcrest.Matcher is(java.lang.Object)>("123\"");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
return;
}
public void whenCharsAfter() throws java.lang.Exception
{
java.lang.String v;
org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test v;
org.hamcrest.Matcher v;
v := @this: org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test;
v = staticinvoke <org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext: java.lang.String stripQuotes(java.lang.String)>("\"123\" ");
v = staticinvoke <org.hamcrest.Matchers: org.hamcrest.Matcher is(java.lang.Object)>("\"123\" ");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
return;
}
public void whenCharsBefore() throws java.lang.Exception
{
java.lang.String v;
org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test v;
org.hamcrest.Matcher v;
v := @this: org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test;
v = staticinvoke <org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext: java.lang.String stripQuotes(java.lang.String)>(" \"123\"");
v = staticinvoke <org.hamcrest.Matchers: org.hamcrest.Matcher is(java.lang.Object)>(" \"123\"");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
return;
}
public void whenEmpty() throws java.lang.Exception
{
java.lang.String v;
org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test v;
org.hamcrest.Matcher v;
v := @this: org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test;
v = staticinvoke <org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext: java.lang.String stripQuotes(java.lang.String)>("");
v = staticinvoke <org.hamcrest.Matchers: org.hamcrest.Matcher is(java.lang.Object)>("");
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
return;
}
public void whenNull() throws java.lang.Exception
{
org.hamcrest.Matcher v, v;
java.lang.String v;
org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test v;
v := @this: org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext_stripQuotes_Test;
v = staticinvoke <org.apache.isis.viewer.restfulobjects.viewer.context.ResourceContext: java.lang.String stripQuotes(java.lang.String)>(null);
v = staticinvoke <org.hamcrest.Matchers: org.hamcrest.Matcher nullValue()>();
v = staticinvoke <org.hamcrest.Matchers: org.hamcrest.Matcher is(org.hamcrest.Matcher)>(v);
staticinvoke <org.hamcrest.MatcherAssert: void assertThat(java.lang.Object,org.hamcrest.Matcher)>(v, v);
return;
}
}