METHOD_0 ( ) { METHOD_1 ( ) ; org . apache . IDENT_0 . db . IDENT_1 IDENT_2 = org . mockito . Mockito . mock ( org . apache . IDENT_0 . db . IDENT_1 . class ) ; org . apache . IDENT_0 . view . IDENT_3 IDENT_4 = METHOD_2 ( ) ; org . apache . IDENT_0 . entity . IDENT_5 user = new org . apache . IDENT_0 . entity . METHOD_3 ( ) ; user . setId ( METHOD_2 . getId ( ) ) ; user . METHOD_4 ( METHOD_2 . METHOD_5 ( ) ) ; METHOD_2 . METHOD_6 ( STRING_0 ) ; METHOD_2 . METHOD_7 ( STRING_0 ) ; org . mockito . Mockito . when ( IDENT_6 . METHOD_8 ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( true ) ; java . lang . String IDENT_7 = IDENT_8 . METHOD_9 ( METHOD_2 . METHOD_5 ( ) , METHOD_2 . METHOD_10 ( ) ) ; user . METHOD_11 ( IDENT_7 ) ; org . mockito . Mockito . when ( IDENT_9 . METHOD_12 ( ) ) . thenReturn ( IDENT_2 ) ; org . mockito . Mockito . when ( IDENT_2 . METHOD_13 ( METHOD_2 . getId ( ) ) ) . thenReturn ( user ) ; org . mockito . Mockito . METHOD_14 ( ) . when ( IDENT_10 ) . METHOD_15 ( ) ; org . mockito . Mockito . when ( IDENT_6 . METHOD_16 ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( METHOD_2 . METHOD_17 ( ) ) ; org . apache . IDENT_0 . entity . METHOD_3 IDENT_11 = IDENT_8 . METHOD_18 ( METHOD_2 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . when ( IDENT_6 . isEmpty ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( true ) ; METHOD_2 . METHOD_6 ( STRING_1 ) ; METHOD_2 . METHOD_7 ( STRING_1 ) ; METHOD_2 . METHOD_19 ( "" ) ; IDENT_11 = IDENT_8 . METHOD_18 ( METHOD_2 ) ; } METHOD_18 ( org . apache . IDENT_0 . view . IDENT_3 ) { org . apache . IDENT_0 . entity . METHOD_3 IDENT_12 = IDENT_9 . METHOD_12 ( ) . METHOD_13 ( METHOD_2 . getId ( ) ) ; if ( IDENT_12 == null ) { org . apache . IDENT_0 . IDENT_13 . IDENT_14 . logger . error ( ( STRING_2 + METHOD_2 ) ) ; return null ; } METHOD_20 ( IDENT_12 ) ; IDENT_10 . METHOD_15 ( ) ; boolean METHOD_18 = false ; if ( ( METHOD_2 . getStatus ( ) ) != ( IDENT_12 . getStatus ( ) ) ) { METHOD_18 = true ; } java . lang . String IDENT_15 = METHOD_2 . METHOD_21 ( ) ; if ( IDENT_6 . isEmpty ( IDENT_15 ) ) { METHOD_2 . METHOD_19 ( null ) ; METHOD_18 = true ; } else { if ( IDENT_6 . METHOD_8 ( IDENT_15 ) ) { org . apache . IDENT_0 . entity . METHOD_3 IDENT_16 = IDENT_9 . METHOD_12 ( ) . METHOD_22 ( IDENT_15 ) ; if ( IDENT_16 != null ) { java . lang . String IDENT_17 = METHOD_2 . METHOD_5 ( ) ; if ( IDENT_17 == null ) { throw IDENT_18 . METHOD_23 ( ( STRING_3 + STRING_4 ) , IDENT_19 . IDENT_20 ) ; } else if ( ! ( IDENT_17 . equals ( IDENT_16 . METHOD_5 ( ) ) ) ) { throw IDENT_18 . METHOD_23 ( ( STRING_5 + STRING_6 ) , IDENT_19 . IDENT_20 ) ; } else { METHOD_2 . METHOD_19 ( IDENT_15 ) ; METHOD_18 = true ; } } else { METHOD_2 . METHOD_19 ( IDENT_15 ) ; METHOD_18 = true ; } } else { throw IDENT_18 . METHOD_23 ( STRING_7 , IDENT_19 . IDENT_20 ) ; } } if ( STRING_1 . equalsIgnoreCase ( METHOD_2 . METHOD_17 ( ) ) ) { METHOD_2 . METHOD_6 ( "" ) ; } if ( ( ! ( IDENT_6 . isEmpty ( METHOD_2 . METHOD_17 ( ) ) ) ) && ( ! ( METHOD_2 . METHOD_17 ( ) . equals ( IDENT_12 . METHOD_17 ( ) ) ) ) ) { METHOD_2 . METHOD_6 ( IDENT_6 . METHOD_16 ( METHOD_2 . METHOD_17 ( ) ) ) ; METHOD_18 = true ; } if ( STRING_1 . equalsIgnoreCase ( METHOD_2 . METHOD_24 ( ) ) ) { METHOD_2 . METHOD_7 ( "" ) ; } if ( ( ! ( IDENT_6 . isEmpty ( METHOD_2 . METHOD_24 ( ) ) ) ) && ( ! ( METHOD_2 . METHOD_24 ( ) . equals ( IDENT_12 . METHOD_24 ( ) ) ) ) ) { METHOD_2 . METHOD_7 ( IDENT_6 . METHOD_16 ( METHOD_2 . METHOD_24 ( ) ) ) ; METHOD_18 = true ; } if ( ( ( ( ( METHOD_2 . METHOD_17 ( ) ) != null ) && ( ( METHOD_2 . METHOD_24 ( ) ) != null ) ) && ( ! ( METHOD_2 . METHOD_17 ( ) . trim ( ) . isEmpty ( ) ) ) ) && ( ! ( METHOD_2 . METHOD_24 ( ) . trim ( ) . isEmpty ( ) ) ) ) { METHOD_2 . METHOD_25 ( ( ( ( METHOD_2 . METHOD_17 ( ) ) + " " ) + ( METHOD_2 . METHOD_24 ( ) ) ) ) ; METHOD_18 = true ; } else { METHOD_2 . METHOD_25 ( IDENT_12 . METHOD_5 ( ) ) ; METHOD_18 = true ; } METHOD_26 ( METHOD_2 . getId ( ) , METHOD_2 . METHOD_27 ( ) ) ; if ( METHOD_18 ) { java . util . List < org . apache . IDENT_0 . entity . IDENT_21 > IDENT_22 = IDENT_23 . METHOD_28 ( METHOD_2 , IDENT_12 , STRING_8 ) ; METHOD_2 . METHOD_11 ( IDENT_12 . METHOD_10 ( ) ) ; IDENT_23 . METHOD_29 ( METHOD_2 ) ; IDENT_24 . METHOD_30 ( org . apache . IDENT_0 . common . IDENT_25 . METHOD_31 ( ) ) ; IDENT_10 . METHOD_32 ( IDENT_22 ) ; } return IDENT_12 ; }
org . junit . Assert . assertNotNull ( IDENT_11 )