METHOD_0 ( ) { METHOD_1 ( ) ; service . METHOD_2 ( ( ) -> { METHOD_3 ( ) ; } ) ; org . elasticsearch . client . IDENT_0 client = IDENT_1 . client ( ) ; METHOD_4 ( ) ; org . elasticsearch . action . search . IDENT_2 response = client . METHOD_5 ( STRING_0 ) . METHOD_6 ( STRING_1 ) . METHOD_7 ( org . elasticsearch . index . query . IDENT_3 . METHOD_8 ( STRING_2 , STRING_3 ) ) . METHOD_9 ( 0 ) . execute ( ) . METHOD_10 ( ) ; long IDENT_4 = response . METHOD_11 ( ) . METHOD_12 ( ) ; System . out . println ( ( STRING_4 + IDENT_4 ) ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( ) { org . elasticsearch . client . IDENT_5 client = IDENT_1 . client ( ) . admin ( ) ; while ( true ) { try { org . elasticsearch . action . admin . IDENT_6 . exists . IDENT_6 . IDENT_7 response = client . METHOD_13 ( ) . exists ( IDENT_8 . INSTANCE . METHOD_14 ( IDENT_1 . client ( ) ) . METHOD_15 ( new java . lang . String [ ] { STRING_0 } ) . request ( ) ) . METHOD_10 ( ) ; if ( response != null ) { if ( response . METHOD_16 ( ) ) { System . out . println ( STRING_5 ) ; METHOD_17 ( INT_0 ) ; break ; } } } catch ( org . elasticsearch . IDENT_9 e ) { e . printStackTrace ( ) ; } METHOD_17 ( 1000 ) ; } }
org . junit . Assert . assertEquals ( 1 , IDENT_4 )