METHOD_0 ( ) { com . facebook . buck . core . rules . IDENT_0 IDENT_1 = new com . facebook . buck . core . rules . METHOD_1 ( new com . facebook . buck . core . rules . resolver . impl . METHOD_2 ( ) ) ; com . facebook . buck . core . IDENT_2 . resolver . IDENT_3 resolver = com . facebook . buck . core . IDENT_2 . resolver . impl . IDENT_4 . from ( IDENT_1 ) ; com . facebook . buck . io . IDENT_5 . IDENT_6 IDENT_5 = com . facebook . buck . io . IDENT_5 . impl . IDENT_7 . METHOD_3 ( ) ; com . facebook . buck . core . model . IDENT_8 IDENT_9 = com . facebook . buck . core . model . IDENT_10 . newInstance ( IDENT_5 . METHOD_4 ( ) , STRING_0 ) ; com . facebook . buck . IDENT_11 . core . IDENT_12 IDENT_13 = METHOD_5 ( ) ; com . facebook . buck . core . build . context . IDENT_14 IDENT_15 = com . facebook . buck . core . build . context . IDENT_16 . METHOD_6 ( resolver ) . METHOD_7 ( IDENT_13 ) . METHOD_8 ( IDENT_5 . METHOD_4 ( ) ) ; com . facebook . buck . IDENT_11 . java . IDENT_17 IDENT_18 = new com . facebook . buck . IDENT_11 . java . METHOD_9 ( IDENT_5 , IDENT_15 , IDENT_9 , com . facebook . buck . IDENT_11 . java . IDENT_19 . builder ( ) . METHOD_10 ( com . facebook . buck . IDENT_11 . java . IDENT_19 . METHOD_11 ( resolver , IDENT_1 , IDENT_5 , com . google . common . collect . IDENT_20 . of ( com . facebook . buck . core . IDENT_2 . IDENT_21 . of ( IDENT_5 , STRING_1 ) , com . facebook . buck . core . IDENT_2 . IDENT_21 . of ( IDENT_5 , STRING_2 ) ) ) ) . METHOD_12 ( java . util . Optional . empty ( ) ) . build ( ) , IDENT_5 . METHOD_13 ( ) . METHOD_14 ( ) . resolve ( STRING_3 ) ) ; java . nio . file . Path target = IDENT_5 . METHOD_13 ( ) . METHOD_14 ( ) . resolve ( STRING_4 ) ; java . nio . file . Path IDENT_22 = IDENT_5 . METHOD_13 ( ) . METHOD_14 ( ) . resolve ( STRING_5 ) ; java . util . List < ? extends com . facebook . buck . IDENT_18 . IDENT_23 > expected = com . google . common . collect . ImmutableList . of ( com . facebook . buck . IDENT_18 . fs . IDENT_24 . of ( com . facebook . buck . io . IDENT_25 . METHOD_15 ( IDENT_15 . METHOD_16 ( ) , IDENT_5 , IDENT_22 . METHOD_17 ( ) ) ) , com . facebook . buck . IDENT_18 . fs . IDENT_26 . builder ( ) . METHOD_18 ( IDENT_5 ) . METHOD_19 ( IDENT_5 . resolve ( STRING_1 ) ) . METHOD_20 ( IDENT_22 ) . build ( ) , com . facebook . buck . IDENT_18 . fs . IDENT_24 . of ( com . facebook . buck . io . IDENT_25 . METHOD_15 ( IDENT_15 . METHOD_16 ( ) , IDENT_5 , target . METHOD_17 ( ) ) ) , com . facebook . buck . IDENT_18 . fs . IDENT_26 . builder ( ) . METHOD_18 ( IDENT_5 ) . METHOD_19 ( IDENT_5 . resolve ( STRING_2 ) ) . METHOD_20 ( target ) . build ( ) ) ; "<AssertPlaceHolder>" ; } METHOD_21 ( ) { com . google . common . collect . ImmutableList . Builder < com . facebook . buck . IDENT_18 . IDENT_23 > IDENT_27 = com . google . common . collect . ImmutableList . builder ( ) ; if ( parameters . METHOD_22 ( ) . isEmpty ( ) ) { return IDENT_27 . build ( ) ; } com . facebook . buck . IDENT_11 . core . IDENT_12 IDENT_13 = parameters . METHOD_23 ( ) . map ( IDENT_28 :: get ) . map ( ( root ) -> ( ( com . facebook . buck . IDENT_11 . core . IDENT_12 ) ( new com . facebook . buck . IDENT_11 . java . METHOD_24 ( root , IDENT_15 . METHOD_25 ( ) ) ) ) ) . METHOD_26 ( IDENT_15 . METHOD_25 ( ) ) ; java . lang . String IDENT_29 = IDENT_13 . METHOD_27 ( target ) ; for ( Map . Entry < java . lang . String , com . facebook . buck . core . IDENT_2 . IDENT_30 > entry : parameters . METHOD_22 ( ) . entrySet ( ) ) { java . lang . String resource = entry . getKey ( ) ; com . facebook . buck . core . IDENT_2 . IDENT_30 IDENT_31 = entry . getValue ( ) ; java . nio . file . Path IDENT_32 = IDENT_5 . METHOD_28 ( IDENT_15 . METHOD_29 ( ) . getAbsolutePath ( IDENT_31 ) ) ; java . nio . file . Path IDENT_33 = IDENT_13 . METHOD_30 ( IDENT_34 . METHOD_31 ( ) . getPath ( resource ) ) ; java . nio . file . Path IDENT_35 ; if ( "" . equals ( IDENT_33 . toString ( ) ) ) { IDENT_35 = IDENT_32 . METHOD_32 ( ) ; } else { int IDENT_36 = resource . METHOD_33 ( com . facebook . buck . io . file . IDENT_37 . METHOD_34 ( IDENT_33 ) ) ; if ( IDENT_36 < 0 ) { com . google . common . base . IDENT_38 . METHOD_35 ( ( IDENT_31 instanceof com . facebook . buck . core . IDENT_2 . IDENT_39 ) , STRING_6 , IDENT_32 , IDENT_33 ) ; IDENT_35 = IDENT_34 . METHOD_31 ( ) . getPath ( java . lang . String . format ( STRING_7 , IDENT_29 , ( IDENT_29 . isEmpty ( ) ? "" : "/" ) , IDENT_15 . METHOD_29 ( ) . METHOD_36 ( IDENT_31 ) . METHOD_32 ( ) ) ) ; } else { IDENT_35 = IDENT_34 . METHOD_31 ( ) . getPath ( resource . substring ( IDENT_36 ) ) ; } } java . nio . file . Path target = IDENT_34 . resolve ( IDENT_35 ) ; IDENT_27 . add ( com . facebook . buck . IDENT_18 . fs . IDENT_24 . of ( com . facebook . buck . io . IDENT_25 . METHOD_15 ( IDENT_15 . METHOD_16 ( ) , IDENT_5 , target . METHOD_17 ( ) ) ) ) ; IDENT_27 . add ( com . facebook . buck . IDENT_18 . fs . IDENT_26 . builder ( ) . METHOD_18 ( IDENT_5 ) . METHOD_19 ( IDENT_15 . METHOD_29 ( ) . getAbsolutePath ( IDENT_31 ) ) . METHOD_20 ( target ) . build ( ) ) ; } return IDENT_27 . build ( ) ; }
org . junit . Assert . assertEquals ( expected , IDENT_18 . METHOD_21 ( ) )