File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
test-complete/src/test/java/com/marklogic/client/functionaltest Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -165,10 +165,11 @@ void validateReturnTypes(EvalResultIterator evr) throws Exception {
165165 assertEquals ("count of documents " , 31 , er .getNumber ()
166166 .intValue ());
167167 } else if (er .getType ().equals (Type .STRING )) {
168+ String str = er .getString ();
168169 // There is git issue 152
169- System .out .println ("type string: " + er . getString () );
170- assertTrue ("String?" ,er . getString (). contains ("true" )||er . getString () .contains ("xml" )
171- ||er . getString (). contains ("31" ) ||er . getString () .contains ("1.0471975511966" ));
170+ // System.out.println("type string: " + str );
171+ assertTrue ("String?" ,str . contains ("true" )||str .contains ("xml" )
172+ ||str . contains ("31" ) ||str .contains ("1.0471975511966" ));
172173
173174 } else if (er .getType ().equals (Type .NULL )) {
174175 // There is git issue 151
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ else if(er.getType().equals(Type.INTEGER)){
144144 else if (er .getType ().equals (Type .STRING )){
145145 //There is git issue 152
146146 assertEquals ("String?" ,"xml" ,er .getString ());
147- System .out .println ("type string: " +er .getString ());
147+ // System.out.println("type string: "+er.getString());
148148 }else if (er .getType ().equals (Type .NULL )){
149149 //There is git issue 151
150150// assertNull(er.getAs(String.class));
@@ -209,8 +209,9 @@ else if(er.getType().equals(Type.STRING)){
209209// System.out.println("Testing is HEXBINARY? "+er.getAs(String.class));
210210 assertEquals ("Returns me a HEXBINARY :" ,"BEEF" ,er .getAs (String .class ));
211211 }else if (er .getType ().equals (Type .QNAME )){
212+ String qname = er .getString ();
212213// System.out.println("Testing is QNAME integer"+er.getAs(String.class));
213- assertTrue ("Returns me a QNAME :" ,er . getString (). contains ("integer" ) || er . getString () .contains ("fn:empty" ));
214+ assertTrue ("Returns me a QNAME :" ,qname . contains ("integer" ) || qname .contains ("fn:empty" ));
214215 }else if (er .getType ().equals (Type .TIME )){
215216// System.out.println("Testing is TIME? "+er.getAs(String.class));
216217 assertEquals ("Returns me a TIME :" ,"10:00:00" ,er .getAs (String .class ));
You can’t perform that action at this time.
0 commit comments