METHOD_0 ( ) { database . METHOD_1 ( IDENT_0 . IDENT_1 . IDENT_2 ) ; com . orientechnologies . orient . core . record . IDENT_3 IDENT_4 = database . METHOD_2 ( STRING_0 ) ; IDENT_4 . setProperty ( "name" , com . orientechnologies . orient . server . tx . IDENT_5 . IDENT_6 ) ; database . save ( IDENT_4 ) ; com . orientechnologies . orient . core . record . IDENT_3 IDENT_7 = database . METHOD_2 ( STRING_1 ) ; IDENT_7 . setProperty ( "name" , "foo" ) ; com . orientechnologies . orient . core . record . IDENT_8 id = database . save ( IDENT_7 ) ; try ( com . orientechnologies . orient . core . sql . executor . IDENT_9 rs = database . query ( STRING_2 , id ) ) { } database . commit ( ) ; try ( com . orientechnologies . orient . core . sql . executor . IDENT_9 rs = database . query ( STRING_3 , com . orientechnologies . orient . server . tx . IDENT_5 . IDENT_6 ) ) { "<AssertPlaceHolder>" ; } } stream ( ) { com . orientechnologies . orient . object . db . IDENT_10 . IDENT_11 IDENT_12 = METHOD_3 ( ) ; IDENT_12 = IDENT_13 . save ( IDENT_12 ) ; com . orientechnologies . orient . object . db . IDENT_10 . IDENT_14 IDENT_15 = new com . orientechnologies . orient . object . db . IDENT_10 . METHOD_4 ( ) ; IDENT_15 . METHOD_5 ( STRING_4 ) ; com . orientechnologies . orient . object . db . IDENT_10 . METHOD_4 IDENT_16 = new com . orientechnologies . orient . object . db . IDENT_10 . METHOD_4 ( ) ; IDENT_16 . METHOD_5 ( STRING_5 ) ; IDENT_12 . METHOD_6 ( ) . add ( 0 , IDENT_15 ) ; IDENT_12 . METHOD_6 ( ) . add ( IDENT_12 . METHOD_6 ( ) . size ( ) , IDENT_16 ) ; IDENT_12 = IDENT_13 . save ( IDENT_12 ) ; count = 0 ; IDENT_12 . METHOD_6 ( ) . stream ( ) . METHOD_7 ( ( IDENT_17 ) -> { assertNotNull ( IDENT_17 ) ; ( count ) ++ ; } ) ; org . junit . Assert . assertEquals ( IDENT_12 . METHOD_6 ( ) . size ( ) , count ) ; }
org . junit . Assert . assertEquals ( rs . stream ( ) . count ( ) , 1 )