input
stringlengths
35
67.8k
output
stringlengths
39
1.53k
METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; org . w3c . dom . Document doc = org . pentaho . platform . util . xml . w3c . IDENT_1 . METHOD_1 ( IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String ) { if ( str == null ) { throw new java . lang . IllegalArgumentException ( STRING_1 ) ; } try { javax . xml . IDENT_2 . IDENT_3 IDENT_4 = org . pentaho . platform . util . xml . IDENT_5 . METHOD_2 ( ) ; javax . xml . IDENT_2 . IDENT_6 db = IDENT_4 . METHOD_3 ( ) ; org . w3c . dom . Document doc = db . parse ( new org . xml . IDENT_7 . METHOD_4 ( new java . io . METHOD_5 ( str ) ) ) ; return doc ; } catch ( java . lang . Exception e ) { org . pentaho . platform . util . logging . IDENT_8 . error ( org . pentaho . platform . util . xml . w3c . IDENT_1 . class . getName ( ) , org . pentaho . platform . util . messages . IDENT_9 . getInstance ( ) . METHOD_6 ( STRING_2 , e . getMessage ( ) ) , e ) ; } return null ; }
org . junit . Assert . assertNull ( doc )
METHOD_0 ( ) { byte [ ] [ ] IDENT_0 = new byte [ 1 ] [ ] ; IDENT_0 [ 0 ] = org . apache . hadoop . hbase . IDENT_1 . IDENT_2 ; try { METHOD_1 ( tableName , IDENT_0 ) ; org . junit . Assert . fail ( STRING_0 ) ; } catch ( java . util . concurrent . IDENT_3 e ) { "<AssertPlaceHolder>" ; } } METHOD_2 ( ) { return IDENT_4 ; }
org . junit . Assert . assertTrue ( ( ( e . METHOD_2 ( ) ) instanceof java . lang . IllegalArgumentException ) )
METHOD_0 ( ) { java . lang . String path = STRING_0 ; byte [ ] IDENT_0 = org . apache . commons . io . IDENT_1 . toByteArray ( new java . io . METHOD_1 ( path ) ) ; java . lang . String IDENT_2 = new java . lang . String ( IDENT_0 ) ; org . w3c . dom . Document doc = org . pentaho . platform . util . xml . w3c . IDENT_3 . METHOD_2 ( IDENT_2 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String ) { if ( str == null ) { throw new java . lang . IllegalArgumentException ( STRING_1 ) ; } try { javax . xml . IDENT_4 . IDENT_5 IDENT_6 = org . pentaho . platform . util . xml . IDENT_7 . METHOD_3 ( ) ; javax . xml . IDENT_4 . IDENT_8 db = IDENT_6 . METHOD_4 ( ) ; org . w3c . dom . Document doc = db . parse ( new org . xml . IDENT_9 . METHOD_5 ( new java . io . METHOD_6 ( str ) ) ) ; return doc ; } catch ( java . lang . Exception e ) { org . pentaho . platform . util . logging . IDENT_10 . error ( org . pentaho . platform . util . xml . w3c . IDENT_3 . class . getName ( ) , org . pentaho . platform . util . messages . IDENT_11 . getInstance ( ) . METHOD_7 ( STRING_2 , e . getMessage ( ) ) , e ) ; } return null ; }
org . junit . Assert . assertNotNull ( doc )
METHOD_0 ( ) { java . lang . String xml = STRING_0 + ( STRING_1 + STRING_2 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String ) { if ( str == null ) { throw new java . lang . IllegalArgumentException ( STRING_3 ) ; } try { javax . xml . IDENT_0 . IDENT_1 IDENT_2 = org . pentaho . platform . util . xml . IDENT_3 . METHOD_2 ( ) ; javax . xml . IDENT_0 . IDENT_4 db = IDENT_2 . METHOD_3 ( ) ; org . w3c . dom . Document doc = db . parse ( new org . xml . IDENT_5 . METHOD_4 ( new java . io . METHOD_5 ( str ) ) ) ; return doc ; } catch ( java . lang . Exception e ) { org . pentaho . platform . util . logging . IDENT_6 . error ( org . pentaho . platform . util . xml . w3c . IDENT_7 . class . getName ( ) , org . pentaho . platform . util . messages . IDENT_8 . getInstance ( ) . METHOD_6 ( STRING_4 , e . getMessage ( ) ) , e ) ; } return null ; }
org . junit . Assert . assertNotNull ( org . pentaho . platform . util . xml . w3c . IDENT_7 . METHOD_1 ( xml ) )
METHOD_0 ( ) { org . apache . http . IDENT_0 IDENT_1 = mock ( org . apache . http . IDENT_0 . class ) ; org . apache . http . IDENT_2 IDENT_3 = mock ( org . apache . http . IDENT_2 . class ) ; org . apache . http . client . IDENT_4 IDENT_5 = mock ( org . apache . http . client . IDENT_4 . class ) ; org . apache . http . client . methods . IDENT_6 method = mock ( org . apache . http . client . methods . IDENT_6 . class ) ; when ( IDENT_1 . METHOD_1 ( ) ) . thenReturn ( IDENT_3 ) ; when ( IDENT_5 . execute ( any ( org . apache . http . client . methods . IDENT_7 . class ) ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_3 . getStatusCode ( ) ) . thenReturn ( INT_0 ) ; org . IDENT_8 . Document document = null ; document = org . pentaho . platform . util . client . IDENT_9 . METHOD_2 ( IDENT_5 , method ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( org . apache . http . client . IDENT_4 , org . apache . http . client . methods . IDENT_7 ) { try { org . apache . http . IDENT_0 IDENT_10 = client . execute ( IDENT_11 ) ; final int status = IDENT_10 . METHOD_1 ( ) . getStatusCode ( ) ; if ( status != ( org . apache . http . IDENT_12 . IDENT_13 ) ) { throw new org . pentaho . platform . util . client . METHOD_3 ( ( STRING_0 + status ) ) ; } java . io . InputStream in = IDENT_10 . METHOD_4 ( ) . METHOD_5 ( ) ; byte [ ] buffer = new byte [ INT_1 ] ; int n = in . read ( buffer ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; while ( n != ( - 1 ) ) { sb . append ( new java . lang . String ( buffer , 0 , n ) ) ; n = in . read ( buffer ) ; } java . lang . String result = sb . toString ( ) ; return org . IDENT_8 . IDENT_14 . METHOD_6 ( result ) ; } catch ( java . io . IOException e ) { throw new org . pentaho . platform . util . client . METHOD_3 ( e ) ; } catch ( org . IDENT_8 . IDENT_15 e ) { throw new org . pentaho . platform . util . client . METHOD_3 ( e ) ; } }
org . junit . Assert . assertNull ( document )
METHOD_0 ( ) { org . apache . http . IDENT_0 IDENT_1 = mock ( org . apache . http . IDENT_0 . class ) ; org . apache . http . IDENT_2 IDENT_3 = mock ( org . apache . http . IDENT_2 . class ) ; org . apache . http . IDENT_4 IDENT_5 = mock ( org . apache . http . IDENT_4 . class ) ; org . apache . http . client . IDENT_6 IDENT_7 = mock ( org . apache . http . client . IDENT_6 . class ) ; org . apache . http . client . methods . IDENT_8 method = mock ( org . apache . http . client . methods . IDENT_8 . class ) ; when ( IDENT_1 . METHOD_1 ( ) ) . thenReturn ( IDENT_5 ) ; when ( IDENT_7 . execute ( any ( org . apache . http . client . methods . IDENT_9 . class ) ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_5 . getStatusCode ( ) ) . thenReturn ( org . pentaho . platform . util . client . IDENT_10 . IDENT_11 ) ; org . IDENT_12 . Document document = null ; when ( IDENT_1 . METHOD_2 ( ) ) . thenReturn ( IDENT_3 ) ; when ( IDENT_3 . METHOD_3 ( ) ) . METHOD_4 ( new java . io . IOException ( ) ) ; document = org . pentaho . platform . util . client . IDENT_13 . METHOD_5 ( IDENT_7 , method ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( org . apache . http . client . IDENT_6 , org . apache . http . client . methods . IDENT_9 ) { try { org . apache . http . IDENT_0 IDENT_14 = client . execute ( IDENT_15 ) ; final int status = IDENT_14 . METHOD_1 ( ) . getStatusCode ( ) ; if ( status != ( org . apache . http . IDENT_16 . IDENT_17 ) ) { throw new org . pentaho . platform . util . client . METHOD_6 ( ( STRING_0 + status ) ) ; } java . io . InputStream in = IDENT_14 . METHOD_2 ( ) . METHOD_3 ( ) ; byte [ ] buffer = new byte [ INT_0 ] ; int n = in . read ( buffer ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; while ( n != ( - 1 ) ) { sb . append ( new java . lang . String ( buffer , 0 , n ) ) ; n = in . read ( buffer ) ; } java . lang . String result = sb . toString ( ) ; return org . IDENT_12 . IDENT_18 . METHOD_7 ( result ) ; } catch ( java . io . IOException e ) { throw new org . pentaho . platform . util . client . METHOD_6 ( e ) ; } catch ( org . IDENT_12 . IDENT_19 e ) { throw new org . pentaho . platform . util . client . METHOD_6 ( e ) ; } }
org . junit . Assert . assertNull ( document )
METHOD_0 ( ) { org . apache . http . IDENT_0 IDENT_1 = mock ( org . apache . http . IDENT_0 . class ) ; org . apache . http . IDENT_2 IDENT_3 = mock ( org . apache . http . IDENT_2 . class ) ; org . apache . http . IDENT_4 IDENT_5 = mock ( org . apache . http . IDENT_4 . class ) ; org . apache . http . client . IDENT_6 IDENT_7 = mock ( org . apache . http . client . IDENT_6 . class ) ; org . apache . http . client . methods . IDENT_8 method = mock ( org . apache . http . client . methods . IDENT_8 . class ) ; when ( IDENT_1 . METHOD_1 ( ) ) . thenReturn ( IDENT_5 ) ; when ( IDENT_7 . execute ( any ( org . apache . http . client . methods . IDENT_9 . class ) ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_5 . getStatusCode ( ) ) . thenReturn ( org . pentaho . platform . util . client . IDENT_10 . IDENT_11 ) ; java . io . InputStream IDENT_12 = new org . apache . commons . io . input . METHOD_2 ( new java . io . METHOD_3 ( org . pentaho . platform . util . client . IDENT_10 . IDENT_13 ) ) ; when ( IDENT_1 . METHOD_4 ( ) ) . thenReturn ( IDENT_3 ) ; when ( IDENT_3 . METHOD_5 ( ) ) . thenReturn ( IDENT_12 ) ; org . IDENT_14 . Document document = null ; document = org . pentaho . platform . util . client . IDENT_15 . METHOD_6 ( IDENT_7 , method ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( org . apache . http . client . IDENT_6 , org . apache . http . client . methods . IDENT_9 ) { try { org . apache . http . IDENT_0 IDENT_16 = client . execute ( IDENT_17 ) ; final int status = IDENT_16 . METHOD_1 ( ) . getStatusCode ( ) ; if ( status != ( org . apache . http . IDENT_18 . IDENT_19 ) ) { throw new org . pentaho . platform . util . client . METHOD_7 ( ( STRING_0 + status ) ) ; } java . io . InputStream in = IDENT_16 . METHOD_4 ( ) . METHOD_5 ( ) ; byte [ ] buffer = new byte [ INT_0 ] ; int n = in . read ( buffer ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; while ( n != ( - 1 ) ) { sb . append ( new java . lang . String ( buffer , 0 , n ) ) ; n = in . read ( buffer ) ; } java . lang . String result = sb . toString ( ) ; return org . IDENT_14 . IDENT_20 . METHOD_8 ( result ) ; } catch ( java . io . IOException e ) { throw new org . pentaho . platform . util . client . METHOD_7 ( e ) ; } catch ( org . IDENT_14 . IDENT_21 e ) { throw new org . pentaho . platform . util . client . METHOD_7 ( e ) ; } }
org . junit . Assert . assertNull ( document )
METHOD_0 ( ) { final java . lang . String IDENT_0 = ( ( ( STRING_0 + ( METHOD_1 ( ) ) ) + STRING_1 ) + ( IDENT_1 ) ) + STRING_2 ; org . pentaho . platform . plugin . services . IDENT_2 . IDENT_3 . METHOD_2 ( org . pentaho . platform . plugin . services . IDENT_2 . IDENT_4 . METHOD_3 ( IDENT_0 ) ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( ) { return org . pentaho . platform . plugin . services . IDENT_2 . IDENT_3 . exception ; }
org . junit . Assert . assertNull ( org . pentaho . platform . plugin . services . IDENT_2 . IDENT_3 . METHOD_4 ( ) )
METHOD_0 ( ) { org . pentaho . platform . web . http . api . resources . services . IDENT_0 IDENT_1 = mock ( org . pentaho . platform . web . http . api . resources . services . IDENT_0 . class ) ; METHOD_1 ( IDENT_1 , org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_3 ) ; when ( IDENT_1 . METHOD_2 ( org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_4 , IDENT_0 . IDENT_5 ) ) . METHOD_3 ( ) ; boolean IDENT_6 = IDENT_1 . METHOD_2 ( org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_4 , IDENT_0 . IDENT_5 ) ; verify ( IDENT_1 ) . METHOD_4 ( org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_4 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( java . lang . String ) { try { IDENT_1 . METHOD_4 ( params ) ; return METHOD_5 ( ) ; } catch ( java . lang . Throwable t ) { t . printStackTrace ( ) ; return METHOD_6 ( t ) ; } }
org . junit . Assert . assertEquals ( IDENT_6 , true )
METHOD_0 ( ) { org . pentaho . platform . web . http . api . resources . services . IDENT_0 IDENT_1 = mock ( org . pentaho . platform . web . http . api . resources . services . IDENT_0 . class ) ; METHOD_1 ( IDENT_1 , org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_3 ) ; METHOD_2 ( IDENT_1 ) ; final java . lang . String IDENT_4 = org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_5 ; when ( IDENT_1 . METHOD_3 ( org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_6 , org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_5 ) ) . METHOD_4 ( ) ; when ( IDENT_1 . METHOD_5 ( METHOD_6 ( java . lang . String . class ) ) ) . METHOD_4 ( ) ; boolean result = IDENT_1 . METHOD_7 ( IDENT_4 , IDENT_0 . IDENT_7 ) ; verify ( IDENT_1 ) . METHOD_8 ( org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_8 ) ; "<AssertPlaceHolder>" ; } METHOD_8 ( java . lang . String ) { try { IDENT_1 . METHOD_8 ( params ) ; return METHOD_9 ( ) ; } catch ( java . lang . Throwable t ) { t . printStackTrace ( ) ; return METHOD_10 ( t ) ; } }
org . junit . Assert . assertEquals ( result , true )
METHOD_0 ( ) { byte [ ] [ ] IDENT_0 = new byte [ 3 ] [ ] ; IDENT_0 [ 0 ] = org . apache . hadoop . hbase . util . IDENT_1 . METHOD_1 ( STRING_0 ) ; IDENT_0 [ 1 ] = org . apache . hadoop . hbase . IDENT_2 . IDENT_3 ; IDENT_0 [ 2 ] = org . apache . hadoop . hbase . util . IDENT_1 . METHOD_1 ( STRING_1 ) ; try { METHOD_2 ( tableName , IDENT_0 ) ; org . junit . Assert . fail ( STRING_2 ) ; } catch ( java . util . concurrent . IDENT_4 e ) { "<AssertPlaceHolder>" ; } } METHOD_3 ( ) { return IDENT_5 ; }
org . junit . Assert . assertTrue ( ( ( e . METHOD_3 ( ) ) instanceof java . lang . IllegalArgumentException ) )
METHOD_0 ( ) { org . pentaho . platform . web . http . api . resources . services . IDENT_0 IDENT_1 = mock ( org . pentaho . platform . web . http . api . resources . services . IDENT_0 . class ) ; METHOD_1 ( IDENT_1 , org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_3 ) ; final java . lang . String IDENT_4 = org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_5 ; when ( IDENT_1 . METHOD_2 ( IDENT_4 , IDENT_0 . IDENT_6 ) ) . METHOD_3 ( ) ; when ( IDENT_1 . METHOD_4 ( org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_7 , IDENT_4 ) ) . thenReturn ( "" ) ; boolean result = IDENT_1 . METHOD_2 ( IDENT_4 , IDENT_0 . IDENT_6 ) ; verify ( IDENT_1 ) . METHOD_5 ( org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_7 , IDENT_4 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( java . lang . String , java . lang . String ) { java . lang . String IDENT_8 = METHOD_6 ( IDENT_9 ) ; org . pentaho . platform . api . IDENT_10 . IDENT_11 . IDENT_12 . IDENT_13 IDENT_14 = METHOD_7 ( ) . METHOD_8 ( METHOD_6 ) ; if ( IDENT_14 == null ) { throw new java . io . METHOD_9 ( METHOD_6 ) ; } java . lang . String [ ] IDENT_15 = org . pentaho . platform . web . http . api . resources . utils . IDENT_16 . METHOD_10 ( params ) ; int i = 0 ; try { for ( ; i < ( IDENT_15 . length ) ; i ++ ) { METHOD_7 ( ) . METHOD_11 ( IDENT_15 [ i ] , IDENT_14 . getPath ( ) , null ) ; } } catch ( java . lang . IllegalArgumentException | org . pentaho . platform . api . IDENT_10 . IDENT_11 . IDENT_17 e ) { throw e ; } catch ( java . lang . Exception e ) { throw new java . lang . METHOD_12 ( ) ; } }
org . junit . Assert . assertEquals ( result , true )
METHOD_0 ( ) { org . pentaho . platform . web . http . api . resources . services . IDENT_0 IDENT_1 = mock ( org . pentaho . platform . web . http . api . resources . services . IDENT_0 . class ) ; METHOD_1 ( IDENT_1 ) ; when ( IDENT_1 . METHOD_2 ( org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_3 , org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_4 ) ) . METHOD_3 ( ) ; boolean result = IDENT_1 . METHOD_2 ( org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_3 , org . pentaho . platform . web . http . api . resources . services . IDENT_2 . IDENT_4 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , java . lang . String ) { if ( params == null ) { throw new java . lang . IllegalArgumentException ( STRING_0 ) ; } java . util . List < org . pentaho . platform . api . IDENT_5 . IDENT_6 . IDENT_7 . IDENT_8 > IDENT_9 = METHOD_4 ( IDENT_10 , null , false , true ) ; java . lang . String [ ] IDENT_11 = org . pentaho . platform . web . http . api . resources . utils . IDENT_12 . METHOD_5 ( params ) ; for ( org . pentaho . platform . api . IDENT_5 . IDENT_6 . IDENT_7 . IDENT_8 IDENT_13 : IDENT_9 ) { for ( java . lang . String IDENT_14 : IDENT_11 ) { org . pentaho . platform . api . IDENT_5 . IDENT_6 . IDENT_15 IDENT_16 = METHOD_6 ( ) . METHOD_7 ( IDENT_14 ) ; if ( IDENT_16 . getName ( ) . equals ( IDENT_13 . getName ( ) ) ) { return false ; } } } return true ; }
org . junit . Assert . assertEquals ( result , false )
METHOD_0 ( ) { java . lang . String IDENT_0 = ( ( ( ( IDENT_1 . IDENT_2 . METHOD_1 ( ) ) + STRING_0 ) + ( IDENT_1 . IDENT_3 . METHOD_1 ( ) ) ) + STRING_0 ) + ( IDENT_1 . IDENT_4 . METHOD_1 ( ) ) ; doReturn ( true ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_5 . IDENT_6 . repository ) . METHOD_2 ( anyString ( ) , any ( java . util . IDENT_7 . class ) ) ; java . util . List < org . pentaho . platform . web . http . api . resources . IDENT_8 > IDENT_9 = org . pentaho . platform . web . http . api . resources . services . IDENT_5 . IDENT_6 . METHOD_3 ( STRING_1 , IDENT_0 ) ; "<AssertPlaceHolder>" ; } size ( ) { return METHOD_4 ( ) . size ( ) ; }
org . junit . Assert . assertTrue ( ( ( IDENT_9 . size ( ) ) > 0 ) )
METHOD_0 ( ) { java . lang . StringBuffer IDENT_0 = new java . lang . StringBuffer ( ) ; IDENT_0 . append ( STRING_0 ) ; IDENT_0 . append ( STRING_1 ) ; IDENT_0 . append ( STRING_2 ) ; IDENT_0 . append ( STRING_3 ) ; IDENT_0 . append ( STRING_4 ) ; java . util . List < java . lang . IDENT_1 > IDENT_2 = new java . util . ArrayList < java . lang . IDENT_1 > ( ) ; IDENT_2 . add ( STRING_0 ) ; IDENT_2 . add ( STRING_1 ) ; IDENT_2 . add ( STRING_2 ) ; IDENT_2 . add ( STRING_3 ) ; IDENT_2 . add ( STRING_4 ) ; doReturn ( IDENT_2 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_3 . IDENT_4 . IDENT_5 ) . METHOD_1 ( ) ; java . lang . StringBuffer buffer = org . pentaho . platform . web . http . api . resources . services . IDENT_3 . IDENT_4 . METHOD_2 ( ) ; verify ( org . pentaho . platform . web . http . api . resources . services . IDENT_3 . IDENT_4 . IDENT_5 ) . METHOD_1 ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( STRING_5 + ( name ) ) + STRING_6 ) + ( IDENT_6 ) ) + "]" ; }
org . junit . Assert . assertEquals ( IDENT_0 . toString ( ) , buffer . toString ( ) )
METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . util . List < java . lang . IDENT_1 > IDENT_2 = new java . util . ArrayList < java . lang . IDENT_1 > ( ) ; IDENT_2 . add ( STRING_1 ) ; IDENT_2 . add ( STRING_2 ) ; IDENT_2 . add ( STRING_3 ) ; IDENT_2 . add ( STRING_4 ) ; IDENT_2 . add ( STRING_5 ) ; doReturn ( STRING_6 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_3 . IDENT_4 ) . METHOD_1 ( ( "" + ( IDENT_2 . get ( 2 ) ) ) ) ; doReturn ( STRING_7 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_3 . IDENT_4 ) . METHOD_1 ( ( "" + ( IDENT_2 . get ( 3 ) ) ) ) ; doReturn ( STRING_8 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_3 . IDENT_4 ) . METHOD_1 ( ( "" + ( IDENT_2 . get ( 4 ) ) ) ) ; doReturn ( IDENT_2 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_3 . IDENT_4 . IDENT_5 ) . METHOD_2 ( ) ; java . lang . StringBuffer buffer = org . pentaho . platform . web . http . api . resources . services . IDENT_3 . IDENT_4 . METHOD_3 ( ) ; "<AssertPlaceHolder>" ; verify ( org . pentaho . platform . web . http . api . resources . services . IDENT_3 . IDENT_4 , times ( 3 ) ) . METHOD_1 ( anyString ( ) ) ; } toString ( ) { return ( ( ( STRING_9 + ( name ) ) + STRING_10 ) + ( IDENT_6 ) ) + "]" ; }
org . junit . Assert . assertEquals ( buffer . toString ( ) , IDENT_0 . toString ( ) )
METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . lang . String user = STRING_1 ; java . lang . String IDENT_1 = STRING_2 ; org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 IDENT_6 = mock ( org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . class ) ; org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_7 IDENT_8 = mock ( org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_7 . class ) ; doReturn ( IDENT_1 ) . when ( IDENT_8 ) . getId ( ) ; org . pentaho . platform . web . http . api . resources . IDENT_9 IDENT_10 = mock ( org . pentaho . platform . web . http . api . resources . IDENT_9 . class ) ; java . util . List < org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_7 > IDENT_11 = new java . util . ArrayList < org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_7 > ( ) ; org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_7 IDENT_12 = mock ( org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_7 . class ) ; doReturn ( false ) . when ( IDENT_12 ) . METHOD_1 ( ) ; IDENT_11 . add ( IDENT_12 ) ; java . util . Map < java . lang . String , java . io . IDENT_13 > IDENT_14 = mock ( java . util . Map . class ) ; doReturn ( IDENT_0 ) . when ( IDENT_14 ) . get ( IDENT_15 . IDENT_16 ) ; when ( org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 . repository . METHOD_2 ( IDENT_12 . getId ( ) ) ) . thenReturn ( IDENT_14 ) ; doReturn ( IDENT_0 ) . when ( IDENT_6 ) . getId ( ) ; doReturn ( IDENT_1 ) . when ( IDENT_10 ) . METHOD_3 ( user ) ; doReturn ( IDENT_8 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 . repository ) . METHOD_4 ( IDENT_1 ) ; doReturn ( IDENT_10 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 ) . METHOD_5 ( ) ; doReturn ( IDENT_11 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 . repository ) . METHOD_6 ( IDENT_1 ) ; org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 IDENT_19 = mock ( org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . class ) ; doReturn ( IDENT_19 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 ) . METHOD_7 ( IDENT_12 , null , false ) ; try { doReturn ( IDENT_6 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 ) . METHOD_8 ( IDENT_0 ) ; java . util . List < org . pentaho . platform . api . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 > list = org . pentaho . platform . web . http . api . resources . services . IDENT_17 . IDENT_18 . METHOD_9 ( IDENT_0 , user ) ; "<AssertPlaceHolder>" ; } catch ( java . io . IDENT_20 e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . Throwable t ) { org . junit . Assert . fail ( ) ; } } size ( ) { return METHOD_10 ( ) . size ( ) ; }
org . junit . Assert . assertEquals ( list . size ( ) , 1 )
METHOD_0 ( ) { final org . apache . hadoop . hbase . IDENT_0 IDENT_1 = org . apache . hadoop . hbase . IDENT_0 . valueOf ( ( ( tableName . METHOD_1 ( ) ) + STRING_0 ) ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( byte [ ] ) { java . lang . StringBuilder path = new java . lang . StringBuilder ( ) ; path . append ( STRING_1 ) ; if ( ( IDENT_2 ) != null ) { path . append ( IDENT_2 ) ; path . append ( STRING_1 ) ; } path . append ( org . apache . hadoop . hbase . util . IDENT_3 . METHOD_3 ( tableName ) ) ; path . append ( STRING_1 ) ; path . append ( STRING_2 ) ; int code = 0 ; for ( int i = 0 ; i < ( IDENT_4 ) ; i ++ ) { org . apache . hadoop . hbase . rest . client . Response response = client . get ( path . toString ( ) , Constants . IDENT_5 ) ; code = response . getCode ( ) ; switch ( code ) { case 200 : return true ; case INT_0 : return false ; case INT_1 : try { java . lang . Thread . sleep ( IDENT_6 ) ; } catch ( java . lang . IDENT_7 e ) { throw ( ( java . io . IDENT_8 ) ( new java . io . METHOD_4 ( ) . METHOD_5 ( e ) ) ) ; } break ; default : throw new java . io . IOException ( ( ( ( STRING_3 + ( path . toString ( ) ) ) + STRING_4 ) + code ) ) ; } } throw new java . io . IOException ( ( ( STRING_3 + ( path . toString ( ) ) ) + STRING_5 ) ) ; }
org . junit . Assert . assertFalse ( admin . METHOD_2 ( IDENT_1 ) . get ( ) )
METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . lang . String IDENT_1 = STRING_0 ; java . lang . String IDENT_2 = STRING_1 ; org . pentaho . platform . api . IDENT_3 . IDENT_4 . IDENT_5 . IDENT_6 IDENT_7 = mock ( org . pentaho . platform . api . IDENT_3 . IDENT_4 . IDENT_5 . IDENT_6 . class ) ; org . pentaho . platform . api . IDENT_3 . IDENT_4 . IDENT_8 IDENT_9 = mock ( org . pentaho . platform . api . IDENT_3 . IDENT_4 . IDENT_8 . class ) ; doReturn ( IDENT_2 ) . when ( IDENT_9 ) . getId ( ) ; org . pentaho . platform . web . http . api . resources . IDENT_10 IDENT_11 = mock ( org . pentaho . platform . web . http . api . resources . IDENT_10 . class ) ; java . util . List < org . pentaho . platform . api . IDENT_3 . IDENT_4 . IDENT_8 > IDENT_12 = new java . util . ArrayList < org . pentaho . platform . api . IDENT_3 . IDENT_4 . IDENT_8 > ( ) ; org . pentaho . platform . api . IDENT_3 . IDENT_4 . IDENT_8 IDENT_13 = mock ( org . pentaho . platform . api . IDENT_3 . IDENT_4 . IDENT_8 . class ) ; doReturn ( false ) . when ( IDENT_13 ) . METHOD_1 ( ) ; IDENT_12 . add ( IDENT_13 ) ; java . util . Map < java . lang . String , java . io . IDENT_14 > IDENT_15 = mock ( java . util . Map . class ) ; doReturn ( IDENT_0 ) . when ( IDENT_15 ) . get ( IDENT_16 . IDENT_17 ) ; when ( org . pentaho . platform . web . http . api . resources . services . IDENT_18 . IDENT_19 . repository . METHOD_2 ( IDENT_13 . getId ( ) ) ) . thenReturn ( IDENT_15 ) ; doReturn ( IDENT_1 ) . when ( IDENT_7 ) . getId ( ) ; doReturn ( IDENT_2 ) . when ( IDENT_11 ) . METHOD_3 ( ) ; doReturn ( IDENT_9 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_18 . IDENT_19 . repository ) . METHOD_4 ( IDENT_2 ) ; doReturn ( IDENT_11 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_18 . IDENT_19 ) . METHOD_5 ( ) ; doReturn ( IDENT_12 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_18 . IDENT_19 . repository ) . METHOD_6 ( IDENT_2 ) ; org . pentaho . platform . api . IDENT_3 . IDENT_4 . IDENT_5 . IDENT_6 IDENT_20 = mock ( org . pentaho . platform . api . IDENT_3 . IDENT_4 . IDENT_5 . IDENT_6 . class ) ; doReturn ( IDENT_20 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_18 . IDENT_19 ) . METHOD_7 ( IDENT_13 , null , false ) ; try { doReturn ( IDENT_7 ) . when ( org . pentaho . platform . web . http . api . resources . services . IDENT_18 . IDENT_19 ) . METHOD_8 ( IDENT_1 ) ; java . util . List < org . pentaho . platform . api . IDENT_3 . IDENT_4 . IDENT_5 . IDENT_6 > list = org . pentaho . platform . web . http . api . resources . services . IDENT_18 . IDENT_19 . METHOD_9 ( IDENT_2 , IDENT_0 , IDENT_16 . IDENT_17 ) ; "<AssertPlaceHolder>" ; } catch ( java . io . IDENT_21 e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . Throwable t ) { org . junit . Assert . fail ( ) ; } } size ( ) { return METHOD_10 ( ) . size ( ) ; }
org . junit . Assert . assertEquals ( list . size ( ) , 1 )
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 ) . thenReturn ( null ) ; when ( org . pentaho . platform . web . http . api . resources . services . IDENT_4 . IDENT_5 . repository . METHOD_2 ( 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_3 ( IDENT_6 , IDENT_7 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . String , java . lang . String ) { org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_9 repository = METHOD_4 ( ) ; 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_5 ( IDENT_6 ) ) ; java . lang . StringBuilder buf = new java . lang . StringBuilder ( IDENT_10 . getPath ( ) . length ( ) ) ; buf . append ( METHOD_6 ( IDENT_10 . getPath ( ) ) ) ; buf . append ( IDENT_2 . IDENT_12 ) ; buf . append ( IDENT_7 ) ; if ( ! ( IDENT_10 . METHOD_7 ( ) ) ) { java . lang . String extension = METHOD_8 ( 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_9 ( IDENT_10 . getId ( ) , buf . toString ( ) , STRING_5 ) ; org . pentaho . platform . api . IDENT_0 . IDENT_1 . IDENT_2 IDENT_14 = repository . METHOD_2 ( IDENT_10 . getId ( ) ) ; if ( IDENT_14 != null ) { if ( ! ( IDENT_14 . METHOD_7 ( ) ) ) { 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 . assertTrue ( IDENT_8 )
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 ) . thenReturn ( null ) ; 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 )
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 )
METHOD_0 ( ) { org . pentaho . platform . web . http . api . resources . services . IDENT_0 fs = mock ( org . pentaho . platform . web . http . api . resources . services . IDENT_0 . class ) ; METHOD_1 ( ) . when ( fs ) . METHOD_2 ( anyString ( ) ) ; METHOD_1 ( ) . when ( fs ) . decode ( anyString ( ) ) ; doReturn ( STRING_0 ) . when ( fs ) . METHOD_3 ( anyString ( ) ) ; doReturn ( true ) . when ( fs ) . METHOD_4 ( STRING_0 ) ; java . lang . StringBuffer sb = new java . lang . StringBuffer ( STRING_1 ) ; doReturn ( sb ) . when ( fs ) . METHOD_5 ( ) ; METHOD_6 ( org . pentaho . platform . web . http . api . resources . utils . IDENT_1 . class ) ; when ( org . pentaho . platform . web . http . api . resources . utils . IDENT_1 . METHOD_7 ( anyString ( ) , any ( ) ) ) . thenReturn ( false ) ; try { fs . METHOD_2 ( STRING_0 ) ; org . junit . Assert . fail ( ) ; } catch ( org . pentaho . platform . web . http . api . resources . services . IDENT_0 e ) { "<AssertPlaceHolder>" ; } } METHOD_2 ( java . lang . String ) { if ( ( IDENT_2 . indexOf ( STRING_2 ) ) != ( - 1 ) ) { throw new org . pentaho . platform . web . http . api . resources . services . IDENT_0 . METHOD_8 ( ) ; } java . lang . String path = METHOD_3 ( IDENT_2 ) ; if ( ( path . indexOf ( STRING_3 ) ) != ( - 1 ) ) { throw new org . pentaho . platform . web . http . api . resources . services . IDENT_0 . METHOD_8 ( ) ; } if ( ! ( METHOD_9 ( path ) ) ) { throw new org . pentaho . platform . web . http . api . resources . services . IDENT_0 . METHOD_8 ( ) ; } return METHOD_4 ( path ) ; }
org . junit . Assert . assertNotNull ( e )
METHOD_0 ( ) { org . pentaho . platform . plugin . action . IDENT_0 . IDENT_1 component = new org . pentaho . platform . plugin . action . IDENT_0 . METHOD_1 ( ) ; component . METHOD_2 ( STRING_0 ) ; "<AssertPlaceHolder>" ; } execute ( ) { org . pentaho . IDENT_2 . client . commands . IDENT_3 . METHOD_3 ( org . pentaho . IDENT_2 . client . IDENT_4 . IDENT_5 . getInstance ( ) . METHOD_4 ( ) . METHOD_5 ( ) ) ; }
org . junit . Assert . assertFalse ( component . execute ( ) )
METHOD_0 ( ) { org . apache . hadoop . hbase . client . IDENT_0 IDENT_1 = org . apache . hadoop . hbase . client . IDENT_0 . METHOD_1 ( tableName ) ; org . apache . hadoop . hbase . client . IDENT_2 IDENT_3 = org . apache . hadoop . hbase . client . IDENT_4 . of ( org . apache . hadoop . hbase . client . IDENT_5 ) ; int IDENT_6 = IDENT_3 . METHOD_2 ( ) ; admin . METHOD_3 ( IDENT_1 . METHOD_4 ( IDENT_3 ) . build ( ) ) . join ( ) ; admin . METHOD_5 ( tableName ) . join ( ) ; METHOD_6 ( tableName , org . apache . hadoop . hbase . client . IDENT_5 ) ; int IDENT_7 = 2 * IDENT_6 ; IDENT_3 = org . apache . hadoop . hbase . client . IDENT_4 . METHOD_1 ( org . apache . hadoop . hbase . client . IDENT_5 ) . METHOD_7 ( IDENT_7 ) . build ( ) ; admin . METHOD_8 ( tableName , IDENT_3 ) . join ( ) ; org . apache . hadoop . hbase . client . IDENT_8 IDENT_9 = admin . METHOD_9 ( tableName ) . get ( ) ; org . apache . hadoop . hbase . client . IDENT_2 IDENT_10 = IDENT_9 . METHOD_10 ( org . apache . hadoop . hbase . client . IDENT_5 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { return IDENT_11 ; }
org . junit . Assert . assertTrue ( ( ( IDENT_10 . METHOD_2 ( ) ) == IDENT_7 ) )
METHOD_0 ( ) { java . sql . IDENT_0 connection = new org . pentaho . test . platform . plugin . IDENT_1 . METHOD_1 ( ) ; org . pentaho . platform . plugin . services . IDENT_2 . sql . IDENT_3 IDENT_4 = new org . pentaho . test . platform . plugin . IDENT_1 . METHOD_2 ( connection ) ; org . pentaho . test . platform . plugin . IDENT_1 . IDENT_5 component = new org . pentaho . test . platform . plugin . IDENT_1 . METHOD_3 ( IDENT_4 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( ) { return this . METHOD_4 ( STRING_0 , true ) ; }
org . junit . Assert . assertTrue ( component . METHOD_4 ( ) )
METHOD_0 ( ) { org . pentaho . platform . api . engine . IDENT_0 listener = ( ( org . pentaho . platform . api . engine . IDENT_0 ) ( IDENT_1 ) ) ; "<AssertPlaceHolder>" ; listener . METHOD_1 ( ) ; } METHOD_2 ( org . pentaho . platform . api . engine . IDENT_2 ) { org . pentaho . di . job . IDENT_3 IDENT_4 = null ; java . lang . String IDENT_5 = METHOD_3 ( ) ; try { IDENT_4 = new org . pentaho . di . job . METHOD_4 ( IDENT_5 , null ) ; } catch ( org . pentaho . di . core . exception . IDENT_6 IDENT_7 ) { org . pentaho . platform . util . logging . IDENT_8 . error ( ( STRING_0 + IDENT_5 ) , IDENT_7 . getMessage ( ) ) ; return false ; } return METHOD_5 ( IDENT_4 , IDENT_5 ) ; }
org . junit . Assert . assertTrue ( listener . METHOD_2 ( session ) )
METHOD_0 ( ) { final java . lang . String resource = STRING_0 ; when ( request . METHOD_1 ( org . pentaho . test . platform . web . IDENT_0 . IDENT_1 ) ) . thenReturn ( resource ) ; final javax . servlet . IDENT_2 IDENT_3 = mock ( javax . servlet . IDENT_2 . class ) ; final org . apache . commons . lang3 . mutable . IDENT_4 IDENT_5 = new org . apache . commons . lang3 . mutable . METHOD_2 ( 0 ) ; METHOD_3 ( new org . mockito . IDENT_6 . IDENT_7 < java . lang . IDENT_8 > ( ) { @ org . pentaho . test . platform . web . Override public org . pentaho . test . platform . web . IDENT_8 METHOD_4 ( org . mockito . IDENT_9 . IDENT_10 IDENT_9 ) throws java . lang . Throwable { IDENT_5 . add ( ( ( java . lang . Integer ) ( IDENT_9 . METHOD_5 ( ) [ 2 ] ) ) ) ; return null ; } } ) . when ( IDENT_3 ) . write ( any ( byte [ ] . class ) , METHOD_6 ( ) , METHOD_6 ( ) ) ; when ( response . METHOD_7 ( ) ) . thenReturn ( IDENT_3 ) ; servlet . service ( request , response ) ; verify ( response ) . METHOD_8 ( eq ( org . pentaho . test . platform . web . IDENT_0 . IDENT_11 ) ) ; final int expected = new java . lang . Long ( new java . io . File ( org . pentaho . platform . engine . core . IDENT_12 . IDENT_13 . METHOD_9 ( ) . METHOD_10 ( ( STRING_1 + resource ) ) ) . length ( ) ) . METHOD_11 ( ) ; "<AssertPlaceHolder>" ; verify ( response ) . METHOD_12 ( eq ( expected ) ) ; } METHOD_10 ( java . lang . String ) { return "" ; }
org . junit . Assert . assertEquals ( expected , IDENT_5 . METHOD_11 ( ) )
METHOD_0 ( ) { final java . util . Date IDENT_0 = new java . text . METHOD_1 ( STRING_0 ) . parse ( STRING_1 ) ; org . pentaho . platform . api . IDENT_1 . IDENT_2 . IDENT_3 IDENT_4 = new org . pentaho . platform . api . IDENT_1 . IDENT_2 . IDENT_3 . Builder ( org . pentaho . platform . admin . IDENT_5 . IDENT_6 , org . pentaho . platform . admin . IDENT_5 . IDENT_7 ) . METHOD_2 ( true ) . build ( ) ; org . pentaho . platform . api . IDENT_1 . IDENT_2 . IDENT_3 file = new org . pentaho . platform . api . IDENT_1 . IDENT_2 . IDENT_3 . Builder ( org . pentaho . platform . admin . IDENT_5 . IDENT_8 , org . pentaho . platform . admin . IDENT_5 . IDENT_7 ) . METHOD_2 ( false ) . METHOD_3 ( IDENT_0 ) . build ( ) ; org . pentaho . platform . api . IDENT_1 . IDENT_2 . IDENT_9 IDENT_10 = new org . pentaho . platform . api . IDENT_1 . IDENT_2 . METHOD_4 ( file , null ) ; org . pentaho . platform . api . IDENT_1 . IDENT_2 . METHOD_4 IDENT_11 = new org . pentaho . platform . api . IDENT_1 . IDENT_2 . METHOD_4 ( METHOD_2 , java . util . Collections . singletonList ( IDENT_10 ) ) ; when ( repo . METHOD_5 ( anyString ( ) , eq ( ( - 1 ) ) , anyString ( ) , eq ( true ) ) ) . thenReturn ( IDENT_11 ) ; java . util . Map < java . lang . String , java . io . IDENT_12 > values = new java . util . HashMap < java . lang . String , java . io . IDENT_12 > ( ) ; values . put ( IDENT_13 . IDENT_14 , STRING_2 ) ; when ( repo . METHOD_6 ( org . pentaho . platform . admin . IDENT_5 . IDENT_8 ) ) . thenReturn ( values ) ; IDENT_15 . execute ( ) ; verify ( repo ) . METHOD_7 ( eq ( org . pentaho . platform . admin . IDENT_5 . IDENT_8 ) , eq ( true ) , anyString ( ) ) ; "<AssertPlaceHolder>" ; } METHOD_8 ( ) { return IDENT_16 ; }
org . junit . Assert . assertEquals ( 0 , IDENT_15 . METHOD_8 ( ) )
METHOD_0 ( ) { org . pentaho . platform . admin . IDENT_0 IDENT_1 = METHOD_1 ( IDENT_2 ) ; doReturn ( null ) . when ( IDENT_1 ) . METHOD_2 ( ) ; boolean IDENT_3 = IDENT_1 . METHOD_3 ( session ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . pentaho . platform . api . engine . IDENT_4 ) { org . pentaho . di . job . IDENT_5 IDENT_6 = null ; java . lang . String IDENT_7 = METHOD_2 ( ) ; try { IDENT_6 = new org . pentaho . di . job . METHOD_4 ( IDENT_7 , null ) ; } catch ( org . pentaho . di . core . exception . IDENT_8 IDENT_9 ) { org . pentaho . platform . util . logging . IDENT_10 . error ( ( STRING_0 + IDENT_7 ) , IDENT_9 . getMessage ( ) ) ; return false ; } return METHOD_5 ( IDENT_6 , IDENT_7 ) ; }
org . junit . Assert . assertFalse ( METHOD_3 )
METHOD_0 ( ) { org . pentaho . di . job . IDENT_0 IDENT_1 = mock ( org . pentaho . di . job . IDENT_0 . class ) ; java . lang . String IDENT_2 = ( org . pentaho . test . platform . utils . IDENT_3 . IDENT_4 ) + STRING_0 ; when ( IDENT_1 . METHOD_1 ( ) ) . thenReturn ( IDENT_2 ) ; boolean IDENT_5 = IDENT_6 . METHOD_2 ( IDENT_1 , IDENT_2 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( org . pentaho . di . job . IDENT_0 , java . lang . String ) { if ( IDENT_1 != null ) { org . pentaho . di . job . IDENT_7 job = new org . pentaho . di . job . METHOD_3 ( null , IDENT_1 ) ; org . pentaho . di . core . Result result = new org . pentaho . di . core . Result ( ) ; try { job . execute ( 0 , result ) ; job . METHOD_4 ( ) ; } catch ( org . pentaho . di . core . exception . IDENT_8 IDENT_9 ) { org . pentaho . platform . util . logging . IDENT_10 . error ( ( STRING_1 + IDENT_11 ) , IDENT_9 . getMessage ( ) ) ; return false ; } } return true ; }
org . junit . Assert . assertFalse ( METHOD_2 )
METHOD_0 ( ) { org . pentaho . platform . config . IDENT_0 ex = new org . pentaho . platform . config . METHOD_1 ( ) ; "<AssertPlaceHolder>" ; } getMessage ( ) { return message ; }
org . junit . Assert . assertEquals ( null , ex . getMessage ( ) )
METHOD_0 ( ) { org . pentaho . platform . config . IDENT_0 ex = new org . pentaho . platform . config . METHOD_1 ( STRING_0 ) ; "<AssertPlaceHolder>" ; } getMessage ( ) { return message ; }
org . junit . Assert . assertEquals ( STRING_0 , ex . getMessage ( ) )
METHOD_0 ( ) { byte [ ] [ ] IDENT_0 = new byte [ ] [ ] { IDENT_1 , IDENT_2 , IDENT_3 } ; org . apache . hadoop . hbase . client . IDENT_4 builder = org . apache . hadoop . hbase . client . IDENT_4 . METHOD_1 ( tableName ) ; for ( byte [ ] IDENT_5 : IDENT_0 ) { builder . METHOD_2 ( org . apache . hadoop . hbase . client . IDENT_6 . of ( IDENT_5 ) ) ; } org . apache . hadoop . hbase . client . IDENT_7 IDENT_8 = builder . build ( ) ; admin . METHOD_3 ( IDENT_8 ) . join ( ) ; org . apache . hadoop . hbase . client . IDENT_4 . IDENT_9 IDENT_10 = ( ( org . apache . hadoop . hbase . client . IDENT_4 . IDENT_9 ) ( IDENT_8 ) ) ; org . apache . hadoop . hbase . client . IDENT_7 IDENT_11 = admin . METHOD_4 ( tableName ) . get ( ) ; "<AssertPlaceHolder>" ; } compareTo ( org . apache . hadoop . hbase . mapreduce . IDENT_12 ) { int IDENT_13 = METHOD_5 ( ) . compareTo ( split . METHOD_5 ( ) ) ; return IDENT_13 != 0 ? IDENT_13 : org . apache . hadoop . hbase . util . IDENT_14 . compareTo ( METHOD_6 ( ) , split . METHOD_6 ( ) ) ; }
org . junit . Assert . assertEquals ( 0 , IDENT_10 . compareTo ( ( ( org . apache . hadoop . hbase . client . IDENT_4 . IDENT_9 ) ( IDENT_11 ) ) ) )
METHOD_0 ( ) { doReturn ( ( ( org . pentaho . test . platform . utils . IDENT_0 . IDENT_1 ) + STRING_0 ) ) . when ( IDENT_2 ) . METHOD_1 ( ) ; doReturn ( STRING_1 ) . when ( IDENT_2 ) . METHOD_2 ( ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { boolean IDENT_3 = false ; boolean IDENT_4 = false ; java . io . File IDENT_5 = new java . io . File ( METHOD_1 ( ) ) ; if ( ( IDENT_5 != null ) && ( IDENT_5 . METHOD_4 ( ) ) ) { IDENT_3 = true ; } java . io . File IDENT_6 = new java . io . File ( METHOD_2 ( ) ) ; if ( ( IDENT_6 != null ) && ( IDENT_6 . METHOD_4 ( ) ) ) { IDENT_4 = true ; } return IDENT_3 && IDENT_4 ; }
org . junit . Assert . assertFalse ( IDENT_2 . METHOD_3 ( ) )
METHOD_0 ( ) { org . pentaho . platform . config . IDENT_0 IDENT_1 = mock ( org . pentaho . platform . config . IDENT_0 . class ) ; doReturn ( IDENT_1 ) . when ( IDENT_2 ) . METHOD_1 ( ) ; org . springframework . security . authentication . IDENT_3 . IDENT_4 IDENT_5 = mock ( org . springframework . security . authentication . IDENT_3 . IDENT_4 . class ) ; when ( IDENT_1 . METHOD_2 ( ) ) . thenReturn ( IDENT_5 ) ; org . springframework . security . authentication . IDENT_3 . IDENT_4 IDENT_6 = IDENT_2 . METHOD_2 ( ) ; verify ( IDENT_1 ) . METHOD_2 ( ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { try { java . lang . String IDENT_7 = document . METHOD_3 ( org . pentaho . platform . config . IDENT_0 . IDENT_8 ) . getText ( ) ; java . lang . Class IDENT_9 = java . lang . Class . METHOD_4 ( IDENT_7 ) ; return ( ( org . springframework . security . authentication . IDENT_3 . IDENT_4 ) ( IDENT_9 . newInstance ( ) ) ) ; } catch ( java . lang . IDENT_10 e ) { return null ; } catch ( java . lang . IDENT_11 e ) { return null ; } catch ( java . lang . IDENT_12 e ) { return null ; } }
org . junit . Assert . assertEquals ( IDENT_5 , IDENT_6 )
METHOD_0 ( ) { doReturn ( IDENT_0 ) . when ( IDENT_1 ) . METHOD_1 ( ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { java . lang . String IDENT_2 = METHOD_1 ( ) . METHOD_2 ( ) ; if ( ( IDENT_2 == null ) || ( ( IDENT_2 . trim ( ) . length ( ) ) == 0 ) ) { IDENT_2 = org . pentaho . platform . config . IDENT_3 . IDENT_4 ; } return IDENT_2 ; }
org . junit . Assert . assertEquals ( STRING_0 , IDENT_1 . METHOD_3 ( ) )
METHOD_0 ( ) { doReturn ( STRING_0 ) . when ( IDENT_0 ) . METHOD_1 ( ) ; java . lang . String IDENT_1 = IDENT_0 . METHOD_2 ( ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { java . lang . String IDENT_2 = METHOD_1 ( ) ; int start = IDENT_2 . METHOD_3 ( STRING_1 ) ; int IDENT_3 = IDENT_2 . indexOf ( "/" , start ) ; java . lang . String IDENT_4 = IDENT_2 . substring ( IDENT_3 , ( ( IDENT_2 . length ( ) ) - 1 ) ) ; if ( ! ( ( IDENT_4 != null ) && ( ( IDENT_4 . length ( ) ) > 0 ) ) ) { IDENT_4 = org . pentaho . platform . config . IDENT_5 . IDENT_6 ; } return IDENT_4 ; }
org . junit . Assert . assertEquals ( IDENT_5 . IDENT_6 , IDENT_1 )
METHOD_0 ( ) { doReturn ( IDENT_0 ) . when ( IDENT_1 ) . METHOD_1 ( ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( null ) ; when ( IDENT_1 . METHOD_3 ( ) ) . thenReturn ( STRING_0 ) ; java . lang . String IDENT_2 = IDENT_1 . METHOD_4 ( ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( ) { java . lang . String IDENT_2 = org . pentaho . platform . config . IDENT_3 . IDENT_4 ; java . lang . String IDENT_5 = METHOD_1 ( ) . METHOD_2 ( ) ; if ( IDENT_5 != null ) { return IDENT_5 ; } try { org . pentaho . platform . config . IDENT_6 IDENT_7 = new org . pentaho . platform . config . METHOD_5 ( new java . io . File ( ( ( METHOD_3 ( ) ) + ( org . pentaho . platform . config . IDENT_3 . IDENT_8 ) ) ) ) ; IDENT_2 = IDENT_7 . METHOD_2 ( ) ; if ( ! ( ( IDENT_2 != null ) && ( ( IDENT_2 . length ( ) ) > 0 ) ) ) { IDENT_2 = org . pentaho . platform . config . IDENT_3 . IDENT_4 ; } } catch ( java . lang . Exception e ) { } return IDENT_2 ; }
org . junit . Assert . assertEquals ( IDENT_3 . IDENT_4 , IDENT_2 )
METHOD_0 ( ) { doReturn ( IDENT_0 ) . when ( IDENT_1 ) . METHOD_1 ( ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( null ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { java . lang . Long IDENT_2 = METHOD_1 ( ) . METHOD_2 ( ) ; return IDENT_2 != null ? IDENT_2 . toString ( ) : org . pentaho . platform . config . IDENT_3 . IDENT_4 ; }
org . junit . Assert . assertEquals ( IDENT_3 . IDENT_4 , IDENT_1 . METHOD_3 ( ) )
METHOD_0 ( ) { doReturn ( IDENT_0 ) . when ( IDENT_1 ) . METHOD_1 ( ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( STRING_0 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_0 ) . METHOD_2 ( ) ; } METHOD_3 ( ) { return METHOD_1 ( ) . METHOD_2 ( ) ; }
org . junit . Assert . assertEquals ( STRING_0 , IDENT_1 . METHOD_3 ( ) )
METHOD_0 ( ) { try ( org . apache . hadoop . hbase . client . IDENT_0 IDENT_1 = org . apache . hadoop . hbase . client . IDENT_2 . IDENT_3 . METHOD_1 ( new org . apache . hadoop . hbase . client . METHOD_2 ( ) . METHOD_3 ( 1 ) ) ) { org . apache . hadoop . hbase . client . IDENT_2 . IDENT_4 . METHOD_4 ( INT_0 , 100 , new org . apache . hadoop . hbase . IDENT_5 . IDENT_6 < java . lang . Exception > ( ) { @ org . apache . hadoop . hbase . client . Override public boolean evaluate ( ) throws org . apache . hadoop . hbase . client . Exception { return ( ( org . apache . hadoop . hbase . client . IDENT_7 ) ( IDENT_1 ) ) . METHOD_5 ( ) ; } @ org . apache . hadoop . hbase . client . Override public java . lang . String METHOD_6 ( ) throws org . apache . hadoop . hbase . client . Exception { return STRING_0 ; } } ) ; "<AssertPlaceHolder>" ; } org . apache . hadoop . hbase . client . IDENT_2 . IDENT_4 . METHOD_4 ( INT_0 , 100 , new org . apache . hadoop . hbase . IDENT_5 . IDENT_6 < java . lang . Exception > ( ) { @ org . apache . hadoop . hbase . client . Override public boolean evaluate ( ) throws org . apache . hadoop . hbase . client . Exception { return ( METHOD_7 ( ) ) == 0 ; } @ org . apache . hadoop . hbase . client . Override public java . lang . String METHOD_6 ( ) throws org . apache . hadoop . hbase . client . Exception { return ( STRING_1 + ( METHOD_7 ( ) ) ) + STRING_2 ; } } ) ; } METHOD_7 ( ) { return org . apache . hadoop . hbase . client . IDENT_2 . IDENT_4 . METHOD_8 ( ) . METHOD_9 ( ) . stream ( ) . map ( ( t ) -> t . METHOD_10 ( ) ) . METHOD_11 ( ( rs ) -> rs . METHOD_12 ( ) . METHOD_7 ( ) ) . METHOD_13 ( ) ; }
org . junit . Assert . assertEquals ( 1 , METHOD_7 ( ) )
METHOD_0 ( ) { doReturn ( null ) . when ( IDENT_0 ) . METHOD_1 ( ) ; java . util . List < java . lang . String > IDENT_1 = IDENT_0 . METHOD_2 ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return METHOD_3 ( ) . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , IDENT_1 . size ( ) )
METHOD_0 ( ) { doReturn ( IDENT_0 ) . when ( IDENT_1 ) . METHOD_1 ( ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( "" ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { java . lang . String IDENT_2 = METHOD_1 ( ) . METHOD_2 ( ) ; if ( ( IDENT_2 == null ) || ( ( IDENT_2 . trim ( ) . length ( ) ) == 0 ) ) { IDENT_2 = org . pentaho . platform . config . IDENT_3 . IDENT_4 ; } return IDENT_2 ; }
org . junit . Assert . assertEquals ( IDENT_3 . IDENT_4 , IDENT_1 . METHOD_3 ( ) )
METHOD_0 ( ) { doReturn ( IDENT_0 ) . when ( IDENT_1 ) . METHOD_1 ( ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( null ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { java . lang . Integer IDENT_2 = METHOD_1 ( ) . METHOD_2 ( ) ; return IDENT_2 != null ? IDENT_2 . toString ( ) : org . pentaho . platform . config . IDENT_3 . IDENT_4 ; }
org . junit . Assert . assertEquals ( IDENT_3 . IDENT_4 , IDENT_1 . METHOD_3 ( ) )
METHOD_0 ( ) { doReturn ( IDENT_0 ) . when ( IDENT_1 ) . METHOD_1 ( ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { java . lang . String IDENT_2 = org . pentaho . platform . config . IDENT_3 . IDENT_4 ; java . lang . String IDENT_5 = METHOD_1 ( ) . METHOD_2 ( ) ; if ( ( IDENT_5 != null ) && ( ( IDENT_5 . length ( ) ) > 0 ) ) { IDENT_2 = IDENT_5 ; } return IDENT_2 ; }
org . junit . Assert . assertEquals ( STRING_0 , IDENT_1 . METHOD_3 ( ) )
METHOD_0 ( ) { doReturn ( IDENT_0 ) . when ( IDENT_1 ) . METHOD_1 ( ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( true ) ; "<AssertPlaceHolder>" ; verify ( IDENT_0 ) . METHOD_2 ( ) ; } METHOD_3 ( ) { return METHOD_1 ( ) . METHOD_2 ( ) ; }
org . junit . Assert . assertEquals ( true , IDENT_1 . METHOD_3 ( ) )
METHOD_0 ( ) { doReturn ( IDENT_0 ) . when ( IDENT_1 ) . METHOD_1 ( ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { return IDENT_2 ; }
org . junit . Assert . assertEquals ( STRING_0 , IDENT_1 . METHOD_2 ( ) )
METHOD_0 ( ) { doReturn ( IDENT_0 ) . when ( IDENT_1 ) . METHOD_1 ( ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { java . lang . String IDENT_2 = METHOD_1 ( ) . METHOD_2 ( ) ; if ( ( IDENT_2 == null ) || ( ( IDENT_2 . trim ( ) . length ( ) ) == 0 ) ) { IDENT_2 = ( METHOD_4 ( ) ) + STRING_1 ; } return IDENT_2 ; }
org . junit . Assert . assertEquals ( STRING_0 , IDENT_1 . METHOD_3 ( ) )
METHOD_0 ( ) { doReturn ( IDENT_0 ) . when ( IDENT_1 ) . METHOD_1 ( ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { java . lang . String IDENT_2 = METHOD_1 ( ) . METHOD_2 ( ) ; if ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_2 ) ) { IDENT_2 = org . pentaho . platform . config . IDENT_3 . IDENT_4 ; } return IDENT_2 ; }
org . junit . Assert . assertEquals ( STRING_0 , IDENT_1 . METHOD_3 ( ) )
METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . server . IDENT_2 server = org . IDENT_0 . IDENT_1 . server . IDENT_3 . METHOD_1 ( org . IDENT_0 . IDENT_1 . server . IDENT_4 . IDENT_5 ) ; org . IDENT_0 . IDENT_1 . IDENT_6 IDENT_7 = server . METHOD_2 ( STRING_0 , STRING_1 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , java . lang . String ) { return METHOD_2 ( IDENT_8 , name , IDENT_9 ) ; }
org . junit . Assert . assertNotNull ( IDENT_7 )
METHOD_0 ( ) { try ( org . apache . hadoop . hbase . client . IDENT_0 table = METHOD_1 ( ) ) { METHOD_2 ( table ) ; METHOD_3 ( table ) ; org . apache . hadoop . hbase . client . IDENT_1 IDENT_2 = METHOD_4 ( ) ; boolean res = table . METHOD_5 ( org . apache . hadoop . hbase . client . IDENT_3 . IDENT_4 , org . apache . hadoop . hbase . client . IDENT_3 . IDENT_5 ) . METHOD_6 ( org . apache . hadoop . hbase . util . IDENT_6 . METHOD_7 ( STRING_0 ) ) . METHOD_8 ( org . apache . hadoop . hbase . util . IDENT_6 . METHOD_7 ( "a" ) ) . METHOD_9 ( IDENT_2 ) ; "<AssertPlaceHolder>" ; METHOD_10 ( table ) ; try { IDENT_2 = METHOD_11 ( ) ; table . METHOD_5 ( org . apache . hadoop . hbase . client . IDENT_3 . IDENT_4 , org . apache . hadoop . hbase . client . IDENT_3 . IDENT_5 ) . METHOD_6 ( org . apache . hadoop . hbase . util . IDENT_6 . METHOD_7 ( STRING_0 ) ) . METHOD_8 ( org . apache . hadoop . hbase . util . IDENT_6 . METHOD_7 ( "a" ) ) . METHOD_9 ( IDENT_2 ) ; org . junit . Assert . fail ( STRING_1 ) ; } catch ( org . apache . hadoop . hbase . client . IDENT_7 e ) { try { throw e . METHOD_12 ( 0 ) ; } catch ( org . apache . hadoop . hbase . IDENT_8 . IDENT_9 IDENT_10 ) { } } } } METHOD_9 ( org . apache . hadoop . hbase . client . IDENT_1 ) { METHOD_13 ( ) ; return METHOD_14 ( row , IDENT_11 , METHOD_6 , op . name ( ) , value , IDENT_12 , IDENT_13 ) ; }
org . junit . Assert . assertTrue ( res )
METHOD_0 ( ) { doReturn ( IDENT_0 ) . when ( IDENT_1 ) . METHOD_1 ( ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( null ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { java . lang . String IDENT_2 = METHOD_1 ( ) . METHOD_2 ( ) ; if ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_2 ) ) { IDENT_2 = org . pentaho . platform . config . IDENT_3 . IDENT_4 ; } return IDENT_2 ; }
org . junit . Assert . assertEquals ( IDENT_3 . IDENT_4 , IDENT_1 . METHOD_3 ( ) )
METHOD_0 ( ) { doReturn ( IDENT_0 ) . when ( IDENT_1 ) . METHOD_1 ( ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { return getValue ( org . pentaho . platform . config . IDENT_2 . IDENT_3 ) ; }
org . junit . Assert . assertEquals ( STRING_0 , IDENT_1 . METHOD_2 ( ) )
METHOD_0 ( ) { org . pentaho . platform . config . IDENT_0 IDENT_1 = IDENT_2 . METHOD_1 ( ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( ) { if ( ( IDENT_1 ) == null ) { try { IDENT_1 = new org . pentaho . platform . config . METHOD_2 ( new java . io . File ( java . lang . IDENT_3 . METHOD_3 ( org . pentaho . platform . config . IDENT_4 . IDENT_5 ) . METHOD_4 ( ) ) ) ; } catch ( java . lang . Exception ex ) { org . pentaho . platform . config . IDENT_4 . logger . warn ( org . pentaho . platform . config . IDENT_6 . IDENT_7 . METHOD_5 ( STRING_0 , org . pentaho . platform . config . IDENT_4 . IDENT_5 ) ) ; IDENT_1 = new org . pentaho . platform . config . METHOD_2 ( ) ; } } return IDENT_1 ; }
org . junit . Assert . assertNotNull ( IDENT_1 )
METHOD_0 ( ) { org . pentaho . platform . config . IDENT_0 IDENT_1 = IDENT_2 . METHOD_1 ( ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( ) { if ( ( IDENT_1 ) == null ) { try { IDENT_1 = new org . pentaho . platform . config . METHOD_2 ( new java . io . File ( ( ( METHOD_3 ( ) ) + ( org . pentaho . platform . config . IDENT_3 . IDENT_4 ) ) ) ) ; } catch ( java . lang . Exception e ) { IDENT_1 = new org . pentaho . platform . config . METHOD_2 ( ) ; } } return IDENT_1 ; }
org . junit . Assert . assertNotNull ( IDENT_1 )
METHOD_0 ( ) { org . pentaho . platform . config . IDENT_0 IDENT_1 = IDENT_2 . METHOD_1 ( ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( ) { if ( ( org . pentaho . platform . config . IDENT_3 . IDENT_1 ) == null ) { try { org . pentaho . platform . config . IDENT_3 . IDENT_1 = new org . pentaho . platform . config . METHOD_2 ( new java . io . File ( ( ( METHOD_3 ( ) ) + ( org . pentaho . platform . config . IDENT_3 . IDENT_4 ) ) ) ) ; } catch ( java . lang . Exception e ) { org . pentaho . platform . config . IDENT_3 . logger . warn ( org . pentaho . platform . config . IDENT_5 . IDENT_6 . METHOD_4 ( STRING_0 , ( ( METHOD_3 ( ) ) + ( org . pentaho . platform . config . IDENT_3 . IDENT_4 ) ) ) ) ; org . pentaho . platform . config . IDENT_3 . IDENT_1 = new org . pentaho . platform . config . METHOD_2 ( ) ; } } return org . pentaho . platform . config . IDENT_3 . IDENT_1 ; }
org . junit . Assert . assertNotNull ( IDENT_1 )
METHOD_0 ( ) { org . pentaho . platform . config . IDENT_0 IDENT_1 = new org . pentaho . platform . config . METHOD_1 ( ) ; org . xml . IDENT_2 . IDENT_3 IDENT_4 = IDENT_1 . METHOD_2 ( STRING_0 , STRING_1 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , java . lang . String ) { int IDENT_5 = IDENT_6 . METHOD_3 ( STRING_2 ) ; java . lang . String IDENT_7 = IDENT_6 . substring ( ( IDENT_5 + 1 ) ) ; try { java . io . File f = new java . io . File ( ( ( ( org . pentaho . platform . config . IDENT_8 . getInstance ( ) . METHOD_4 ( ) ) + STRING_3 ) + IDENT_7 ) ) ; if ( ( f . exists ( ) ) && ( f . METHOD_5 ( ) ) ) { return new org . xml . IDENT_2 . METHOD_6 ( new java . io . METHOD_7 ( f ) ) ; } } catch ( java . io . IOException e ) { } return null ; }
org . junit . Assert . assertNull ( IDENT_4 )
METHOD_0 ( ) { java . util . Properties properties = new java . util . Properties ( ) ; org . pentaho . platform . config . IDENT_0 config = new org . pentaho . platform . config . METHOD_1 ( properties ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { return properties ; }
org . junit . Assert . assertEquals ( properties , config . METHOD_2 ( ) )
METHOD_0 ( ) { when ( IDENT_0 . getProperty ( STRING_0 ) ) . thenReturn ( STRING_1 ) ; IDENT_1 = new org . pentaho . platform . config . METHOD_1 ( IDENT_0 ) ; java . lang . String IDENT_2 = IDENT_1 . METHOD_2 ( STRING_0 , null ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , java . util . Properties ) { java . lang . String val = this . METHOD_3 ( IDENT_3 ) ; if ( val == null ) { val = super . METHOD_2 ( IDENT_3 , props ) ; } return val ; }
org . junit . Assert . assertEquals ( IDENT_2 , STRING_1 )
METHOD_0 ( ) { when ( IDENT_0 . getProperty ( STRING_0 ) ) . thenReturn ( null ) ; IDENT_1 = METHOD_1 ( new org . pentaho . platform . config . METHOD_2 ( IDENT_0 ) ) ; java . util . Properties properties = mock ( java . util . Properties . class ) ; when ( properties . getProperty ( STRING_0 ) ) . thenReturn ( STRING_1 ) ; java . lang . String IDENT_2 = IDENT_1 . METHOD_3 ( STRING_0 , properties ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . String , java . util . Properties ) { java . lang . String val = this . METHOD_4 ( IDENT_3 ) ; if ( val == null ) { val = super . METHOD_3 ( IDENT_3 , props ) ; } return val ; }
org . junit . Assert . assertEquals ( IDENT_2 , STRING_1 )
METHOD_0 ( ) { java . io . File file = mock ( java . io . File . class ) ; when ( file . exists ( ) ) . thenReturn ( true ) ; org . pentaho . platform . config . IDENT_0 config = new org . pentaho . platform . config . METHOD_1 ( STRING_0 , file ) ; "<AssertPlaceHolder>" ; } getId ( ) { return STRING_1 ; }
org . junit . Assert . assertEquals ( STRING_0 , config . getId ( ) )
METHOD_0 ( ) { java . util . Properties props = new java . util . Properties ( ) ; props . put ( STRING_0 , "1" ) ; org . pentaho . platform . config . IDENT_0 config = new org . pentaho . platform . config . METHOD_1 ( STRING_1 , props ) ; final java . io . File IDENT_1 = java . io . File . METHOD_2 ( STRING_2 , STRING_3 ) ; config . METHOD_3 ( IDENT_1 ) ; java . util . Properties IDENT_2 = new java . util . Properties ( ) ; props . put ( STRING_4 , "2" ) ; config . update ( IDENT_2 ) ; java . util . Collection < java . io . File > IDENT_3 = org . apache . commons . io . IDENT_4 . METHOD_4 ( IDENT_1 . METHOD_5 ( ) , new org . apache . commons . io . IDENT_5 . METHOD_6 ( ) { @ org . pentaho . platform . config . Override public boolean accept ( java . io . File file ) { return file . getName ( ) . startsWith ( IDENT_1 . getName ( ) ) ; } @ org . pentaho . platform . config . Override public boolean accept ( java . io . File file , java . lang . String s ) { return file . getName ( ) . startsWith ( IDENT_1 . getName ( ) ) ; } } , null ) ; "<AssertPlaceHolder>" ; for ( java . io . File file : IDENT_3 ) { file . METHOD_7 ( ) ; } } size ( ) { return METHOD_8 ( ) . size ( ) ; }
org . junit . Assert . assertEquals ( 2 , IDENT_3 . size ( ) )
METHOD_0 ( ) { java . lang . System . setProperty ( STRING_0 , f . METHOD_1 ( ) ) ; org . pentaho . platform . engine . core . IDENT_0 . IDENT_1 . METHOD_2 ( null ) ; java . lang . String IDENT_2 = org . pentaho . platform . config . IDENT_3 . METHOD_3 ( ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( ) { return parent ; }
org . junit . Assert . assertEquals ( f . METHOD_1 ( ) , IDENT_2 )
METHOD_0 ( ) { org . pentaho . platform . api . engine . IDENT_0 IDENT_1 = mock ( org . pentaho . platform . api . engine . IDENT_0 . class ) ; when ( IDENT_1 . METHOD_1 ( STRING_0 ) ) . thenReturn ( f . METHOD_2 ( ) ) ; org . pentaho . platform . engine . core . IDENT_2 . IDENT_3 . METHOD_3 ( IDENT_1 ) ; java . lang . String IDENT_4 = org . pentaho . platform . config . IDENT_5 . METHOD_1 ( ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { return parent ; }
org . junit . Assert . assertEquals ( f . METHOD_2 ( ) , IDENT_4 )
METHOD_0 ( ) { config = new org . pentaho . platform . config . METHOD_1 ( document ) ; org . IDENT_0 . Node node = mock ( org . IDENT_0 . Node . class ) ; when ( node . getText ( ) ) . thenReturn ( org . pentaho . platform . IDENT_1 . IDENT_2 . jackrabbit . security . IDENT_3 . class . getName ( ) ) ; when ( document . METHOD_2 ( anyString ( ) ) ) . thenReturn ( node ) ; org . springframework . security . authentication . IDENT_4 . IDENT_5 IDENT_6 = config . METHOD_3 ( ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { try { java . lang . String IDENT_7 = document . METHOD_2 ( org . pentaho . platform . config . METHOD_1 . IDENT_8 ) . getText ( ) ; java . lang . Class IDENT_9 = java . lang . Class . METHOD_4 ( IDENT_7 ) ; return ( ( org . springframework . security . authentication . IDENT_4 . IDENT_5 ) ( IDENT_9 . newInstance ( ) ) ) ; } catch ( java . lang . IDENT_10 e ) { return null ; } catch ( java . lang . IDENT_11 e ) { return null ; } catch ( java . lang . IDENT_12 e ) { return null ; } }
org . junit . Assert . assertTrue ( ( IDENT_6 instanceof org . pentaho . platform . IDENT_1 . IDENT_2 . jackrabbit . security . IDENT_3 ) )
METHOD_0 ( ) { config = new org . pentaho . platform . config . METHOD_1 ( document ) ; org . IDENT_0 . Node node = mock ( org . IDENT_0 . Node . class ) ; when ( node . getText ( ) ) . thenReturn ( STRING_0 ) ; when ( document . METHOD_2 ( anyString ( ) ) ) . thenReturn ( node ) ; org . springframework . security . authentication . IDENT_1 . IDENT_2 IDENT_3 = config . METHOD_3 ( ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { try { java . lang . String IDENT_4 = document . METHOD_2 ( org . pentaho . platform . config . METHOD_1 . IDENT_5 ) . getText ( ) ; java . lang . Class IDENT_6 = java . lang . Class . METHOD_4 ( IDENT_4 ) ; return ( ( org . springframework . security . authentication . IDENT_1 . IDENT_2 ) ( IDENT_6 . newInstance ( ) ) ) ; } catch ( java . lang . IDENT_7 e ) { return null ; } catch ( java . lang . IDENT_8 e ) { return null ; } catch ( java . lang . IDENT_9 e ) { return null ; } }
org . junit . Assert . assertNull ( IDENT_3 )
METHOD_0 ( ) { final org . apache . hadoop . hbase . IDENT_0 tableName = org . apache . hadoop . hbase . IDENT_0 . valueOf ( name . METHOD_1 ( ) ) ; final org . apache . hadoop . hbase . client . IDENT_1 admin = org . apache . hadoop . hbase . client . IDENT_2 . IDENT_3 . METHOD_2 ( ) ; final org . apache . hadoop . hbase . IDENT_4 IDENT_5 = new org . apache . hadoop . hbase . METHOD_3 ( tableName ) ; IDENT_5 . METHOD_4 ( new org . apache . hadoop . hbase . METHOD_5 ( org . apache . hadoop . hbase . client . IDENT_2 . IDENT_6 ) ) ; try { org . apache . hadoop . hbase . client . IDENT_2 . METHOD_6 ( org . apache . hadoop . hbase . client . IDENT_2 . IDENT_3 , IDENT_5 , IDENT_7 . IDENT_8 ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( ( STRING_0 + tableName ) ) ; } try ( org . apache . hadoop . hbase . client . IDENT_9 IDENT_10 = org . apache . hadoop . hbase . client . IDENT_2 . IDENT_3 . METHOD_7 ( ) . METHOD_8 ( IDENT_0 . IDENT_11 ) ) { try ( org . apache . hadoop . hbase . client . IDENT_12 IDENT_13 = IDENT_10 . METHOD_9 ( org . apache . hadoop . hbase . IDENT_14 . METHOD_10 ( org . apache . hadoop . hbase . client . IDENT_2 . IDENT_3 . METHOD_7 ( ) , tableName ) ) ) { for ( org . apache . hadoop . hbase . client . Result result : IDENT_13 ) { org . apache . hadoop . hbase . client . IDENT_15 d = new org . apache . hadoop . hbase . client . METHOD_11 ( result . METHOD_12 ( ) ) ; d . METHOD_13 ( IDENT_16 . IDENT_17 , IDENT_16 . IDENT_18 ) ; org . apache . hadoop . hbase . client . IDENT_2 . LOG . info ( ( STRING_1 + d ) ) ; IDENT_10 . delete ( d ) ; break ; } } admin . METHOD_14 ( tableName ) ; org . apache . hadoop . hbase . client . IDENT_2 . IDENT_3 . METHOD_15 ( tableName . getName ( ) ) ; try { org . apache . hadoop . hbase . client . IDENT_2 . METHOD_16 ( org . apache . hadoop . hbase . client . IDENT_2 . IDENT_3 , tableName ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( ( STRING_2 + tableName ) ) ; } int IDENT_19 = 0 ; try ( org . apache . hadoop . hbase . client . IDENT_12 IDENT_13 = IDENT_10 . METHOD_9 ( org . apache . hadoop . hbase . IDENT_14 . METHOD_10 ( org . apache . hadoop . hbase . client . IDENT_2 . IDENT_3 . METHOD_7 ( ) , tableName ) ) ) { for ( org . apache . hadoop . hbase . client . Result result : IDENT_13 ) { org . apache . hadoop . hbase . client . IDENT_2 . LOG . info ( ( STRING_3 + result ) ) ; IDENT_19 ++ ; } } "<AssertPlaceHolder>" ; } } METHOD_7 ( ) { throw new org . apache . commons . lang3 . METHOD_17 ( STRING_4 ) ; }
org . junit . Assert . assertEquals ( 0 , IDENT_19 )
METHOD_0 ( ) { config = new org . pentaho . platform . config . METHOD_1 ( document ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { return document ; }
org . junit . Assert . assertEquals ( document , config . METHOD_2 ( ) )
METHOD_0 ( ) { IDENT_0 = new org . pentaho . platform . config . METHOD_1 ( IDENT_1 ) ; java . lang . String property = IDENT_0 . getProperty ( STRING_0 ) ; "<AssertPlaceHolder>" ; } getProperty ( java . lang . String ) { return IDENT_2 . get ( name ) ; }
org . junit . Assert . assertNull ( property )
METHOD_0 ( ) { IDENT_0 = new org . pentaho . platform . config . METHOD_1 ( document ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { return org . pentaho . platform . plugin . services . IDENT_1 . IDENT_2 . METHOD_2 ( this ) ; }
org . junit . Assert . assertEquals ( document , IDENT_0 . METHOD_2 ( ) )
METHOD_0 ( ) { IDENT_0 = new org . pentaho . platform . config . METHOD_1 ( document ) ; org . IDENT_1 . Node node = mock ( org . IDENT_1 . Node . class ) ; when ( node . METHOD_2 ( STRING_0 ) ) . thenReturn ( null ) ; when ( document . METHOD_2 ( anyString ( ) ) ) . thenReturn ( node ) ; java . lang . String test = IDENT_0 . METHOD_3 ( "test" ) ; "<AssertPlaceHolder>" ; verify ( node ) . METHOD_2 ( STRING_0 ) ; } METHOD_3 ( java . lang . String ) { java . lang . String IDENT_2 = java . text . IDENT_3 . format ( org . pentaho . platform . config . METHOD_1 . IDENT_4 , name ) ; org . IDENT_1 . Node node = document . METHOD_2 ( IDENT_2 ) ; java . lang . String value = null ; if ( node != null ) { node = node . METHOD_2 ( STRING_0 ) ; } if ( node != null ) { value = node . getText ( ) ; } return value ; }
org . junit . Assert . assertNull ( test )
METHOD_0 ( ) { IDENT_0 = new org . pentaho . platform . config . METHOD_1 ( document ) ; when ( document . METHOD_2 ( anyString ( ) ) ) . thenReturn ( null ) ; java . lang . String test = IDENT_0 . METHOD_3 ( "test" ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . String ) { java . lang . String IDENT_1 = java . text . IDENT_2 . format ( org . pentaho . platform . config . METHOD_1 . IDENT_3 , name ) ; org . IDENT_4 . Node node = document . METHOD_2 ( IDENT_1 ) ; java . lang . String value = null ; if ( node != null ) { node = node . METHOD_2 ( STRING_0 ) ; } if ( node != null ) { value = node . getText ( ) ; } return value ; }
org . junit . Assert . assertNull ( test )
METHOD_0 ( ) { provider = new org . pentaho . platform . osgi . METHOD_1 ( ) ; provider . METHOD_2 ( org . pentaho . platform . engine . core . IDENT_0 . IDENT_1 . class ) ; java . lang . String IDENT_2 = provider . METHOD_3 ( ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { try { throw new java . lang . Exception ( STRING_0 ) ; } catch ( java . lang . Exception e ) { java . lang . IDENT_3 [ ] IDENT_4 = e . METHOD_4 ( ) ; boolean IDENT_5 = false ; for ( java . lang . IDENT_3 IDENT_6 : IDENT_4 ) { java . lang . String IDENT_7 = IDENT_6 . METHOD_5 ( ) ; if ( IDENT_5 && ( IDENT_8 . contains ( IDENT_7 ) ) ) { IDENT_5 = false ; } if ( IDENT_5 && ( ! ( IDENT_9 . contains ( IDENT_7 ) ) ) ) { IDENT_7 = IDENT_7 . substring ( ( ( IDENT_7 . METHOD_6 ( STRING_1 ) ) + 1 ) ) . toLowerCase ( ) ; if ( IDENT_7 . contains ( STRING_2 ) ) { IDENT_7 = IDENT_7 . substring ( 0 , IDENT_7 . indexOf ( STRING_2 ) ) ; } return IDENT_7 ; } if ( IDENT_9 . contains ( IDENT_7 ) ) { IDENT_5 = true ; } } } return STRING_3 ; }
org . junit . Assert . assertEquals ( STRING_3 , IDENT_2 )
METHOD_0 ( ) { org . pentaho . platform . osgi . IDENT_0 IDENT_1 = METHOD_1 ( IDENT_2 ) ; doReturn ( IDENT_3 ) . when ( IDENT_1 ) . METHOD_2 ( anyString ( ) ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . pentaho . platform . api . engine . IDENT_4 ) { org . pentaho . di . job . IDENT_5 IDENT_6 = null ; java . lang . String IDENT_7 = METHOD_4 ( ) ; try { IDENT_6 = new org . pentaho . di . job . METHOD_5 ( IDENT_7 , null ) ; } catch ( org . pentaho . di . core . exception . IDENT_8 IDENT_9 ) { org . pentaho . platform . util . logging . IDENT_10 . error ( ( STRING_0 + IDENT_7 ) , IDENT_9 . getMessage ( ) ) ; return false ; } return METHOD_6 ( IDENT_6 , IDENT_7 ) ; }
org . junit . Assert . assertFalse ( IDENT_1 . METHOD_3 ( session ) )
METHOD_0 ( ) { org . springframework . security . core . context . IDENT_0 . METHOD_1 ( ) . METHOD_2 ( null ) ; javax . security . auth . IDENT_1 subject = new javax . security . auth . METHOD_3 ( ) ; org . pentaho . platform . osgi . IDENT_2 . IDENT_3 IDENT_4 = new org . pentaho . platform . osgi . IDENT_2 . METHOD_4 ( STRING_0 ) ; org . pentaho . platform . osgi . IDENT_5 IDENT_6 = new org . pentaho . platform . osgi . METHOD_5 ( ) ; org . springframework . security . authentication . IDENT_7 IDENT_8 = mock ( org . springframework . security . authentication . IDENT_7 . class ) ; org . pentaho . platform . api . engine . IDENT_9 IDENT_10 = mock ( org . pentaho . platform . api . engine . IDENT_9 . class ) ; org . pentaho . platform . api . engine . IDENT_11 IDENT_12 = mock ( org . pentaho . platform . api . engine . IDENT_11 . class ) ; org . springframework . security . core . IDENT_13 authentication = mock ( org . springframework . security . core . IDENT_13 . class ) ; java . util . Collection IDENT_14 = java . util . Arrays . asList ( new org . springframework . security . core . IDENT_15 [ ] { new org . springframework . security . core . IDENT_16 . METHOD_6 ( STRING_1 ) , new org . springframework . security . core . IDENT_16 . METHOD_6 ( STRING_2 ) } ) ; org . springframework . security . core . IDENT_13 IDENT_17 = mock ( org . springframework . security . core . IDENT_13 . class ) ; java . util . Collection IDENT_18 = java . util . Arrays . asList ( new org . springframework . security . core . IDENT_15 [ ] { new org . springframework . security . core . IDENT_16 . METHOD_6 ( STRING_1 ) , new org . springframework . security . core . IDENT_16 . METHOD_6 ( STRING_3 1 ) } ) ; org . pentaho . platform . engine . core . IDENT_19 . IDENT_20 . METHOD_7 ( IDENT_10 , org . pentaho . platform . api . engine . IDENT_9 . class ) ; when ( IDENT_12 . METHOD_8 ( IDENT_21 . IDENT_22 ) ) . thenReturn ( true ) . thenReturn ( true ) . thenReturn ( false ) ; when ( authentication . METHOD_9 ( ) ) . thenReturn ( IDENT_14 ) ; when ( authentication . getName ( ) ) . thenReturn ( STRING_0 ) ; when ( authentication . METHOD_10 ( ) ) . thenReturn ( true ) ; when ( IDENT_17 . METHOD_9 ( ) ) . thenReturn ( IDENT_18 ) ; when ( IDENT_17 . getName ( ) ) . thenReturn ( STRING_4 ) ; when ( IDENT_17 . METHOD_10 ( ) ) . thenReturn ( true ) ; when ( IDENT_8 . METHOD_11 ( METHOD_12 ( new org . pentaho . platform . osgi . IDENT_2 . METHOD_13 ( STRING_0 ) ) ) ) . thenReturn ( authentication ) ; when ( IDENT_8 . METHOD_11 ( METHOD_12 ( new org . pentaho . platform . osgi . IDENT_2 . METHOD_13 ( STRING_4 ) ) ) ) . thenReturn ( authentication ) ; when ( IDENT_8 . METHOD_11 ( METHOD_12 ( new org . pentaho . platform . osgi . IDENT_2 . METHOD_13 ( STRING_5 ) ) ) ) . METHOD_14 ( new org . springframework . security . core . IDENT_23 . METHOD_15 ( STRING_6 ) ) ; when ( IDENT_10 . METHOD_16 ( null , STRING_0 ) ) . thenReturn ( java . util . Arrays . < java . lang . String > asList ( STRING_1 , STRING_2 ) ) ; when ( IDENT_10 . METHOD_16 ( null , STRING_4 ) ) . thenReturn ( java . util . Arrays . < java . lang . String > asList ( STRING_1 , STRING_3 1 ) ) ; IDENT_6 . METHOD_17 ( IDENT_8 ) ; IDENT_6 . METHOD_18 ( IDENT_12 ) ; IDENT_6 . METHOD_19 ( subject , IDENT_4 , java . util . Collections . METHOD_20 ( ) , java . util . Collections . METHOD_20 ( ) ) ; IDENT_6 . METHOD_21 ( ) ; IDENT_6 . commit ( ) ; verify ( IDENT_8 ) . METHOD_11 ( METHOD_12 ( new org . pentaho . platform . osgi . IDENT_2 . METHOD_13 ( STRING_0 ) ) ) ; "<AssertPlaceHolder>" ; subject . METHOD_22 ( ) . toArray ( ) [ 3 ] . equals ( STRING_7 ) ; IDENT_4 = new org . pentaho . platform . osgi . IDENT_2 . METHOD_4 ( STRING_8 ) ; IDENT_6 . METHOD_19 ( subject , IDENT_4 , java . util . Collections . METHOD_20 ( ) , java . util . Collections . METHOD_20 ( ) ) ; try { IDENT_6 . METHOD_21 ( ) ; org . junit . Assert . fail ( STRING_3 0 ) ; } catch ( javax . security . auth . METHOD_21 . IDENT_24 IDENT_25 ) { } } size ( ) { if ( ( IDENT_26 ) == null ) { return 0 ; } else { return IDENT_26 . size ( ) ; } }
org . junit . Assert . assertEquals ( 4 , subject . METHOD_22 ( ) . size ( ) )
METHOD_0 ( ) { java . util . Map < java . lang . String , java . io . IDENT_0 > IDENT_1 = new java . util . HashMap ( ) ; IDENT_1 . put ( IDENT_2 . IDENT_3 , STRING_0 ) ; IDENT_1 . put ( IDENT_2 . IDENT_4 , STRING_1 ) ; org . pentaho . platform . api . action . IDENT_5 IDENT_6 = org . pentaho . platform . util . IDENT_2 . METHOD_1 ( org . pentaho . platform . plugin . action . IDENT_7 . IDENT_8 . class . getName ( ) , null ) ; org . pentaho . platform . action . IDENT_9 IDENT_10 = ( ( org . pentaho . platform . action . IDENT_9 ) ( IDENT_11 . METHOD_2 ( IDENT_6 , STRING_2 , IDENT_1 ) ) ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { return this . METHOD_3 ; }
org . junit . Assert . assertFalse ( IDENT_10 . METHOD_3 ( ) )
METHOD_0 ( ) { java . util . Map < java . lang . String , java . io . IDENT_0 > IDENT_1 = new java . util . HashMap ( ) ; IDENT_1 . put ( IDENT_2 . IDENT_3 , null ) ; org . pentaho . platform . api . IDENT_4 . IDENT_5 IDENT_6 = IDENT_7 . METHOD_1 ( IDENT_1 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . util . Map ) { if ( params == null ) { org . pentaho . platform . plugin . action . IDENT_8 . logger . warn ( org . pentaho . platform . plugin . action . messages . IDENT_9 . getInstance ( ) . METHOD_2 ( ) ) ; return null ; } org . pentaho . platform . api . IDENT_4 . IDENT_5 IDENT_10 = null ; final java . lang . Object IDENT_11 = params . get ( IDENT_2 . IDENT_3 ) ; if ( ( IDENT_11 != null ) && ( org . pentaho . platform . api . IDENT_4 . IDENT_5 . class . METHOD_3 ( IDENT_11 . getClass ( ) ) ) ) { IDENT_10 = ( ( org . pentaho . platform . api . IDENT_4 . IDENT_5 ) ( IDENT_11 ) ) ; if ( IDENT_10 instanceof org . pentaho . platform . web . http . api . resources . IDENT_12 ) { params . put ( IDENT_2 . IDENT_13 , ( ( org . pentaho . platform . web . http . api . resources . IDENT_12 ) ( IDENT_10 ) ) . METHOD_4 ( ) ) ; params . put ( IDENT_2 . IDENT_14 , ( ( org . pentaho . platform . web . http . api . resources . IDENT_12 ) ( IDENT_10 ) ) . METHOD_5 ( ) ) ; params . put ( IDENT_2 . IDENT_15 , ( ( org . pentaho . platform . web . http . api . resources . IDENT_12 ) ( IDENT_10 ) ) . METHOD_6 ( ) ) ; } } else { final java . lang . String IDENT_16 = ( ( params . get ( IDENT_2 . IDENT_13 ) ) == null ) ? null : params . get ( IDENT_2 . IDENT_13 ) . toString ( ) ; final java . lang . String IDENT_17 = ( ( params . get ( IDENT_2 . IDENT_14 ) ) == null ) ? null : params . get ( IDENT_2 . IDENT_14 ) . toString ( ) ; boolean IDENT_18 = ! ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_16 ) ) ; boolean IDENT_19 = ! ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_17 ) ) ; if ( IDENT_18 && IDENT_19 ) { boolean METHOD_6 = ( ( params . get ( IDENT_2 . IDENT_15 ) ) == null ) || ( params . get ( IDENT_2 . IDENT_15 ) . toString ( ) . equalsIgnoreCase ( STRING_0 ) ) ; IDENT_10 = new org . pentaho . platform . web . http . api . resources . METHOD_7 ( IDENT_16 , IDENT_17 , METHOD_6 ) ; params . put ( IDENT_2 . IDENT_3 , IDENT_10 ) ; } else { if ( org . pentaho . platform . plugin . action . IDENT_8 . logger . METHOD_8 ( ) ) { org . pentaho . platform . plugin . action . IDENT_8 . logger . warn ( org . pentaho . platform . plugin . action . messages . IDENT_9 . getInstance ( ) . METHOD_9 ( java . lang . String . format ( STRING_1 , IDENT_2 . IDENT_13 , IDENT_2 . IDENT_14 ) , params ) ) ; } } } return IDENT_10 ; }
org . junit . Assert . assertNull ( IDENT_6 )
METHOD_0 ( ) { java . util . Map < java . lang . String , java . io . IDENT_0 > IDENT_1 = new java . util . HashMap ( ) ; java . io . File IDENT_2 = new java . io . File ( STRING_0 ) ; java . io . IDENT_3 output = new java . io . METHOD_1 ( new java . io . METHOD_2 ( IDENT_2 ) ) ; output . write ( STRING_1 ) ; IDENT_1 . put ( IDENT_4 . IDENT_5 , null ) ; IDENT_1 . put ( IDENT_4 . IDENT_6 , IDENT_2 ) ; org . pentaho . platform . api . IDENT_7 . IDENT_8 IDENT_9 = IDENT_10 . METHOD_3 ( IDENT_1 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . util . Map ) { if ( params == null ) { org . pentaho . platform . plugin . action . IDENT_11 . logger . warn ( org . pentaho . platform . plugin . action . messages . IDENT_12 . getInstance ( ) . METHOD_4 ( ) ) ; return null ; } org . pentaho . platform . api . IDENT_7 . IDENT_8 IDENT_13 = null ; final java . lang . Object IDENT_14 = params . get ( IDENT_4 . IDENT_5 ) ; if ( ( IDENT_14 != null ) && ( org . pentaho . platform . api . IDENT_7 . IDENT_8 . class . METHOD_5 ( IDENT_14 . getClass ( ) ) ) ) { IDENT_13 = ( ( org . pentaho . platform . api . IDENT_7 . IDENT_8 ) ( IDENT_14 ) ) ; if ( IDENT_13 instanceof org . pentaho . platform . web . http . api . resources . IDENT_15 ) { params . put ( IDENT_4 . IDENT_6 , ( ( org . pentaho . platform . web . http . api . resources . IDENT_15 ) ( IDENT_13 ) ) . METHOD_6 ( ) ) ; params . put ( IDENT_4 . IDENT_16 , ( ( org . pentaho . platform . web . http . api . resources . IDENT_15 ) ( IDENT_13 ) ) . METHOD_7 ( ) ) ; params . put ( IDENT_4 . IDENT_17 , ( ( org . pentaho . platform . web . http . api . resources . IDENT_15 ) ( IDENT_13 ) ) . METHOD_8 ( ) ) ; } } else { final java . lang . String IDENT_2 = ( ( params . get ( IDENT_4 . IDENT_6 ) ) == null ) ? null : params . get ( IDENT_4 . IDENT_6 ) . toString ( ) ; final java . lang . String IDENT_18 = ( ( params . get ( IDENT_4 . IDENT_16 ) ) == null ) ? null : params . get ( IDENT_4 . IDENT_16 ) . toString ( ) ; boolean IDENT_19 = ! ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_2 ) ) ; boolean IDENT_20 = ! ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_18 ) ) ; if ( IDENT_19 && IDENT_20 ) { boolean METHOD_8 = ( ( params . get ( IDENT_4 . IDENT_17 ) ) == null ) || ( params . get ( IDENT_4 . IDENT_17 ) . toString ( ) . equalsIgnoreCase ( STRING_2 ) ) ; IDENT_13 = new org . pentaho . platform . web . http . api . resources . METHOD_9 ( IDENT_2 , IDENT_18 , METHOD_8 ) ; params . put ( IDENT_4 . IDENT_5 , IDENT_13 ) ; } else { if ( org . pentaho . platform . plugin . action . IDENT_11 . logger . METHOD_10 ( ) ) { org . pentaho . platform . plugin . action . IDENT_11 . logger . warn ( org . pentaho . platform . plugin . action . messages . IDENT_12 . getInstance ( ) . METHOD_11 ( java . lang . String . format ( STRING_3 , IDENT_4 . IDENT_6 , IDENT_4 . IDENT_16 ) , params ) ) ; } } } return IDENT_13 ; }
org . junit . Assert . assertNull ( IDENT_9 )
METHOD_0 ( ) { java . util . Map < java . lang . String , java . io . IDENT_0 > IDENT_1 = new java . util . HashMap ( ) ; org . pentaho . platform . web . http . api . resources . IDENT_2 IDENT_3 = new org . pentaho . platform . web . http . api . resources . METHOD_1 ( ) ; java . io . File IDENT_4 = new java . io . File ( STRING_0 ) ; java . io . IDENT_5 output = new java . io . METHOD_2 ( new java . io . METHOD_3 ( IDENT_4 ) ) ; output . write ( STRING_1 ) ; IDENT_1 . put ( IDENT_6 . IDENT_7 , IDENT_3 ) ; IDENT_1 . put ( IDENT_6 . IDENT_8 , IDENT_4 ) ; IDENT_1 . put ( IDENT_6 . IDENT_9 , IDENT_4 ) ; IDENT_1 . put ( IDENT_6 . IDENT_10 , true ) ; org . pentaho . platform . api . IDENT_11 . IDENT_12 IDENT_13 = IDENT_14 . METHOD_4 ( IDENT_1 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( java . util . Map ) { if ( params == null ) { org . pentaho . platform . plugin . action . IDENT_15 . logger . warn ( org . pentaho . platform . plugin . action . messages . IDENT_16 . getInstance ( ) . METHOD_5 ( ) ) ; return null ; } org . pentaho . platform . api . IDENT_11 . IDENT_12 IDENT_17 = null ; final java . lang . Object IDENT_18 = params . get ( IDENT_6 . IDENT_7 ) ; if ( ( IDENT_18 != null ) && ( org . pentaho . platform . api . IDENT_11 . IDENT_12 . class . METHOD_6 ( IDENT_18 . getClass ( ) ) ) ) { IDENT_17 = ( ( org . pentaho . platform . api . IDENT_11 . IDENT_12 ) ( IDENT_18 ) ) ; if ( IDENT_17 instanceof org . pentaho . platform . web . http . api . resources . METHOD_1 ) { params . put ( IDENT_6 . IDENT_8 , ( ( org . pentaho . platform . web . http . api . resources . METHOD_1 ) ( IDENT_17 ) ) . METHOD_7 ( ) ) ; params . put ( IDENT_6 . IDENT_9 , ( ( org . pentaho . platform . web . http . api . resources . METHOD_1 ) ( IDENT_17 ) ) . METHOD_8 ( ) ) ; params . put ( IDENT_6 . IDENT_10 , ( ( org . pentaho . platform . web . http . api . resources . METHOD_1 ) ( IDENT_17 ) ) . METHOD_9 ( ) ) ; } } else { final java . lang . String IDENT_4 = ( ( params . get ( IDENT_6 . IDENT_8 ) ) == null ) ? null : params . get ( IDENT_6 . IDENT_8 ) . toString ( ) ; final java . lang . String IDENT_19 = ( ( params . get ( IDENT_6 . IDENT_9 ) ) == null ) ? null : params . get ( IDENT_6 . IDENT_9 ) . toString ( ) ; boolean IDENT_20 = ! ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_4 ) ) ; boolean IDENT_21 = ! ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_19 ) ) ; if ( IDENT_20 && IDENT_21 ) { boolean METHOD_9 = ( ( params . get ( IDENT_6 . IDENT_10 ) ) == null ) || ( params . get ( IDENT_6 . IDENT_10 ) . toString ( ) . equalsIgnoreCase ( STRING_2 ) ) ; IDENT_17 = new org . pentaho . platform . web . http . api . resources . METHOD_1 ( IDENT_4 , IDENT_19 , METHOD_9 ) ; params . put ( IDENT_6 . IDENT_7 , IDENT_17 ) ; } else { if ( org . pentaho . platform . plugin . action . IDENT_15 . logger . METHOD_10 ( ) ) { org . pentaho . platform . plugin . action . IDENT_15 . logger . warn ( org . pentaho . platform . plugin . action . messages . IDENT_16 . getInstance ( ) . METHOD_11 ( java . lang . String . format ( STRING_3 , IDENT_6 . IDENT_8 , IDENT_6 . IDENT_9 ) , params ) ) ; } } } return IDENT_17 ; }
org . junit . Assert . assertEquals ( IDENT_13 , IDENT_3 )
METHOD_0 ( ) { java . util . Map < java . lang . String , java . io . IDENT_0 > IDENT_1 = new java . util . HashMap ( ) ; org . pentaho . platform . web . http . api . resources . IDENT_2 IDENT_3 = new org . pentaho . platform . web . http . api . resources . METHOD_1 ( ) ; IDENT_1 . put ( IDENT_4 . IDENT_5 , IDENT_3 ) ; org . pentaho . platform . api . IDENT_6 . IDENT_7 IDENT_8 = IDENT_9 . METHOD_2 ( IDENT_1 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . util . Map ) { if ( params == null ) { org . pentaho . platform . plugin . action . IDENT_10 . logger . warn ( org . pentaho . platform . plugin . action . messages . IDENT_11 . getInstance ( ) . METHOD_3 ( ) ) ; return null ; } org . pentaho . platform . api . IDENT_6 . IDENT_7 IDENT_12 = null ; final java . lang . Object IDENT_13 = params . get ( IDENT_4 . IDENT_5 ) ; if ( ( IDENT_13 != null ) && ( org . pentaho . platform . api . IDENT_6 . IDENT_7 . class . METHOD_4 ( IDENT_13 . getClass ( ) ) ) ) { IDENT_12 = ( ( org . pentaho . platform . api . IDENT_6 . IDENT_7 ) ( IDENT_13 ) ) ; if ( IDENT_12 instanceof org . pentaho . platform . web . http . api . resources . METHOD_1 ) { params . put ( IDENT_4 . IDENT_14 , ( ( org . pentaho . platform . web . http . api . resources . METHOD_1 ) ( IDENT_12 ) ) . METHOD_5 ( ) ) ; params . put ( IDENT_4 . IDENT_15 , ( ( org . pentaho . platform . web . http . api . resources . METHOD_1 ) ( IDENT_12 ) ) . METHOD_6 ( ) ) ; params . put ( IDENT_4 . IDENT_16 , ( ( org . pentaho . platform . web . http . api . resources . METHOD_1 ) ( IDENT_12 ) ) . METHOD_7 ( ) ) ; } } else { final java . lang . String IDENT_17 = ( ( params . get ( IDENT_4 . IDENT_14 ) ) == null ) ? null : params . get ( IDENT_4 . IDENT_14 ) . toString ( ) ; final java . lang . String IDENT_18 = ( ( params . get ( IDENT_4 . IDENT_15 ) ) == null ) ? null : params . get ( IDENT_4 . IDENT_15 ) . toString ( ) ; boolean IDENT_19 = ! ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_17 ) ) ; boolean IDENT_20 = ! ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_18 ) ) ; if ( IDENT_19 && IDENT_20 ) { boolean METHOD_7 = ( ( params . get ( IDENT_4 . IDENT_16 ) ) == null ) || ( params . get ( IDENT_4 . IDENT_16 ) . toString ( ) . equalsIgnoreCase ( STRING_0 ) ) ; IDENT_12 = new org . pentaho . platform . web . http . api . resources . METHOD_1 ( IDENT_17 , IDENT_18 , METHOD_7 ) ; params . put ( IDENT_4 . IDENT_5 , IDENT_12 ) ; } else { if ( org . pentaho . platform . plugin . action . IDENT_10 . logger . METHOD_8 ( ) ) { org . pentaho . platform . plugin . action . IDENT_10 . logger . warn ( org . pentaho . platform . plugin . action . messages . IDENT_11 . getInstance ( ) . METHOD_9 ( java . lang . String . format ( STRING_1 , IDENT_4 . IDENT_14 , IDENT_4 . IDENT_15 ) , params ) ) ; } } } return IDENT_12 ; }
org . junit . Assert . assertEquals ( IDENT_3 , IDENT_8 )
METHOD_0 ( ) { when ( IDENT_0 . getProperty ( STRING_0 ) ) . thenReturn ( STRING_1 ) ; when ( IDENT_1 . METHOD_1 ( STRING_2 ) ) . thenReturn ( ( ( org . pentaho . test . platform . utils . IDENT_2 . IDENT_3 ) + STRING_3 ) ) ; boolean IDENT_4 = IDENT_5 . METHOD_2 ( session ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( org . pentaho . platform . api . engine . IDENT_6 ) { org . pentaho . di . job . IDENT_7 IDENT_8 = null ; java . lang . String IDENT_9 = METHOD_3 ( ) ; try { IDENT_8 = new org . pentaho . di . job . METHOD_4 ( IDENT_9 , null ) ; } catch ( org . pentaho . di . core . exception . IDENT_10 IDENT_11 ) { org . pentaho . platform . util . logging . IDENT_12 . error ( ( STRING_4 + IDENT_9 ) , IDENT_11 . getMessage ( ) ) ; return false ; } return METHOD_5 ( IDENT_8 , IDENT_9 ) ; }
org . junit . Assert . assertTrue ( METHOD_2 )
METHOD_0 ( ) { java . lang . String pattern = ( org . pentaho . platform . plugin . action . IDENT_0 . helper . IDENT_1 . IDENT_2 ) + STRING_0 ; org . pentaho . platform . plugin . action . IDENT_0 . helper . IDENT_3 IDENT_4 = new org . pentaho . platform . plugin . action . IDENT_0 . helper . METHOD_1 ( pattern ) ; java . io . File IDENT_5 = new java . io . File ( ( ( org . pentaho . platform . plugin . action . IDENT_0 . helper . IDENT_1 . IDENT_2 ) + STRING_1 ) ) ; org . pentaho . IDENT_6 . IDENT_7 . repository . file . IDENT_8 IDENT_9 = new org . pentaho . IDENT_6 . IDENT_7 . repository . file . METHOD_2 ( IDENT_5 ) ; java . io . File IDENT_10 = new java . io . File ( ( ( org . pentaho . platform . plugin . action . IDENT_0 . helper . IDENT_1 . IDENT_2 ) + STRING_2 ) ) ; java . io . File IDENT_11 = new java . io . File ( ( ( org . pentaho . platform . plugin . action . IDENT_0 . helper . IDENT_1 . IDENT_2 ) + STRING_3 ) ) ; org . pentaho . IDENT_6 . IDENT_7 . repository . IDENT_12 IDENT_13 = new org . pentaho . IDENT_6 . IDENT_7 . repository . file . METHOD_3 ( IDENT_9 . METHOD_4 ( ) , IDENT_10 ) ; org . pentaho . IDENT_6 . IDENT_7 . repository . IDENT_12 IDENT_14 = new org . pentaho . IDENT_6 . IDENT_7 . repository . file . METHOD_3 ( IDENT_9 . METHOD_4 ( ) , IDENT_11 ) ; java . lang . String result = IDENT_4 . METHOD_5 ( IDENT_13 , IDENT_14 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( org . pentaho . IDENT_6 . IDENT_7 . repository . IDENT_12 , org . pentaho . IDENT_6 . IDENT_7 . repository . IDENT_12 ) { try { final java . util . ArrayList < java . lang . String > IDENT_15 = new java . util . ArrayList < java . lang . String > ( ) ; IDENT_15 . add ( IDENT_14 . getName ( ) ) ; org . pentaho . IDENT_6 . IDENT_7 . repository . IDENT_16 location = IDENT_14 . METHOD_6 ( ) ; while ( location != null ) { IDENT_15 . add ( location . getName ( ) ) ; location = location . METHOD_6 ( ) ; } final java . util . ArrayList < java . lang . String > IDENT_17 = new java . util . ArrayList < java . lang . String > ( ) ; location = IDENT_14 . METHOD_7 ( ) . METHOD_4 ( ) ; while ( location != null ) { IDENT_17 . add ( location . getName ( ) ) ; location = location . METHOD_6 ( ) ; } while ( ( ( IDENT_17 . isEmpty ( ) ) == false ) && ( ( IDENT_15 . isEmpty ( ) ) == false ) ) { final java . lang . String IDENT_18 = ( ( java . lang . String ) ( IDENT_15 . get ( ( ( IDENT_15 . size ( ) ) - 1 ) ) ) ) ; final java . lang . String IDENT_19 = ( ( java . lang . String ) ( IDENT_17 . get ( ( ( IDENT_17 . size ( ) ) - 1 ) ) ) ) ; if ( ( IDENT_19 . equals ( IDENT_18 ) ) == false ) { break ; } IDENT_15 . remove ( ( ( IDENT_15 . size ( ) ) - 1 ) ) ; IDENT_17 . remove ( ( ( IDENT_17 . size ( ) ) - 1 ) ) ; } final java . lang . StringBuffer b = new java . lang . StringBuffer ( ) ; for ( int i = ( IDENT_15 . size ( ) ) - 1 ; i >= 0 ; i OP_0 ) { final java . lang . String name = ( ( java . lang . String ) ( IDENT_15 . get ( i ) ) ) ; b . append ( name ) ; if ( i != 0 ) { b . append ( "/" ) ; } } if ( ( pattern ) == null ) { return b . toString ( ) ; } return java . text . IDENT_20 . format ( pattern , new java . lang . Object [ ] { b . toString ( ) } ) ; } catch ( org . pentaho . IDENT_6 . IDENT_7 . repository . IDENT_21 IDENT_22 ) { throw new org . pentaho . IDENT_6 . engine . IDENT_23 . core . IDENT_24 . output . table . html . METHOD_8 ( ) ; } }
org . junit . Assert . assertEquals ( pattern , result )
METHOD_0 ( ) { org . pentaho . di . repository . IDENT_0 repo = mock ( org . pentaho . di . repository . IDENT_0 . class ) ; org . pentaho . platform . plugin . action . IDENT_1 . IDENT_2 IDENT_3 = new org . pentaho . platform . plugin . action . IDENT_1 . METHOD_1 ( IDENT_4 , METHOD_2 ( ) , IDENT_5 ) ; IDENT_3 . METHOD_3 ( repo ) ; "<AssertPlaceHolder>" ; verify ( IDENT_6 , METHOD_4 ( ) ) . init ( any ( org . pentaho . di . repository . IDENT_7 . class ) ) ; verify ( IDENT_6 , METHOD_4 ( ) ) . connect ( anyString ( ) , anyString ( ) ) ; } METHOD_5 ( ) { return repository ; }
org . junit . Assert . assertEquals ( repo , IDENT_3 . METHOD_5 ( ) )
METHOD_0 ( ) { org . pentaho . di . repository . IDENT_0 repo = mock ( org . pentaho . di . repository . IDENT_0 . class ) ; org . pentaho . IDENT_1 . IDENT_2 . delegate . IDENT_3 IDENT_4 = mock ( org . pentaho . IDENT_1 . IDENT_2 . delegate . IDENT_3 . class ) ; org . pentaho . platform . plugin . action . IDENT_5 . IDENT_6 IDENT_7 = new org . pentaho . platform . plugin . action . IDENT_5 . METHOD_1 ( IDENT_8 , METHOD_2 ( ) , IDENT_9 ) ; IDENT_7 . METHOD_3 ( repo ) ; IDENT_7 . METHOD_4 ( IDENT_4 ) ; "<AssertPlaceHolder>" ; METHOD_5 ( IDENT_4 ) ; verify ( IDENT_10 , METHOD_6 ( ) ) . init ( any ( org . pentaho . di . repository . IDENT_11 . class ) ) ; verify ( IDENT_10 , METHOD_6 ( ) ) . connect ( anyString ( ) , anyString ( ) ) ; } METHOD_7 ( ) { return IDENT_12 ; }
org . junit . Assert . assertEquals ( IDENT_4 , IDENT_7 . METHOD_7 ( ) )
METHOD_0 ( ) { boolean action = IDENT_0 . METHOD_1 ( ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( ) { boolean result = true ; if ( ! ( ( METHOD_2 ( ) ) instanceof org . pentaho . IDENT_1 . dom . IDENT_2 . IDENT_3 ) ) { error ( org . pentaho . platform . plugin . action . messages . IDENT_4 . getInstance ( ) . METHOD_3 ( STRING_0 , METHOD_2 ( ) . METHOD_4 ( ) . METHOD_5 ( ) ) ) ; result = false ; } else { result = super . METHOD_1 ( ) ; } return result ; }
org . junit . Assert . assertTrue ( action )
METHOD_0 ( ) { IDENT_0 . METHOD_1 ( IDENT_1 ) ; when ( IDENT_1 . METHOD_2 ( ) ) . thenReturn ( IDENT_2 . IDENT_3 ) ; boolean action = IDENT_0 . METHOD_3 ( ) ; "<AssertPlaceHolder>" ; verify ( IDENT_0 ) . error ( anyString ( ) ) ; } METHOD_3 ( ) { boolean result = true ; if ( ! ( ( METHOD_4 ( ) ) instanceof org . pentaho . IDENT_4 . dom . IDENT_5 . IDENT_6 ) ) { error ( org . pentaho . platform . plugin . action . messages . IDENT_7 . getInstance ( ) . METHOD_5 ( STRING_0 , METHOD_4 ( ) . METHOD_6 ( ) . METHOD_7 ( ) ) ) ; result = false ; } else { result = super . METHOD_3 ( ) ; } return result ; }
org . junit . Assert . assertFalse ( action )
METHOD_0 ( ) { IDENT_0 . METHOD_1 ( IDENT_1 ) ; when ( IDENT_1 . METHOD_2 ( ) ) . thenReturn ( null ) ; when ( IDENT_1 . METHOD_3 ( ) ) . thenReturn ( null ) ; boolean action = IDENT_0 . METHOD_4 ( ) ; "<AssertPlaceHolder>" ; verify ( IDENT_0 ) . error ( anyString ( ) ) ; } METHOD_4 ( ) { boolean result = true ; if ( ! ( ( METHOD_5 ( ) ) instanceof org . pentaho . IDENT_2 . dom . IDENT_3 . IDENT_4 ) ) { error ( org . pentaho . platform . plugin . action . messages . IDENT_5 . getInstance ( ) . METHOD_6 ( STRING_0 , METHOD_5 ( ) . METHOD_7 ( ) . METHOD_8 ( ) ) ) ; result = false ; } else { result = super . METHOD_4 ( ) ; } return result ; }
org . junit . Assert . assertFalse ( action )
METHOD_0 ( ) { final org . apache . hadoop . hbase . IDENT_0 tableName = org . apache . hadoop . hbase . IDENT_0 . valueOf ( name . METHOD_1 ( ) ) ; byte [ ] [ ] IDENT_1 = new byte [ ] [ ] { org . apache . hadoop . hbase . util . IDENT_2 . METHOD_2 ( "foo" ) } ; org . apache . hadoop . conf . Configuration conf = org . apache . hadoop . hbase . client . IDENT_3 . IDENT_4 . METHOD_3 ( ) ; org . apache . hadoop . hbase . client . IDENT_5 table = org . apache . hadoop . hbase . client . IDENT_3 . IDENT_4 . METHOD_4 ( tableName , IDENT_1 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { return this . configuration ; }
org . junit . Assert . assertSame ( conf , table . METHOD_3 ( ) )
METHOD_0 ( ) { IDENT_0 . METHOD_1 ( IDENT_1 ) ; when ( IDENT_1 . METHOD_2 ( ) ) . thenReturn ( IDENT_2 ) ; when ( IDENT_1 . METHOD_3 ( ) ) . thenReturn ( null ) ; boolean action = IDENT_0 . METHOD_4 ( ) ; "<AssertPlaceHolder>" ; verify ( IDENT_0 , METHOD_5 ( ) ) . error ( anyString ( ) , any ( java . lang . Throwable . class ) ) ; } METHOD_4 ( ) { boolean result = true ; if ( ! ( ( METHOD_6 ( ) ) instanceof org . pentaho . IDENT_3 . dom . IDENT_4 . IDENT_5 ) ) { error ( org . pentaho . platform . plugin . action . messages . IDENT_6 . getInstance ( ) . METHOD_7 ( STRING_0 , METHOD_6 ( ) . METHOD_8 ( ) . METHOD_9 ( ) ) ) ; result = false ; } else { result = super . METHOD_4 ( ) ; } return result ; }
org . junit . Assert . assertTrue ( action )
METHOD_0 ( ) { IDENT_0 . METHOD_1 ( IDENT_1 ) ; boolean action = IDENT_0 . METHOD_2 ( ) ; "<AssertPlaceHolder>" ; verify ( IDENT_0 ) . error ( anyString ( ) ) ; } METHOD_2 ( ) { boolean result = true ; if ( ! ( ( METHOD_3 ( ) ) instanceof org . pentaho . IDENT_2 . dom . IDENT_3 . IDENT_4 ) ) { error ( org . pentaho . platform . plugin . action . messages . IDENT_5 . getInstance ( ) . METHOD_4 ( STRING_0 , METHOD_3 ( ) . METHOD_5 ( ) . METHOD_6 ( ) ) ) ; result = false ; } else { result = super . METHOD_2 ( ) ; } return result ; }
org . junit . Assert . assertFalse ( action )
METHOD_0 ( ) { IDENT_0 . METHOD_1 ( IDENT_1 ) ; doReturn ( conn ) . when ( IDENT_0 ) . METHOD_2 ( ) ; when ( IDENT_1 . METHOD_3 ( ) ) . thenReturn ( IDENT_2 . IDENT_3 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( ) { java . lang . String IDENT_4 = METHOD_5 ( org . pentaho . platform . plugin . action . IDENT_5 . IDENT_6 . IDENT_7 ) ; java . lang . Object IDENT_8 = METHOD_6 ( org . pentaho . platform . plugin . action . IDENT_5 . IDENT_6 . IDENT_9 ) ; if ( IDENT_8 != null ) { org . pentaho . platform . api . repository . IDENT_10 IDENT_11 = METHOD_7 ( org . pentaho . platform . plugin . action . IDENT_5 . IDENT_6 . IDENT_12 , IDENT_4 ) ; if ( IDENT_11 != null ) { IDENT_11 . METHOD_8 ( IDENT_4 ) ; java . io . IDENT_13 IDENT_14 = null ; if ( IDENT_8 instanceof java . lang . String ) { java . lang . String IDENT_15 = ( ( java . lang . String ) ( IDENT_8 ) ) ; if ( ( IDENT_15 . length ( ) ) > 0 ) { try { IDENT_14 = IDENT_11 . METHOD_9 ( METHOD_10 ( ) ) ; IDENT_14 . write ( IDENT_15 . getBytes ( org . pentaho . platform . util . messages . IDENT_16 . METHOD_11 ( ) ) ) ; IDENT_14 . METHOD_12 ( ) ; IDENT_14 . close ( ) ; IDENT_11 . METHOD_13 ( ) ; } catch ( java . lang . Exception e ) { error ( org . pentaho . platform . plugin . action . messages . IDENT_17 . getInstance ( ) . METHOD_14 ( STRING_0 ) , e ) ; return false ; } trace ( IDENT_15 ) ; return true ; } else { error ( org . pentaho . platform . plugin . action . messages . IDENT_17 . getInstance ( ) . METHOD_14 ( STRING_1 ) ) ; return false ; } } else if ( IDENT_8 instanceof java . io . InputStream ) { java . io . InputStream is = ( ( java . io . InputStream ) ( IDENT_8 ) ) ; byte [ ] IDENT_18 = new byte [ INT_0 ] ; int len ; IDENT_14 = IDENT_11 . METHOD_9 ( null ) ; while ( ( len = is . read ( IDENT_18 ) ) >= 0 ) { IDENT_14 . write ( IDENT_18 , 0 , len ) ; } IDENT_14 . METHOD_12 ( ) ; IDENT_14 . close ( ) ; IDENT_11 . METHOD_13 ( ) ; return true ; } else if ( IDENT_8 instanceof java . io . ByteArrayOutputStream ) { java . io . ByteArrayOutputStream IDENT_19 = ( ( java . io . ByteArrayOutputStream ) ( IDENT_8 ) ) ; IDENT_14 = IDENT_11 . METHOD_9 ( null ) ; IDENT_14 . write ( IDENT_19 . toByteArray ( ) ) ; IDENT_14 . METHOD_12 ( ) ; IDENT_14 . close ( ) ; IDENT_11 . METHOD_13 ( ) ; return true ; } else { error ( org . pentaho . platform . plugin . action . messages . IDENT_17 . getInstance ( ) . METHOD_14 ( STRING_2 , IDENT_8 . getClass ( ) . getName ( ) ) ) ; return false ; } } else { error ( org . pentaho . platform . plugin . action . messages . IDENT_17 . getInstance ( ) . METHOD_14 ( STRING_3 ) ) ; return false ; } } error ( org . pentaho . platform . plugin . action . messages . IDENT_17 . getInstance ( ) . METHOD_14 ( STRING_4 ) ) ; return false ; }
org . junit . Assert . assertFalse ( IDENT_0 . METHOD_4 ( ) )
METHOD_0 ( ) { IDENT_0 . METHOD_1 ( IDENT_1 ) ; doReturn ( conn ) . when ( IDENT_0 ) . METHOD_2 ( ) ; METHOD_3 ( ) . when ( IDENT_0 ) . METHOD_4 ( anyString ( ) , anyString ( ) ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( ) { java . lang . String IDENT_2 = METHOD_6 ( org . pentaho . platform . plugin . action . IDENT_3 . IDENT_4 . IDENT_5 ) ; java . lang . Object IDENT_6 = METHOD_7 ( org . pentaho . platform . plugin . action . IDENT_3 . IDENT_4 . IDENT_7 ) ; if ( IDENT_6 != null ) { org . pentaho . platform . api . repository . IDENT_8 IDENT_9 = METHOD_8 ( org . pentaho . platform . plugin . action . IDENT_3 . IDENT_4 . IDENT_10 , IDENT_2 ) ; if ( IDENT_9 != null ) { IDENT_9 . METHOD_9 ( IDENT_2 ) ; java . io . IDENT_11 IDENT_12 = null ; if ( IDENT_6 instanceof java . lang . String ) { java . lang . String IDENT_13 = ( ( java . lang . String ) ( IDENT_6 ) ) ; if ( ( IDENT_13 . length ( ) ) > 0 ) { try { IDENT_12 = IDENT_9 . METHOD_10 ( METHOD_11 ( ) ) ; IDENT_12 . write ( IDENT_13 . getBytes ( org . pentaho . platform . util . messages . IDENT_14 . METHOD_12 ( ) ) ) ; IDENT_12 . METHOD_13 ( ) ; IDENT_12 . close ( ) ; IDENT_9 . METHOD_14 ( ) ; } catch ( java . lang . Exception e ) { error ( org . pentaho . platform . plugin . action . messages . IDENT_15 . getInstance ( ) . METHOD_15 ( STRING_0 ) , e ) ; return false ; } trace ( IDENT_13 ) ; return true ; } else { error ( org . pentaho . platform . plugin . action . messages . IDENT_15 . getInstance ( ) . METHOD_15 ( STRING_1 ) ) ; return false ; } } else if ( IDENT_6 instanceof java . io . InputStream ) { java . io . InputStream is = ( ( java . io . InputStream ) ( IDENT_6 ) ) ; byte [ ] IDENT_16 = new byte [ INT_0 ] ; int len ; IDENT_12 = IDENT_9 . METHOD_10 ( null ) ; while ( ( len = is . read ( IDENT_16 ) ) >= 0 ) { IDENT_12 . write ( IDENT_16 , 0 , len ) ; } IDENT_12 . METHOD_13 ( ) ; IDENT_12 . close ( ) ; IDENT_9 . METHOD_14 ( ) ; return true ; } else if ( IDENT_6 instanceof java . io . ByteArrayOutputStream ) { java . io . ByteArrayOutputStream IDENT_17 = ( ( java . io . ByteArrayOutputStream ) ( IDENT_6 ) ) ; IDENT_12 = IDENT_9 . METHOD_10 ( null ) ; IDENT_12 . write ( IDENT_17 . toByteArray ( ) ) ; IDENT_12 . METHOD_13 ( ) ; IDENT_12 . close ( ) ; IDENT_9 . METHOD_14 ( ) ; return true ; } else { error ( org . pentaho . platform . plugin . action . messages . IDENT_15 . getInstance ( ) . METHOD_15 ( STRING_2 , IDENT_6 . getClass ( ) . getName ( ) ) ) ; return false ; } } else { error ( org . pentaho . platform . plugin . action . messages . IDENT_15 . getInstance ( ) . METHOD_15 ( STRING_3 ) ) ; return false ; } } error ( org . pentaho . platform . plugin . action . messages . IDENT_15 . getInstance ( ) . METHOD_15 ( STRING_4 ) ) ; return false ; }
org . junit . Assert . assertTrue ( IDENT_0 . METHOD_5 ( ) )
METHOD_0 ( ) { final org . pentaho . platform . plugin . action . IDENT_0 . IDENT_1 IDENT_2 = org . mockito . Mockito . mock ( org . pentaho . platform . plugin . action . IDENT_0 . IDENT_1 . class ) ; final org . pentaho . platform . api . engine . IDENT_3 IDENT_4 = org . mockito . Mockito . mock ( org . pentaho . platform . api . engine . IDENT_3 . class ) ; org . pentaho . platform . plugin . action . IDENT_0 . IDENT_5 listener = new org . pentaho . platform . plugin . action . IDENT_0 . METHOD_1 ( ) { @ org . pentaho . platform . plugin . action . IDENT_0 . Override org . pentaho . platform . plugin . action . IDENT_0 . IDENT_1 METHOD_2 ( org . pentaho . platform . api . engine . IDENT_3 session ) { "<AssertPlaceHolder>" ; return IDENT_2 ; } @ org . pentaho . platform . plugin . action . IDENT_0 . Override org . pentaho . platform . util . IDENT_6 METHOD_3 ( ) { return new org . pentaho . platform . util . METHOD_4 ( new org . pentaho . platform . util . METHOD_5 ( ) ) ; } } ; final org . pentaho . platform . api . engine . IDENT_3 IDENT_7 = org . pentaho . platform . engine . core . IDENT_8 . IDENT_9 . METHOD_6 ( ) ; org . pentaho . platform . engine . core . IDENT_8 . IDENT_9 . METHOD_7 ( IDENT_4 ) ; try { java . util . Properties IDENT_10 = METHOD_8 ( STRING_0 , STRING_1 , STRING_2 , STRING_3 , STRING_4 1 ) ; java . util . Properties IDENT_11 = METHOD_8 ( STRING_4 2 , STRING_5 , STRING_4 4 , STRING_6 , STRING_4 0 ) ; listener . METHOD_9 ( java . util . Arrays . asList ( IDENT_10 , IDENT_11 ) ) ; listener . METHOD_10 ( java . util . Arrays . asList ( STRING_7 , STRING_8 ) ) ; listener . METHOD_11 ( IDENT_4 ) ; org . mockito . Mockito . verify ( IDENT_2 ) . METHOD_12 ( STRING_0 , STRING_1 , STRING_4 , STRING_3 , STRING_4 3 , new java . util . Properties ( ) , true , IDENT_4 ) ; org . mockito . Mockito . verify ( IDENT_2 ) . METHOD_12 ( STRING_4 2 , STRING_5 , STRING_9 , STRING_6 , STRING_4 0 , new java . util . Properties ( ) , true , IDENT_4 ) ; org . mockito . Mockito . verify ( IDENT_2 ) . METHOD_13 ( STRING_7 , IDENT_4 ) ; org . mockito . Mockito . verify ( IDENT_2 ) . METHOD_13 ( STRING_8 , IDENT_4 ) ; } finally { org . pentaho . platform . engine . core . IDENT_8 . IDENT_9 . METHOD_7 ( IDENT_7 ) ; } } METHOD_2 ( org . pentaho . platform . api . engine . IDENT_3 ) { return org . pentaho . platform . engine . core . IDENT_8 . IDENT_12 . get ( org . pentaho . platform . plugin . action . IDENT_0 . IDENT_1 . class , session ) ; }
org . junit . Assert . assertSame ( IDENT_4 , session )
METHOD_0 ( ) { org . pentaho . platform . plugin . action . IDENT_0 . IDENT_1 IDENT_2 = METHOD_1 ( IDENT_3 ) ; doReturn ( IDENT_4 ) . when ( IDENT_2 ) . METHOD_2 ( STRING_0 ) ; when ( IDENT_4 . METHOD_3 ( ) ) . thenReturn ( false ) ; when ( IDENT_4 . METHOD_4 ( ) ) . thenReturn ( IDENT_5 ) ; doReturn ( STRING_1 0 ) . when ( IDENT_2 ) . METHOD_5 ( STRING_2 ) ; doReturn ( STRING_3 ) . when ( IDENT_2 ) . METHOD_5 ( STRING_4 ) ; doReturn ( STRING_5 ) . when ( IDENT_2 ) . METHOD_5 ( STRING_1 ) ; doReturn ( STRING_6 ) . when ( IDENT_2 ) . METHOD_5 ( STRING_7 ) ; doReturn ( null ) . when ( IDENT_2 ) . METHOD_5 ( STRING_8 ) ; doReturn ( IDENT_6 ) . when ( IDENT_2 ) . METHOD_6 ( true ) ; when ( IDENT_6 . METHOD_7 ( STRING_8 ) ) . thenReturn ( IDENT_7 ) ; doReturn ( "" ) . when ( IDENT_2 ) . METHOD_8 ( IDENT_5 , IDENT_7 , false ) ; boolean action = IDENT_2 . METHOD_9 ( ) ; "<AssertPlaceHolder>" ; verify ( IDENT_4 ) . close ( ) ; } METHOD_9 ( ) { java . lang . String IDENT_8 = METHOD_5 ( org . pentaho . platform . plugin . action . IDENT_9 . IDENT_10 . IDENT_11 ) ; java . lang . Object IDENT_12 = METHOD_2 ( org . pentaho . platform . plugin . action . IDENT_9 . IDENT_10 . IDENT_13 ) ; if ( IDENT_12 != null ) { org . pentaho . platform . api . repository . IDENT_14 IDENT_15 = METHOD_10 ( org . pentaho . platform . plugin . action . IDENT_9 . IDENT_10 . IDENT_16 , IDENT_8 ) ; if ( IDENT_15 != null ) { IDENT_15 . METHOD_11 ( IDENT_8 ) ; java . io . IDENT_17 IDENT_18 = null ; if ( IDENT_12 instanceof java . lang . String ) { java . lang . String IDENT_19 = ( ( java . lang . String ) ( IDENT_12 ) ) ; if ( ( IDENT_19 . length ( ) ) > 0 ) { try { IDENT_18 = IDENT_15 . METHOD_12 ( METHOD_13 ( ) ) ; IDENT_18 . write ( IDENT_19 . getBytes ( org . pentaho . platform . util . messages . IDENT_20 . METHOD_14 ( ) ) ) ; IDENT_18 . METHOD_15 ( ) ; IDENT_18 . close ( ) ; IDENT_15 . METHOD_16 ( ) ; } catch ( java . lang . Exception e ) { error ( org . pentaho . platform . plugin . action . messages . IDENT_21 . getInstance ( ) . METHOD_17 ( STRING_9 ) , e ) ; return false ; } trace ( IDENT_19 ) ; return true ; } else { error ( org . pentaho . platform . plugin . action . messages . IDENT_21 . getInstance ( ) . METHOD_17 ( STRING_10 ) ) ; return false ; } } else if ( IDENT_12 instanceof java . io . InputStream ) { java . io . InputStream is = ( ( java . io . InputStream ) ( IDENT_12 ) ) ; byte [ ] IDENT_22 = new byte [ INT_0 ] ; int len ; IDENT_18 = IDENT_15 . METHOD_12 ( null ) ; while ( ( len = is . read ( IDENT_22 ) ) >= 0 ) { IDENT_18 . write ( IDENT_22 , 0 , len ) ; } IDENT_18 . METHOD_15 ( ) ; IDENT_18 . close ( ) ; IDENT_15 . METHOD_16 ( ) ; return true ; } else if ( IDENT_12 instanceof java . io . ByteArrayOutputStream ) { java . io . ByteArrayOutputStream IDENT_23 = ( ( java . io . ByteArrayOutputStream ) ( IDENT_12 ) ) ; IDENT_18 = IDENT_15 . METHOD_12 ( null ) ; IDENT_18 . write ( IDENT_23 . toByteArray ( ) ) ; IDENT_18 . METHOD_15 ( ) ; IDENT_18 . close ( ) ; IDENT_15 . METHOD_16 ( ) ; return true ; } else { error ( org . pentaho . platform . plugin . action . messages . IDENT_21 . getInstance ( ) . METHOD_17 ( STRING_11 , IDENT_12 . getClass ( ) . getName ( ) ) ) ; return false ; } } else { error ( org . pentaho . platform . plugin . action . messages . IDENT_21 . getInstance ( ) . METHOD_17 ( STRING_12 ) ) ; return false ; } } error ( org . pentaho . platform . plugin . action . messages . IDENT_21 . getInstance ( ) . METHOD_17 ( STRING_13 ) ) ; return false ; }
org . junit . Assert . assertTrue ( action )
METHOD_0 ( ) { org . pentaho . platform . plugin . action . IDENT_0 . IDENT_1 IDENT_2 = METHOD_1 ( IDENT_3 ) ; doReturn ( true ) . when ( IDENT_2 ) . METHOD_2 ( STRING_0 ) ; doReturn ( false ) . when ( IDENT_2 ) . METHOD_2 ( STRING_1 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_2 ) . METHOD_3 ( STRING_1 ) ; } METHOD_4 ( ) { boolean result = true ; if ( ! ( ( METHOD_5 ( ) ) instanceof org . pentaho . IDENT_4 . dom . IDENT_5 . IDENT_6 ) ) { error ( org . pentaho . platform . plugin . action . messages . IDENT_7 . getInstance ( ) . METHOD_6 ( STRING_2 , METHOD_5 ( ) . METHOD_7 ( ) . METHOD_8 ( ) ) ) ; result = false ; } else { result = super . METHOD_4 ( ) ; } return result ; }
org . junit . Assert . assertFalse ( IDENT_2 . METHOD_4 ( ) )
METHOD_0 ( ) { org . pentaho . platform . plugin . action . IDENT_0 . IDENT_1 IDENT_2 = METHOD_1 ( IDENT_3 ) ; doReturn ( true ) . when ( IDENT_2 ) . METHOD_2 ( STRING_0 ) ; doReturn ( false ) . when ( IDENT_2 ) . METHOD_2 ( STRING_1 ) ; doReturn ( true ) . when ( IDENT_2 ) . METHOD_3 ( STRING_1 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( ) { boolean result = true ; if ( ! ( ( METHOD_5 ( ) ) instanceof org . pentaho . IDENT_4 . dom . IDENT_5 . IDENT_6 ) ) { error ( org . pentaho . platform . plugin . action . messages . IDENT_7 . getInstance ( ) . METHOD_6 ( STRING_2 , METHOD_5 ( ) . METHOD_7 ( ) . METHOD_8 ( ) ) ) ; result = false ; } else { result = super . METHOD_4 ( ) ; } return result ; }
org . junit . Assert . assertTrue ( IDENT_2 . METHOD_4 ( ) )
METHOD_0 ( ) { org . pentaho . platform . plugin . condition . javascript . IDENT_0 IDENT_1 = new org . pentaho . platform . plugin . condition . javascript . METHOD_1 ( ) ; IDENT_1 . METHOD_2 ( STRING_0 ) ; boolean IDENT_2 = IDENT_1 . METHOD_3 ( Collections . IDENT_3 , org . pentaho . platform . plugin . condition . javascript . IDENT_4 . logger ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . util . Map , org . apache . commons . logging . IDENT_5 ) { boolean METHOD_3 = true ; org . IDENT_6 . javascript . Context IDENT_7 = org . IDENT_6 . javascript . IDENT_8 . METHOD_4 ( ) . METHOD_5 ( ) ; try { org . IDENT_6 . javascript . IDENT_9 IDENT_10 = new org . pentaho . platform . plugin . condition . javascript . METHOD_6 ( ) ; org . IDENT_6 . javascript . IDENT_11 IDENT_12 = IDENT_7 . METHOD_7 ( IDENT_10 ) ; org . IDENT_6 . javascript . IDENT_9 . METHOD_8 ( IDENT_12 , org . pentaho . platform . plugin . services . IDENT_13 . javascript . IDENT_14 . class ) ; java . lang . Object IDENT_15 ; org . pentaho . platform . api . engine . IDENT_16 IDENT_17 ; java . lang . String IDENT_18 ; java . util . Iterator IDENT_19 = IDENT_20 . entrySet ( ) . iterator ( ) ; java . util . Map . Entry IDENT_21 ; while ( IDENT_19 . hasNext ( ) ) { IDENT_21 = ( ( java . util . Map . Entry ) ( IDENT_19 . next ( ) ) ) ; IDENT_18 = ( ( java . lang . String ) ( IDENT_21 . getKey ( ) ) ) ; if ( ( IDENT_18 . indexOf ( STRING_1 ) ) >= 0 ) { logger . info ( ( STRING_2 + IDENT_18 ) ) ; continue ; } IDENT_17 = ( ( org . pentaho . platform . api . engine . IDENT_16 ) ( IDENT_21 . getValue ( ) ) ) ; IDENT_15 = IDENT_17 . getValue ( ) ; java . lang . Object IDENT_22 ; if ( IDENT_15 instanceof org . pentaho . commons . connection . IDENT_23 ) { org . pentaho . platform . plugin . services . IDENT_13 . javascript . IDENT_14 results = new org . pentaho . platform . plugin . services . IDENT_13 . javascript . METHOD_9 ( ) ; results . METHOD_10 ( IDENT_10 ) ; results . METHOD_11 ( ( ( org . pentaho . commons . connection . IDENT_23 ) ( IDENT_15 ) ) ) ; IDENT_22 = org . IDENT_6 . javascript . Context . METHOD_12 ( IDENT_15 , results ) ; } else { IDENT_22 = org . IDENT_6 . javascript . Context . METHOD_12 ( IDENT_15 , IDENT_12 ) ; } org . IDENT_6 . javascript . IDENT_9 . METHOD_13 ( IDENT_12 , IDENT_18 , IDENT_22 ) ; } java . lang . Object IDENT_24 = org . IDENT_6 . javascript . Context . METHOD_12 ( System . out , IDENT_12 ) ; java . lang . Object IDENT_25 = org . IDENT_6 . javascript . Context . METHOD_12 ( this , IDENT_12 ) ; org . IDENT_6 . javascript . IDENT_9 . METHOD_13 ( IDENT_12 , STRING_3 , IDENT_24 ) ; org . IDENT_6 . javascript . IDENT_9 . METHOD_13 ( IDENT_12 , STRING_4 , IDENT_25 ) ; java . lang . Object IDENT_26 = IDENT_7 . METHOD_14 ( IDENT_12 , script , STRING_5 , 1 , null ) ; java . lang . Object IDENT_27 = null ; if ( IDENT_26 instanceof org . IDENT_6 . javascript . IDENT_28 ) { IDENT_27 = ( ( org . IDENT_6 . javascript . IDENT_28 ) ( IDENT_26 ) ) . METHOD_15 ( ) ; } else { IDENT_27 = IDENT_26 ; } if ( IDENT_27 instanceof java . lang . Boolean ) { return ( ( java . lang . Boolean ) ( IDENT_27 ) ) . METHOD_16 ( ) ; } else if ( IDENT_27 instanceof java . lang . String ) { return ( STRING_6 . equalsIgnoreCase ( IDENT_27 . toString ( ) ) ) || ( STRING_7 . equalsIgnoreCase ( IDENT_27 . toString ( ) ) ) ; } else if ( IDENT_27 instanceof java . lang . IDENT_29 ) { return ( ( ( java . lang . IDENT_29 ) ( IDENT_27 ) ) . METHOD_17 ( ) ) > 0 ; } else if ( IDENT_27 instanceof org . pentaho . commons . connection . IDENT_23 ) { return ( ( ( org . pentaho . commons . connection . IDENT_23 ) ( IDENT_27 ) ) . METHOD_18 ( ) ) > 0 ; } } finally { org . IDENT_6 . javascript . Context . METHOD_19 ( ) ; } return METHOD_3 ; }
org . junit . Assert . assertTrue ( IDENT_2 )
METHOD_0 ( ) { final byte [ ] IDENT_0 = org . apache . hadoop . hbase . util . IDENT_1 . METHOD_1 ( STRING_0 ) ; final byte [ ] IDENT_2 = org . apache . hadoop . hbase . util . IDENT_1 . METHOD_1 ( STRING_1 ) ; final int IDENT_3 = 10 ; final byte [ ] value = org . apache . hadoop . hbase . util . IDENT_1 . METHOD_1 ( STRING_2 ) ; org . apache . hadoop . hbase . client . IDENT_4 table = org . apache . hadoop . hbase . client . IDENT_5 . IDENT_6 . METHOD_2 ( org . apache . hadoop . hbase . IDENT_7 . valueOf ( name . METHOD_3 ( ) ) , new byte [ ] [ ] { IDENT_0 , IDENT_2 } ) ; java . util . ArrayList < org . apache . hadoop . hbase . client . IDENT_8 > IDENT_9 = new java . util . ArrayList < org . apache . hadoop . hbase . client . IDENT_8 > ( ) ; for ( int i = 0 ; i < IDENT_3 ; i ++ ) { byte [ ] row = org . apache . hadoop . hbase . util . IDENT_1 . METHOD_1 ( ( STRING_3 + i ) ) ; org . apache . hadoop . hbase . client . IDENT_8 put = new org . apache . hadoop . hbase . client . METHOD_4 ( row ) ; put . METHOD_5 ( IDENT_10 . IDENT_11 ) ; put . METHOD_6 ( IDENT_0 , null , value ) ; IDENT_9 . add ( put ) ; } table . put ( IDENT_9 ) ; org . apache . hadoop . hbase . client . IDENT_12 IDENT_13 = new org . apache . hadoop . hbase . client . METHOD_7 ( ) ; IDENT_13 . METHOD_8 ( IDENT_0 ) ; org . apache . hadoop . hbase . client . IDENT_14 IDENT_15 = table . METHOD_9 ( IDENT_13 ) ; int IDENT_16 = 0 ; for ( @ org . apache . hadoop . hbase . client . METHOD_10 ( STRING_4 ) org . apache . hadoop . hbase . client . Result row : IDENT_15 ) IDENT_16 ++ ; "<AssertPlaceHolder>" ; } METHOD_9 ( long ) { throw new java . lang . IllegalStateException ( STRING_5 ) ; }
org . junit . Assert . assertEquals ( IDENT_3 , IDENT_16 )
METHOD_0 ( ) { org . pentaho . platform . plugin . condition . javascript . IDENT_0 IDENT_1 = new org . pentaho . platform . plugin . condition . javascript . METHOD_1 ( ) ; IDENT_1 . METHOD_2 ( STRING_0 ) ; org . pentaho . platform . api . engine . IDENT_2 parameter = org . pentaho . platform . plugin . condition . javascript . IDENT_3 . METHOD_3 ( 1 ) ; boolean IDENT_4 = IDENT_1 . METHOD_4 ( java . util . Collections . METHOD_5 ( STRING_1 , parameter ) , org . pentaho . platform . plugin . condition . javascript . IDENT_3 . logger ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( int ) { org . pentaho . platform . api . engine . IDENT_2 parameter = mock ( org . pentaho . platform . api . engine . IDENT_2 . class ) ; org . pentaho . commons . connection . IDENT_5 IDENT_6 = mock ( org . pentaho . commons . connection . IDENT_5 . class ) ; when ( IDENT_6 . METHOD_6 ( ) ) . thenReturn ( IDENT_7 ) ; when ( parameter . getValue ( ) ) . thenReturn ( IDENT_6 ) ; return parameter ; }
org . junit . Assert . assertTrue ( IDENT_4 )