METHOD_0 ( ) { java . text . IDENT_0 IDENT_1 = new java . text . METHOD_1 ( STRING_0 4 ) ; java . text . IDENT_0 IDENT_2 = new java . text . METHOD_1 ( STRING_0 8 ) ; IDENT_1 . METHOD_2 ( java . util . IDENT_3 . METHOD_3 ( STRING_0 ) ) ; IDENT_2 . METHOD_2 ( java . util . IDENT_3 . METHOD_3 ( STRING_0 ) ) ; org . IDENT_4 . IDENT_5 . util . IDENT_6 instance = new org . IDENT_4 . IDENT_5 . util . METHOD_4 ( IDENT_1 ) ; java . util . IDENT_7 < java . util . Date > IDENT_8 ; instance = new org . IDENT_4 . IDENT_5 . util . METHOD_4 ( IDENT_2 ) ; IDENT_8 = new java . util . METHOD_5 ( ) ; IDENT_8 . add ( IDENT_2 . parse ( STRING_0 9 ) ) ; IDENT_8 . add ( IDENT_2 . parse ( STRING_1 ) ) ; IDENT_8 . add ( IDENT_2 . parse ( STRING_2 6 ) ) ; IDENT_8 . add ( IDENT_2 . parse ( STRING_0 6 ) ) ; expResult = STRING_0 2 ; result = instance . METHOD_6 ( IDENT_8 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( java . util . IDENT_7 ) { if ( ( IDENT_8 . METHOD_7 ( ) ) != null ) { throw new java . lang . IllegalArgumentException ( STRING_3 ) ; } if ( IDENT_8 . isEmpty ( ) ) { return "" ; } final java . lang . StringBuffer response = new java . lang . StringBuffer ( ) ; java . util . Date first = IDENT_8 . first ( ) ; java . util . Date IDENT_9 = first ; long IDENT_10 = 0 ; long IDENT_11 = 0 ; int IDENT_12 = 0 ; for ( java . util . Date d : IDENT_8 ) { IDENT_10 = IDENT_11 ; IDENT_11 = ( d . getTime ( ) ) - ( IDENT_9 . getTime ( ) ) ; if ( IDENT_10 != IDENT_11 ) { if ( IDENT_12 >= 2 ) { final java . lang . String IDENT_13 = IDENT_14 . format ( first ) ; if ( ( response . indexOf ( ( IDENT_13 + STRING_4 ) ) ) != ( - 1 ) ) { final int pos = response . indexOf ( IDENT_13 ) ; response . delete ( pos , ( ( pos + ( IDENT_13 . length ( ) ) ) + 1 ) ) ; } response . append ( METHOD_0 ( IDENT_8 . METHOD_8 ( first , d ) , IDENT_10 ) ) . append ( STRING_4 ) ; IDENT_12 = 1 ; } else { if ( IDENT_12 > 0 ) { IDENT_14 . format ( IDENT_9 , response , new java . text . METHOD_9 ( 0 ) ) . append ( STRING_4 ) ; IDENT_12 = 1 ; } } first = IDENT_9 ; } else { IDENT_12 ++ ; } IDENT_9 = d ; } if ( IDENT_12 > 0 ) { if ( IDENT_12 >= 2 ) { final java . lang . String IDENT_13 = IDENT_14 . format ( first ) ; if ( ( response . indexOf ( ( IDENT_13 + STRING_4 ) ) ) != ( - 1 ) ) { final int pos = response . indexOf ( IDENT_13 ) ; response . delete ( pos , ( ( pos + ( IDENT_13 . length ( ) ) ) + 1 ) ) ; } response . append ( METHOD_0 ( IDENT_8 . METHOD_10 ( first ) , IDENT_11 ) ) ; IDENT_12 = 1 ; } else { if ( IDENT_12 > 0 ) { IDENT_14 . format ( IDENT_9 , response , new java . text . METHOD_9 ( 0 ) ) ; IDENT_12 = 1 ; } } } return response . toString ( ) ; }
org . junit . Assert . assertEquals ( expResult , result )