@@ -203,15 +203,15 @@ public void testRecord(){
203203
204204
205205
206- Property nameProperty = new Property ("name" , ResultSet . ResultSetScalarTypes . VALUE_STRING , name );
207- Property ageProperty = new Property ("age" , ResultSet . ResultSetScalarTypes . VALUE_INTEGER , age );
208- Property doubleProperty = new Property ("doubleValue" , ResultSet . ResultSetScalarTypes . VALUE_DOUBLE , doubleValue );
209- Property trueBooleanProperty = new Property ("boolValue" , ResultSet . ResultSetScalarTypes . VALUE_BOOLEAN , true );
210- Property falseBooleanProperty = new Property ("boolValue" , ResultSet . ResultSetScalarTypes . VALUE_BOOLEAN , false );
211- Property nullProperty = new Property ("nullValue" , ResultSet . ResultSetScalarTypes . VALUE_NULL , null );
206+ Property nameProperty = new Property ("name" , name );
207+ Property ageProperty = new Property ("age" , age );
208+ Property doubleProperty = new Property ("doubleValue" , doubleValue );
209+ Property trueBooleanProperty = new Property ("boolValue" , true );
210+ Property falseBooleanProperty = new Property ("boolValue" , false );
211+ Property nullProperty = new Property ("nullValue" , null );
212212
213- Property placeProperty = new Property ("place" , ResultSet . ResultSetScalarTypes . VALUE_STRING , place );
214- Property sinceProperty = new Property ("since" , ResultSet . ResultSetScalarTypes . VALUE_INTEGER , since );
213+ Property placeProperty = new Property ("place" , place );
214+ Property sinceProperty = new Property ("since" , since );
215215
216216 Node expectedNode = new Node ();
217217 expectedNode .setId (0 );
@@ -223,11 +223,11 @@ public void testRecord(){
223223 expectedNode .addProperty (nullProperty );
224224 Assert .assertEquals (
225225 "Node{labels=[person], id=0, "
226- + "propertyMap={name=Property{name='name', type=VALUE_STRING, value=roi}, "
227- + "boolValue=Property{name='boolValue', type=VALUE_BOOLEAN, value=true}, "
228- + "doubleValue=Property{name='doubleValue', type=VALUE_DOUBLE, value=3.14}, "
229- + "nullValue=Property{name='nullValue', type=VALUE_NULL, value=null}, "
230- + "age=Property{name='age', type=VALUE_INTEGER, value=32}}}" , expectedNode .toString ());
226+ + "propertyMap={name=Property{name='name', value=roi}, "
227+ + "boolValue=Property{name='boolValue', value=true}, "
228+ + "doubleValue=Property{name='doubleValue', value=3.14}, "
229+ + "nullValue=Property{name='nullValue', value=null}, "
230+ + "age=Property{name='age', value=32}}}" , expectedNode .toString ());
231231
232232 Edge expectedEdge = new Edge ();
233233 expectedEdge .setId (0 );
@@ -240,11 +240,11 @@ public void testRecord(){
240240 expectedEdge .addProperty (falseBooleanProperty );
241241 expectedEdge .addProperty (nullProperty );
242242 Assert .assertEquals ("Edge{relationshipType='knows', source=0, destination=1, id=0, "
243- + "propertyMap={boolValue=Property{name='boolValue', type=VALUE_BOOLEAN, value=false}, "
244- + "place=Property{name='place', type=VALUE_STRING, value=TLV}, "
245- + "doubleValue=Property{name='doubleValue', type=VALUE_DOUBLE, value=3.14}, "
246- + "nullValue=Property{name='nullValue', type=VALUE_NULL, value=null}, "
247- + "since=Property{name='since', type=VALUE_INTEGER, value=2000}}}" , expectedEdge .toString ());
243+ + "propertyMap={boolValue=Property{name='boolValue', value=false}, "
244+ + "place=Property{name='place', value=TLV}, "
245+ + "doubleValue=Property{name='doubleValue', value=3.14}, "
246+ + "nullValue=Property{name='nullValue', value=null}, "
247+ + "since=Property{name='since', value=2000}}}" , expectedEdge .toString ());
248248
249249 Assert .assertNotNull (api .query ("social" , "CREATE (:person{name:%s,age:%d, doubleValue:%f, boolValue:%b, nullValue:null})" , name , age , doubleValue , boolValue ));
250250 Assert .assertNotNull (api .query ("social" , "CREATE (:person{name:'amit',age:30})" ));
@@ -332,9 +332,9 @@ public void testMultiThread(){
332332 mapToObj (i -> api .query ("social" , "MATCH (a:person)-[r:knows]->(b:person) RETURN a,r, a.age" )).
333333 collect (Collectors .toList ());
334334
335- Property nameProperty = new Property ("name" , ResultSet . ResultSetScalarTypes . VALUE_STRING , "roi" );
336- Property ageProperty = new Property ("age" , ResultSet . ResultSetScalarTypes . VALUE_INTEGER , 32 );
337- Property lastNameProperty =new Property ("lastName" , ResultSet . ResultSetScalarTypes . VALUE_STRING , "a" );
335+ Property nameProperty = new Property ("name" , "roi" );
336+ Property ageProperty = new Property ("age" , 32 );
337+ Property lastNameProperty =new Property ("lastName" , "a" );
338338
339339 Node expectedNode = new Node ();
340340 expectedNode .setId (0 );
@@ -426,9 +426,9 @@ public void testAdditionToProcedures(){
426426 Assert .assertNotNull (api .query ("social" , "MATCH (a:person), (b:person) WHERE (a.name = 'roi' AND b.name='amit') CREATE (a)-[:knows]->(b)" ));
427427
428428 //expected objects init
429- Property nameProperty = new Property ("name" , ResultSet . ResultSetScalarTypes . VALUE_STRING , "roi" );
430- Property ageProperty = new Property ("age" , ResultSet . ResultSetScalarTypes . VALUE_INTEGER , 32 );
431- Property lastNameProperty =new Property ("lastName" , ResultSet . ResultSetScalarTypes . VALUE_STRING , "a" );
429+ Property nameProperty = new Property ("name" , "roi" );
430+ Property ageProperty = new Property ("age" , 32 );
431+ Property lastNameProperty =new Property ("lastName" , "a" );
432432
433433 Node expectedNode = new Node ();
434434 expectedNode .setId (0 );
@@ -570,7 +570,7 @@ public void testMultiExec(){
570570
571571 Assert .assertEquals (COLUMN_NODE , schemaTypes .get (0 ));
572572
573- Property nameProperty = new Property ("name" , ResultSet . ResultSetScalarTypes . VALUE_STRING , "a" );
573+ Property nameProperty = new Property ("name" , "a" );
574574
575575 Node expectedNode = new Node ();
576576 expectedNode .setId (0 );
@@ -629,15 +629,15 @@ public void testContextedAPI() {
629629 int since = 2000 ;
630630
631631
632- Property nameProperty = new Property ("name" , ResultSet . ResultSetScalarTypes . VALUE_STRING , name );
633- Property ageProperty = new Property ("age" , ResultSet . ResultSetScalarTypes . VALUE_INTEGER , age );
634- Property doubleProperty = new Property ("doubleValue" , ResultSet . ResultSetScalarTypes . VALUE_DOUBLE , doubleValue );
635- Property trueBooleanProperty = new Property ("boolValue" , ResultSet . ResultSetScalarTypes . VALUE_BOOLEAN , true );
636- Property falseBooleanProperty = new Property ("boolValue" , ResultSet . ResultSetScalarTypes . VALUE_BOOLEAN , false );
637- Property nullProperty = new Property ("nullValue" , ResultSet . ResultSetScalarTypes . VALUE_NULL , null );
632+ Property nameProperty = new Property ("name" , name );
633+ Property ageProperty = new Property ("age" , age );
634+ Property doubleProperty = new Property ("doubleValue" , doubleValue );
635+ Property trueBooleanProperty = new Property ("boolValue" , true );
636+ Property falseBooleanProperty = new Property ("boolValue" , false );
637+ Property nullProperty = new Property ("nullValue" , null );
638638
639- Property placeProperty = new Property ("place" , ResultSet . ResultSetScalarTypes . VALUE_STRING , place );
640- Property sinceProperty = new Property ("since" , ResultSet . ResultSetScalarTypes . VALUE_INTEGER , since );
639+ Property placeProperty = new Property ("place" , place );
640+ Property sinceProperty = new Property ("since" , since );
641641
642642 Node expectedNode = new Node ();
643643 expectedNode .setId (0 );
@@ -765,9 +765,9 @@ public void testArraySupport() {
765765 Node expectedANode = new Node ();
766766 expectedANode .setId (0 );
767767 expectedANode .addLabel ("person" );
768- Property aNameProperty = new Property ("name" , ResultSet . ResultSetScalarTypes . VALUE_STRING , "a" );
769- Property aAgeProperty = new Property ("age" , ResultSet . ResultSetScalarTypes . VALUE_INTEGER , 32 );
770- Property aListProperty = new Property ("array" , ResultSet . ResultSetScalarTypes . VALUE_ARRAY , Arrays .asList (0 ,1 ,2 ));
768+ Property aNameProperty = new Property ("name" , "a" );
769+ Property aAgeProperty = new Property ("age" , 32 );
770+ Property aListProperty = new Property ("array" , Arrays .asList (0 ,1 ,2 ));
771771 expectedANode .addProperty (aNameProperty );
772772 expectedANode .addProperty (aAgeProperty );
773773 expectedANode .addProperty (aListProperty );
@@ -776,9 +776,9 @@ public void testArraySupport() {
776776 Node expectedBNode = new Node ();
777777 expectedBNode .setId (1 );
778778 expectedBNode .addLabel ("person" );
779- Property bNameProperty = new Property ("name" , ResultSet . ResultSetScalarTypes . VALUE_STRING , "b" );
780- Property bAgeProperty = new Property ("age" , ResultSet . ResultSetScalarTypes . VALUE_INTEGER , 30 );
781- Property bListProperty = new Property ("array" , ResultSet . ResultSetScalarTypes . VALUE_ARRAY , Arrays .asList (3 ,4 ,5 ));
779+ Property bNameProperty = new Property ("name" , "b" );
780+ Property bAgeProperty = new Property ("age" , 30 );
781+ Property bListProperty = new Property ("array" , Arrays .asList (3 ,4 ,5 ));
782782 expectedBNode .addProperty (bNameProperty );
783783 expectedBNode .addProperty (bAgeProperty );
784784 expectedBNode .addProperty (bListProperty );
0 commit comments