899091929394959697
/** @throws Exception */ @Test public void parse6() throws Exception { Arg a = Arg.parse( parseXml( "<arg name=\"foo\">abc</arg>" ) ); assertEquals( "foo", a.name() ); assertEquals( "abc", a.value( args ) ); }
9899100101102103104105106
/** @throws Exception */ @Test public void parse7() throws Exception { Arg a = Arg.parse( parseXml( "<arg name=\"foo\" value=\"\"/>" ) ); assertEquals( "foo", a.name() ); assertEquals( "", a.value( args ) ); }
107108109110111112113114115
/** @throws Exception */ @Test public void parse8() throws Exception { Arg a = Arg.parse( parseXml( "<arg name=\"foo\" value=\"abc\"/>" ) ); assertEquals( "foo", a.name() ); assertEquals( "abc", a.value( args ) ); }
116117118119120121122123124
/** @throws Exception */ @Test public void parse9() throws Exception { Arg a = Arg.parse( parseXml( "<arg name=\"fu\">{bar}</arg>" ) ); assertEquals( "fu", a.name() ); assertEquals( "123", a.value( args ) ); }
125126127128129130131132133
/** @throws Exception */ @Test public void parse10() throws Exception { Arg a = Arg.parse( parseXml( "<arg name=\"fu\" value=\"{bar}\"/>" ) ); assertEquals( "fu", a.name() ); assertEquals( "123", a.value( args ) ); }
134135136137138139140141142
/** @throws Exception */ @Test public void parse11() throws Exception { Arg a = Arg.parse( parseXml( "<arg name=\"tofu\">x{baz}y</arg>" ) ); assertEquals( "tofu", a.name() ); assertEquals( "x456y", a.value( args ) ); }
143144145146147148149150151
/** @throws Exception */ @Test public void parse12() throws Exception { Arg a = Arg.parse( parseXml( "<arg name=\"tofu\" value=\"x{baz}y\"/>" ) ); assertEquals( "tofu", a.name() ); assertEquals( "x456y", a.value( args ) ); }
152153154155156157158159160
/** @throws Exception */ @Test public void parse13() throws Exception { Arg a = Arg.parse( parseXml( "<arg name=\"snafu\">x{barf}y</arg>" ) ); assertEquals( "snafu", a.name() ); assertEquals( "x{barf}y", a.value( args ) ); }
161162163164165166167168169
/** @throws Exception */ @Test public void parse14() throws Exception { Arg a = Arg.parse( parseXml( "<arg name=\"snafu\" value=\"x{barf}y\"/>" ) ); assertEquals( "snafu", a.name() ); assertEquals( "x{barf}y", a.value( args ) ); }
170171172173174175176177
/** @throws Exception */ @Test public void toString1() throws Exception { Arg a = Arg.parse( parseXml( "<arg name=\"tofu\" value=\"x{baz}y\"/>" ) ); assertEquals( "Arg( tofu, x{baz}y )", a.toString() ); }