METHOD_0 ( ) { org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 IDENT_3 = mock ( org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 . class ) ; when ( IDENT_3 . getPath ( ) ) . thenReturn ( STRING_0 ) ; when ( IDENT_3 . getName ( ) ) . thenReturn ( STRING_1 ) ; when ( org . pentaho . platform . web . http . api . resources . services . IDENT_4 . IDENT_5 . repository . METHOD_1 ( anyString ( ) ) ) . thenReturn ( IDENT_3 ) ; java . lang . String IDENT_6 = STRING_2 ; java . lang . String IDENT_7 = STRING_3 ; boolean IDENT_8 = org . pentaho . platform . web . http . api . resources . services . IDENT_4 . IDENT_5 . METHOD_2 ( IDENT_6 , IDENT_7 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , java . lang . String ) { org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_9 repository = METHOD_3 ( ) ; org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 IDENT_10 = repository . METHOD_1 ( org . pentaho . platform . web . http . api . resources . utils . IDENT_11 . METHOD_4 ( IDENT_6 ) ) ; java . lang . StringBuilder buf = new java . lang . StringBuilder ( IDENT_10 . getPath ( ) . length ( ) ) ; buf . append ( METHOD_5 ( IDENT_10 . getPath ( ) ) ) ; buf . append ( IDENT_2 . IDENT_12 ) ; buf . append ( IDENT_7 ) ; if ( ! ( IDENT_10 . METHOD_6 ( ) ) ) { java . lang . String extension = METHOD_7 ( IDENT_10 . getName ( ) ) ; if ( extension != null ) { buf . append ( extension ) ; } } if ( ( repository . METHOD_1 ( buf . toString ( ) ) ) != null ) { throw new java . lang . IllegalArgumentException ( org . pentaho . platform . IDENT_0 . messages . IDENT_13 . getInstance ( ) . getString ( STRING_4 ) ) ; } repository . METHOD_8 ( IDENT_10 . getId ( ) , buf . toString ( ) , STRING_5 ) ; org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 IDENT_14 = repository . METHOD_9 ( IDENT_10 . getId ( ) ) ; if ( IDENT_14 != null ) { if ( ! ( IDENT_14 . METHOD_6 ( ) ) ) { java . util . Map < java . lang . String , java . util . Properties > IDENT_15 = IDENT_14 . METHOD_10 ( ) ; if ( IDENT_15 == null ) { IDENT_15 = new java . util . HashMap < java . lang . String , java . util . Properties > ( ) ; java . util . Properties properties = new java . util . Properties ( ) ; properties . setProperty ( STRING_6 , IDENT_7 ) ; properties . setProperty ( STRING_7 , IDENT_7 ) ; IDENT_15 . put ( STRING_8 , properties ) ; } else { for ( Map . Entry < java . lang . String , java . util . Properties > entry : IDENT_15 . entrySet ( ) ) { java . util . Properties properties = entry . getValue ( ) ; if ( properties . containsKey ( STRING_6 ) ) { properties . setProperty ( STRING_6 , IDENT_7 ) ; } if ( properties . containsKey ( STRING_7 ) ) { properties . setProperty ( STRING_7 , IDENT_7 ) ; } } } org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 IDENT_16 = new org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 . Builder ( IDENT_14 ) . METHOD_11 ( METHOD_11 ) . name ( IDENT_7 ) . METHOD_12 ( IDENT_7 ) . build ( ) ; repository . METHOD_13 ( IDENT_16 , org . pentaho . platform . web . http . api . resources . utils . IDENT_17 . METHOD_14 ( IDENT_14 ) , STRING_9 ) ; } return true ; } else { return false ; } }
org . junit . Assert . assertFalse ( IDENT_8 )