METHOD_0 ( ) { @ org . IDENT_0 . IDENT_1 . util . IDENT_2 . METHOD_1 ( STRING_0 ) java . util . IDENT_3 < org . IDENT_0 . IDENT_1 . solution . IDENT_4 < ? > > IDENT_5 = mock ( java . util . IDENT_3 . class ) ; when ( IDENT_5 . compare ( any ( org . IDENT_0 . IDENT_1 . solution . IDENT_4 . class ) , any ( org . IDENT_0 . IDENT_1 . solution . IDENT_4 . class ) ) ) . thenReturn ( 1 ) ; org . springframework . test . util . IDENT_6 . METHOD_2 ( IDENT_2 , STRING_1 , IDENT_5 ) ; org . IDENT_0 . IDENT_1 . solution . IDENT_4 < ? > IDENT_7 = mock ( org . IDENT_0 . IDENT_1 . solution . IDENT_4 . class ) ; org . IDENT_0 . IDENT_1 . solution . IDENT_4 < ? > IDENT_8 = mock ( org . IDENT_0 . IDENT_1 . solution . IDENT_4 . class ) ; "<AssertPlaceHolder>" ; verify ( IDENT_5 ) . compare ( IDENT_7 , IDENT_8 ) ; } compare ( IDENT_9 extends org . IDENT_0 . IDENT_1 . solution . IDENT_4 , IDENT_9 extends org . IDENT_0 . IDENT_1 . solution . IDENT_4 ) { if ( ( IDENT_10 . METHOD_3 ( IDENT_7 ) ) == null ) { return 0 ; } double IDENT_11 ; double IDENT_12 ; IDENT_11 = ( IDENT_13 . METHOD_3 ( IDENT_7 ) ) * ( IDENT_10 . METHOD_3 ( IDENT_7 ) ) ; IDENT_12 = ( IDENT_13 . METHOD_3 ( IDENT_8 ) ) * ( IDENT_10 . METHOD_3 ( IDENT_8 ) ) ; if ( ( IDENT_11 < 0 ) && ( IDENT_12 < 0 ) ) { if ( IDENT_11 > IDENT_12 ) { return - 1 ; } else if ( IDENT_12 > IDENT_11 ) { return 1 ; } else { return 0 ; } } else if ( ( IDENT_11 == 0 ) && ( IDENT_12 < 0 ) ) { return - 1 ; } else if ( ( IDENT_11 < 0 ) && ( IDENT_12 == 0 ) ) { return 1 ; } else { return 0 ; } }
org . junit . Assert . assertEquals ( 1 , IDENT_2 . compare ( IDENT_7 , IDENT_8 ) )