METHOD_0 ( ) { "<AssertPlaceHolder>" ; } expect ( long , net . sf . IDENT_0 . matcher . IDENT_1 ) { if ( ( IDENT_2 ) == null ) { throw new java . lang . IllegalStateException ( STRING_0 ) ; } final long IDENT_3 = ( java . lang . System . currentTimeMillis ( ) ) + IDENT_4 ; final boolean IDENT_5 = IDENT_4 == ( IDENT_6 . IDENT_7 ) ; long IDENT_8 = IDENT_4 ; java . nio . ByteBuffer IDENT_9 = java . nio . ByteBuffer . METHOD_1 ( net . sf . IDENT_0 . IDENT_10 . IDENT_11 ) ; java . nio . IDENT_12 . IDENT_13 IDENT_14 = java . nio . IDENT_12 . IDENT_13 . METHOD_2 ( ) ; try { source . METHOD_3 ( IDENT_14 , IDENT_15 . IDENT_16 ) ; IDENT_17 result = matcher . matches ( buffer . toString ( ) , IDENT_2 . METHOD_4 ( ) ) ; if ( net . sf . IDENT_0 . IDENT_10 . LOG . METHOD_5 ( IDENT_18 . IDENT_19 ) ) { net . sf . IDENT_0 . IDENT_10 . LOG . METHOD_6 ( java . lang . String . format ( STRING_1 , net . sf . IDENT_0 . Utils . METHOD_7 ( matcher ) , net . sf . IDENT_0 . Utils . METHOD_7 ( result ) ) ) ; } while ( ( ! ( ( result . METHOD_8 ( ) ) || ( result . METHOD_9 ( ) ) ) ) && ( IDENT_5 || ( IDENT_8 > 0 ) ) ) { int keys = ( IDENT_5 ) ? IDENT_14 . select ( ) : IDENT_14 . select ( IDENT_8 ) ; if ( java . lang . Thread . METHOD_10 ( ) . METHOD_11 ( ) ) { net . sf . IDENT_0 . IDENT_10 . LOG . METHOD_6 ( STRING_2 ) ; throw new java . nio . IDENT_12 . METHOD_12 ( ) ; } if ( ! IDENT_5 ) { IDENT_8 = IDENT_3 - ( java . lang . System . currentTimeMillis ( ) ) ; } if ( keys == 0 ) { net . sf . IDENT_0 . IDENT_10 . LOG . METHOD_6 ( STRING_3 ) ; continue ; } IDENT_14 . METHOD_13 ( ) . METHOD_14 ( ) ; int len = source . read ( IDENT_9 ) ; if ( len > 0 ) { java . lang . String string = new java . lang . String ( IDENT_9 . array ( ) , 0 , len , IDENT_20 ) ; METHOD_15 ( string ) ; IDENT_9 . METHOD_14 ( ) ; } final boolean IDENT_21 = len == ( - 1 ) ; result = matcher . matches ( buffer . toString ( ) , IDENT_21 ) ; if ( net . sf . IDENT_0 . IDENT_10 . LOG . METHOD_5 ( IDENT_18 . IDENT_19 ) ) { net . sf . IDENT_0 . IDENT_10 . LOG . METHOD_6 ( java . lang . String . format ( STRING_4 , net . sf . IDENT_0 . Utils . METHOD_7 ( matcher ) , net . sf . IDENT_0 . Utils . METHOD_7 ( result ) , ( IDENT_4 - IDENT_8 ) ) ) ; } if ( IDENT_21 ) { break ; } } if ( result . METHOD_8 ( ) ) { buffer . delete ( 0 , result . end ( ) ) ; } else if ( ( IDENT_2 . METHOD_4 ( ) ) && ( ( buffer . length ( ) ) == 0 ) ) { throw new java . io . METHOD_16 ( STRING_5 ) ; } return result ; } finally { IDENT_14 . close ( ) ; } }
org . junit . Assert . assertTrue ( input . expect ( IDENT_6 . IDENT_7 , anyString ( ) ) . METHOD_8 ( ) )