METHOD_0 ( ) { org . apache . IDENT_0 . IDENT_1 . IDENT_2 tomcat = METHOD_1 ( ) ; org . junit . IDENT_3 . METHOD_2 ( STRING_0 , org . apache . tomcat . util . net . IDENT_4 . METHOD_3 ( METHOD_1 ( ) ) ) ; org . apache . IDENT_0 . Context root = tomcat . METHOD_4 ( "" , org . apache . tomcat . util . net . IDENT_5 ) ; org . apache . IDENT_0 . IDENT_6 IDENT_7 = org . apache . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_5 ( root , STRING_1 , new org . apache . IDENT_0 . IDENT_1 . METHOD_6 ( ) ) ; IDENT_7 . METHOD_7 ( true ) ; root . METHOD_8 ( "/" , STRING_1 ) ; org . apache . tomcat . util . net . IDENT_4 . METHOD_9 ( tomcat ) ; tomcat . start ( ) ; javax . net . IDENT_8 . IDENT_9 IDENT_10 = javax . net . IDENT_8 . IDENT_9 . getInstance ( STRING_2 ) ; IDENT_10 . init ( null , org . apache . tomcat . util . net . IDENT_4 . METHOD_10 ( ) , null ) ; javax . net . IDENT_8 . IDENT_11 IDENT_12 = IDENT_10 . METHOD_11 ( ) ; javax . net . IDENT_8 . IDENT_13 IDENT_14 = ( ( javax . net . IDENT_8 . IDENT_13 ) ( IDENT_12 . METHOD_12 ( STRING_3 , METHOD_13 ( ) ) ) ) ; java . io . IDENT_15 IDENT_16 = IDENT_14 . METHOD_14 ( ) ; java . io . InputStream is = IDENT_14 . METHOD_15 ( ) ; java . io . IDENT_17 r = new java . io . METHOD_16 ( is ) ; METHOD_17 ( IDENT_16 , r ) ; org . apache . tomcat . util . net . IDENT_18 . IDENT_19 listener = new org . apache . tomcat . util . net . IDENT_18 . METHOD_18 ( ) ; IDENT_14 . METHOD_19 ( listener ) ; IDENT_14 . METHOD_20 ( ) ; int IDENT_20 = 0 ; int IDENT_21 = 0 ; try { while ( IDENT_20 < 10 ) { IDENT_20 ++ ; METHOD_17 ( IDENT_16 , r ) ; if ( ( listener . METHOD_21 ( ) ) && ( IDENT_21 == 0 ) ) { IDENT_21 = IDENT_20 ; } } } catch ( java . lang . IDENT_22 | java . io . IOException e ) { java . lang . String message = ( ( STRING_4 + IDENT_20 ) + STRING_5 ) + ( e . getMessage ( ) ) ; log . error ( message , e ) ; org . junit . Assert . fail ( message ) ; } "<AssertPlaceHolder>" ; System . out . println ( ( ( STRING_6 + IDENT_21 ) + STRING_7 ) ) ; } METHOD_21 ( ) { if ( ( IDENT_23 ) <= 0 ) return true ; switch ( options ) { case org . apache . IDENT_0 . IDENT_24 . group . IDENT_25 . IDENT_26 : return ( IDENT_23 ) == ( IDENT_27 . size ( ) ) ; case org . apache . IDENT_0 . IDENT_24 . group . IDENT_25 . IDENT_28 : float IDENT_29 = ( ( float ) ( IDENT_27 . size ( ) ) ) / ( ( float ) ( IDENT_23 ) ) ; return IDENT_29 >= FLOAT_0 ; case org . apache . IDENT_0 . IDENT_24 . group . IDENT_25 . IDENT_30 : return ( IDENT_27 . size ( ) ) > 0 ; default : return false ; } }
org . junit . Assert . assertTrue ( listener . METHOD_21 ( ) )