@@ -175,7 +175,7 @@ void shouldReturnErrorWhenHasKeyIsNull() {
175175
176176 @ Test
177177 void shouldHaveLabel () {
178- List <Magazine > magazines = graphTemplate .traversalVertex ().hasLabel ("Book " ).<Magazine >result ().collect (toList ());
178+ List <Magazine > magazines = graphTemplate .traversalVertex ().hasLabel ("Magazine " ).<Magazine >result ().collect (toList ());
179179 assertEquals (3 , magazines .size ());
180180 assertThat (magazines ).contains (shack , license , effectiveJava );
181181 }
@@ -184,7 +184,7 @@ void shouldHaveLabel() {
184184 void shouldHaveLabel2 () {
185185
186186 List <Object > entities = graphTemplate .traversalVertex ()
187- .hasLabel (P .eq ("Book " ).or (P .eq ("Person " )))
187+ .hasLabel (P .eq ("Magazine " ).or (P .eq ("Human " )))
188188 .result ().collect (toList ());
189189 assertThat (entities ).hasSize (6 ).contains (shack , license , effectiveJava , otavio , poliana , paulo );
190190 }
@@ -272,7 +272,7 @@ void shouldDefinesRange() {
272272
273273 @ Test
274274 void shouldMapValuesAsStream () {
275- List <Map <String , Object >> maps = graphTemplate .traversalVertex ().hasLabel ("Person " )
275+ List <Map <String , Object >> maps = graphTemplate .traversalVertex ().hasLabel ("Human " )
276276 .valueMap ("name" ).stream ().toList ();
277277
278278 assertFalse (maps .isEmpty ());
@@ -287,7 +287,7 @@ void shouldMapValuesAsStream() {
287287
288288 @ Test
289289 void shouldMapValuesAsStreamLimit () {
290- List <Map <String , Object >> maps = graphTemplate .traversalVertex ().hasLabel ("Person " )
290+ List <Map <String , Object >> maps = graphTemplate .traversalVertex ().hasLabel ("Human " )
291291 .valueMap ("name" ).next (2 ).toList ();
292292
293293 assertFalse (maps .isEmpty ());
@@ -304,7 +304,7 @@ void shouldReturnMapValueAsEmptyStream() {
304304
305305 @ Test
306306 void shouldReturnNext () {
307- Map <String , Object > map = graphTemplate .traversalVertex ().hasLabel ("Person " )
307+ Map <String , Object > map = graphTemplate .traversalVertex ().hasLabel ("Human " )
308308 .valueMap ("name" ).next ();
309309
310310 assertNotNull (map );
@@ -403,7 +403,7 @@ void shouldOrderAsc() {
403403 String property = "name" ;
404404
405405 List <String > properties = graphTemplate .traversalVertex ()
406- .hasLabel ("Book " )
406+ .hasLabel ("Magazine " )
407407 .has (property )
408408 .orderBy (property )
409409 .asc ().<Magazine >result ()
@@ -418,7 +418,7 @@ void shouldOrderDesc() {
418418 String property = "name" ;
419419
420420 List <String > properties = graphTemplate .traversalVertex ()
421- .hasLabel ("Book " )
421+ .hasLabel ("Magazine " )
422422 .has (property )
423423 .orderBy (property )
424424 .desc ().<Magazine >result ()
@@ -452,15 +452,15 @@ void shouldReturnHasLabel() {
452452
453453 @ Test
454454 void shouldReturnResultAsList () {
455- List <Human > people = graphTemplate .traversalVertex ().hasLabel ("Person " )
455+ List <Human > people = graphTemplate .traversalVertex ().hasLabel ("Human " )
456456 .<Human >result ()
457457 .toList ();
458458 assertEquals (3 , people .size ());
459459 }
460460
461461 @ Test
462462 void shouldReturnErrorWhenThereAreMoreThanOneInGetSingleResult () {
463- assertThrows (NonUniqueResultException .class , () -> graphTemplate .traversalVertex ().hasLabel ("Person " ).singleResult ());
463+ assertThrows (NonUniqueResultException .class , () -> graphTemplate .traversalVertex ().hasLabel ("Human " ).singleResult ());
464464 }
465465
466466 @ Test
@@ -472,7 +472,7 @@ void shouldReturnOptionalEmptyWhenThereIsNotResultInSingleResult() {
472472 @ Test
473473 void shouldReturnSingleResult () {
474474 String name = "Poliana" ;
475- Optional <Human > poliana = graphTemplate .traversalVertex ().hasLabel ("Person " ).
475+ Optional <Human > poliana = graphTemplate .traversalVertex ().hasLabel ("Human " ).
476476 has ("name" , name ).singleResult ();
477477 assertEquals (name , poliana .map (Human ::getName ).orElse ("" ));
478478 }
0 commit comments