METHOD_0 ( ) { org . IDENT_0 . module . IDENT_1 . IDENT_2 p = new org . IDENT_0 . module . IDENT_1 . METHOD_1 ( ) ; p . METHOD_2 ( new org . openmrs . User ( ) ) ; p . setName ( STRING_0 ) ; p . METHOD_3 ( ( STRING_1 + STRING_2 ) ) ; java . util . List < org . openmrs . IDENT_3 > IDENT_4 = s . METHOD_4 ( p ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( org . IDENT_0 . module . IDENT_1 . METHOD_1 ) { if ( ( IDENT_5 . METHOD_5 ( ) ) == null ) { return new java . util . ArrayList < org . openmrs . IDENT_3 > ( ) ; } java . lang . String query = IDENT_5 . METHOD_5 ( ) ; if ( ( query . indexOf ( STRING_3 3 ) ) == 0 ) { query = query . substring ( 1 ) ; } org . openmrs . IDENT_6 IDENT_7 = null ; java . util . Date IDENT_8 = null ; java . util . Date IDENT_9 = null ; org . openmrs . IDENT_10 IDENT_11 = null ; org . openmrs . IDENT_12 IDENT_13 = null ; java . lang . String IDENT_14 = null ; java . util . List < org . openmrs . IDENT_3 > IDENT_15 = null ; java . util . List < org . openmrs . IDENT_12 > IDENT_16 = new java . util . ArrayList < org . openmrs . IDENT_12 > ( ) ; java . util . List < org . openmrs . IDENT_3 > IDENT_17 = new java . util . ArrayList < org . openmrs . IDENT_3 > ( ) ; org . openmrs . IDENT_18 location = null ; java . lang . String IDENT_19 = "" ; java . lang . String [ ] IDENT_20 = query . split ( STRING_4 ) ; for ( int i = 0 ; i < ( IDENT_20 . length ) ; i ++ ) { if ( ( IDENT_20 [ i ] . indexOf ( STRING_5 ) ) != ( - 1 ) ) { IDENT_7 = org . openmrs . api . context . Context . METHOD_6 ( ) . METHOD_7 ( IDENT_20 [ i ] . substring ( INT_0 ) ) ; } else if ( ( IDENT_20 [ i ] . indexOf ( STRING_6 ) ) != ( - 1 ) ) { location = org . openmrs . api . context . Context . METHOD_8 ( ) . METHOD_9 ( IDENT_20 [ i ] . substring ( 9 ) ) ; } else if ( ( IDENT_20 [ i ] . indexOf ( STRING_7 ) ) != ( - 1 ) ) { IDENT_8 = METHOD_10 ( IDENT_20 [ i ] . substring ( 10 ) ) ; } else if ( ( IDENT_20 [ i ] . indexOf ( STRING_3 4 ) ) != ( - 1 ) ) { IDENT_9 = METHOD_10 ( IDENT_20 [ i ] . substring ( 8 ) ) ; } else if ( ( IDENT_20 [ i ] . indexOf ( STRING_8 ) ) != ( - 1 ) ) { IDENT_15 = new java . util . ArrayList < org . openmrs . IDENT_3 > ( ) ; java . lang . String [ ] IDENT_21 = IDENT_20 [ i ] . substring ( 7 ) . split ( STRING_3 2 ) ; for ( int j = 0 ; j < ( IDENT_21 . length ) ; j ++ ) { IDENT_15 . addAll ( METHOD_4 ( METHOD_11 ( IDENT_21 [ j ] ) ) ) ; } } else if ( ( IDENT_20 [ i ] . indexOf ( STRING_9 ) ) != ( - 1 ) ) { java . lang . String [ ] IDENT_22 = IDENT_20 [ i ] . substring ( 10 ) . split ( STRING_3 2 ) ; for ( int k = 0 ; k < ( IDENT_22 . length ) ; k ++ ) { IDENT_16 . addAll ( METHOD_12 ( METHOD_11 ( IDENT_22 [ k ] ) ) ) ; IDENT_17 . addAll ( METHOD_4 ( METHOD_11 ( IDENT_22 [ k ] ) ) ) ; } } else if ( ( IDENT_20 [ i ] . indexOf ( STRING_3 0 ) ) != ( - 1 ) ) { IDENT_14 = IDENT_20 [ i ] . substring ( 9 ) ; IDENT_11 = org . openmrs . api . context . Context . METHOD_13 ( ) . METHOD_14 ( IDENT_14 ) ; } else if ( ( IDENT_20 [ i ] . indexOf ( STRING_3 1 ) ) != ( - 1 ) ) { IDENT_14 = IDENT_20 [ i ] . substring ( 8 ) ; IDENT_13 = org . openmrs . api . context . Context . METHOD_15 ( ) . METHOD_16 ( IDENT_14 ) ; } else if ( ( IDENT_20 [ i ] . indexOf ( STRING_10 ) ) != ( - 1 ) ) { IDENT_19 = IDENT_20 [ i ] . substring ( INT_1 ) ; } } java . util . List < org . openmrs . IDENT_6 > IDENT_23 = new java . util . ArrayList < org . openmrs . IDENT_6 > ( ) ; java . util . List < org . openmrs . IDENT_10 > IDENT_24 = new java . util . ArrayList < org . openmrs . IDENT_10 > ( ) ; java . util . List < org . openmrs . IDENT_3 > IDENT_4 = new java . util . ArrayList < org . openmrs . IDENT_3 > ( ) ; IDENT_23 . add ( IDENT_7 ) ; IDENT_24 . add ( IDENT_11 ) ; if ( IDENT_15 != null ) { IDENT_4 = IDENT_15 ; java . util . Iterator < org . openmrs . IDENT_3 > IDENT_25 = IDENT_4 . iterator ( ) ; while ( IDENT_25 . hasNext ( ) ) { org . openmrs . IDENT_3 IDENT_26 = IDENT_25 . next ( ) ; if ( ( ( ( ( IDENT_8 != null ) && ( IDENT_26 . METHOD_17 ( ) . METHOD_18 ( IDENT_8 ) ) ) || ( ( IDENT_9 != null ) && ( IDENT_26 . METHOD_17 ( ) . METHOD_19 ( IDENT_9 ) ) ) ) || ( ( IDENT_7 != null ) && ( ! ( IDENT_26 . METHOD_20 ( ) . equals ( IDENT_7 ) ) ) ) ) || ( ( IDENT_13 != null ) && ( ! ( IDENT_26 . METHOD_21 ( ) . equals ( IDENT_13 ) ) ) ) ) { IDENT_25 . remove ( ) ; } else if ( IDENT_11 != null ) { java . util . Iterator < java . util . Set < org . openmrs . IDENT_10 > > IDENT_27 = IDENT_26 . METHOD_22 ( ) . values ( ) . iterator ( ) ; boolean IDENT_28 = false ; while ( ( IDENT_27 . hasNext ( ) ) && ( ! IDENT_28 ) ) { java . util . Set < org . openmrs . IDENT_10 > IDENT_29 = IDENT_27 . next ( ) ; if ( IDENT_29 . contains ( IDENT_11 ) ) { IDENT_28 = true ; } } if ( ! IDENT_28 ) { IDENT_25 . remove ( ) ; } } } } else { if ( IDENT_14 != null ) { IDENT_4 = org . openmrs . api . context . Context . METHOD_6 ( ) . METHOD_23 ( IDENT_13 , location , IDENT_8 , IDENT_9 , null , IDENT_23 , IDENT_24 , null , null , Boolean . IDENT_30 ) ; } else { IDENT_4 = org . openmrs . api . context . Context . METHOD_6 ( ) . METHOD_23 ( IDENT_13 , location , IDENT_8 , IDENT_9 , null , IDENT_23 , null , null , null , Boolean . IDENT_30 ) ; } } if ( IDENT_16 != null ) { java . util . Iterator < org . openmrs . IDENT_3 > IDENT_25 = IDENT_4 . iterator ( ) ; java . util . Iterator < org . openmrs . IDENT_3 > IDENT_31 ; while ( IDENT_25 . hasNext ( ) ) { org . openmrs . IDENT_3 IDENT_26 = IDENT_25 . next ( ) ; if ( IDENT_16 . contains ( IDENT_26 . METHOD_21 ( ) ) ) { IDENT_31 = IDENT_17 . iterator ( ) ; boolean IDENT_32 = false ; while ( ( IDENT_31 . hasNext ( ) ) && ( ! IDENT_32 ) ) { org . openmrs . IDENT_3 IDENT_33 = IDENT_31 . next ( ) ; if ( ( IDENT_33 . METHOD_21 ( ) . equals ( IDENT_26 . METHOD_21 ( ) ) ) && ( IDENT_33 . METHOD_17 ( ) . METHOD_19 ( IDENT_26 . METHOD_17 ( ) ) ) ) { IDENT_25 . remove ( ) ; IDENT_32 = true ; } } } } } if ( IDENT_19 . equals ( STRING_11 ) ) { boolean IDENT_34 ; java . util . Iterator < org . openmrs . IDENT_3 > IDENT_25 = IDENT_4 . iterator ( ) ; while ( IDENT_25 . hasNext ( ) ) { IDENT_34 = true ; org . openmrs . IDENT_3 IDENT_26 = IDENT_25 . next ( ) ; java . util . Iterator < org . openmrs . IDENT_35 > IDENT_36 = IDENT_26 . METHOD_24 ( ) . iterator ( ) ; while ( IDENT_36 . hasNext ( ) ) { org . openmrs . IDENT_35 o = IDENT_36 . next ( ) ; if ( o . METHOD_25 ( ) ) { IDENT_34 = false ; break ; } } if ( IDENT_34 ) { IDENT_25 . remove ( ) ; } } } return IDENT_4 ; }
org . junit . Assert . assertEquals ( IDENT_4 . size ( ) , 1 )