METHOD_0 ( ) { try { org . pentaho . database . model . IDENT_0 IDENT_1 = mock ( org . pentaho . database . model . IDENT_0 . class ) ; when ( IDENT_1 . METHOD_1 ( ) ) . thenReturn ( IDENT_2 . IDENT_3 ) ; org . pentaho . platform . engine . services . connection . IDENT_4 . IDENT_5 . IDENT_6 . METHOD_2 ( IDENT_1 ) ; org . junit . Assert . fail ( STRING_0 ) ; } catch ( org . pentaho . platform . api . data . IDENT_7 ex ) { "<AssertPlaceHolder>" ; } } METHOD_2 ( org . pentaho . database . model . IDENT_0 ) { org . apache . commons . IDENT_5 . IDENT_8 IDENT_9 = null ; java . lang . String IDENT_10 = null ; java . lang . String url = null ; try { if ( IDENT_1 . METHOD_1 ( ) . equals ( IDENT_2 . IDENT_3 ) ) { throw new org . pentaho . platform . api . data . METHOD_3 ( org . pentaho . platform . engine . services . messages . IDENT_11 . getInstance ( ) . METHOD_4 ( STRING_1 4 , IDENT_1 . getName ( ) ) ) ; } org . pentaho . platform . api . engine . IDENT_12 IDENT_13 = org . pentaho . platform . engine . core . IDENT_14 . IDENT_15 . METHOD_5 ( null ) ; org . pentaho . database . service . IDENT_16 IDENT_17 = org . pentaho . platform . engine . core . IDENT_14 . IDENT_15 . get ( org . pentaho . database . service . IDENT_16 . class ) ; if ( IDENT_17 == null ) { throw new org . pentaho . platform . api . data . METHOD_3 ( org . pentaho . platform . engine . services . messages . IDENT_11 . getInstance ( ) . METHOD_4 ( STRING_2 , IDENT_1 . getName ( ) ) ) ; } org . pentaho . database . IDENT_18 IDENT_19 = IDENT_17 . METHOD_6 ( IDENT_1 ) ; if ( ( IDENT_19 == null ) || ( ( IDENT_19 . METHOD_7 ( ) ) == null ) ) { throw new org . pentaho . platform . api . data . METHOD_3 ( org . pentaho . platform . engine . services . messages . IDENT_11 . getInstance ( ) . METHOD_4 ( STRING_3 , IDENT_1 . getName ( ) ) ) ; } if ( IDENT_1 . METHOD_7 ( ) . METHOD_8 ( ) . equals ( STRING_4 2 ) ) { IDENT_10 = IDENT_1 . METHOD_9 ( ) . get ( IDENT_20 . IDENT_21 ) ; if ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_10 ) ) { throw new org . pentaho . platform . api . data . METHOD_3 ( org . pentaho . platform . engine . services . messages . IDENT_11 . getInstance ( ) . METHOD_4 ( STRING_1 2 , IDENT_1 . getName ( ) ) ) ; } } else { IDENT_10 = IDENT_19 . METHOD_10 ( ) ; if ( org . apache . commons . lang . StringUtils . isEmpty ( IDENT_10 ) ) { throw new org . pentaho . platform . api . data . METHOD_3 ( org . pentaho . platform . engine . services . messages . IDENT_11 . getInstance ( ) . METHOD_4 ( STRING_5 , IDENT_1 . getName ( ) ) ) ; } } try { url = IDENT_19 . METHOD_11 ( IDENT_1 ) ; } catch ( org . pentaho . database . IDENT_22 e ) { url = null ; } java . lang . String IDENT_23 = org . pentaho . platform . engine . core . IDENT_14 . IDENT_15 . METHOD_12 ( STRING_4 7 , null ) ; java . lang . String IDENT_24 = org . pentaho . platform . engine . core . IDENT_14 . IDENT_15 . METHOD_12 ( STRING_6 , null ) ; java . lang . String IDENT_25 = org . pentaho . platform . engine . core . IDENT_14 . IDENT_15 . METHOD_12 ( STRING_7 , null ) ; java . lang . String IDENT_26 = null ; java . lang . String IDENT_27 = org . pentaho . platform . engine . core . IDENT_14 . IDENT_15 . METHOD_12 ( STRING_1 0 , null ) ; java . lang . String IDENT_28 = org . pentaho . platform . engine . core . IDENT_14 . IDENT_15 . METHOD_12 ( STRING_4 3 , null ) ; java . lang . String IDENT_29 = org . pentaho . platform . engine . core . IDENT_14 . IDENT_15 . METHOD_12 ( STRING_4 6 , null ) ; java . lang . String IDENT_30 = org . pentaho . platform . engine . core . IDENT_14 . IDENT_15 . METHOD_12 ( STRING_1 6 , null ) ; java . lang . String IDENT_31 = org . pentaho . platform . engine . core . IDENT_14 . IDENT_15 . METHOD_12 ( STRING_1 7 , null ) ; boolean IDENT_32 = ( ! ( org . pentaho . platform . util . IDENT_33 . isEmpty ( IDENT_29 ) ) ) ? java . lang . Boolean . METHOD_13 ( IDENT_29 ) : false ; boolean IDENT_34 = ( ! ( org . pentaho . platform . util . IDENT_33 . isEmpty ( IDENT_30 ) ) ) ? java . lang . Boolean . METHOD_13 ( IDENT_30 ) : false ; boolean IDENT_35 = ( ! ( org . pentaho . platform . util . IDENT_33 . isEmpty ( IDENT_31 ) ) ) ? java . lang . Boolean . METHOD_13 ( IDENT_31 ) : false ; int IDENT_36 = ( ! ( org . pentaho . platform . util . IDENT_33 . isEmpty ( IDENT_25 ) ) ) ? java . lang . Integer . METHOD_14 ( IDENT_25 ) : - 1 ; long IDENT_37 = ( ! ( org . pentaho . platform . util . IDENT_33 . isEmpty ( IDENT_28 ) ) ) ? java . lang . Integer . METHOD_14 ( IDENT_28 ) : - 1 ; byte IDENT_38 = ( ! ( org . pentaho . platform . util . IDENT_33 . isEmpty ( IDENT_27 ) ) ) ? java . lang . IDENT_39 . METHOD_15 ( IDENT_27 ) : org . apache . commons . pool . impl . IDENT_40 . IDENT_41 ; int IDENT_42 = ( ! ( org . pentaho . platform . util . IDENT_33 . isEmpty ( IDENT_24 ) ) ) ? java . lang . Integer . METHOD_14 ( IDENT_24 ) : - 1 ; int IDENT_43 = ( ! ( org . pentaho . platform . util . IDENT_33 . isEmpty ( IDENT_23 ) ) ) ? java . lang . Integer . METHOD_14 ( IDENT_23 ) : - 1 ; java . util . Map < java . lang . String , java . lang . String > attributes = IDENT_1 . METHOD_16 ( ) ; if ( ( attributes . containsKey ( IDENT_44 . IDENT_45 ) ) && ( org . apache . commons . lang . math . IDENT_46 . METHOD_17 ( attributes . get ( IDENT_44 . IDENT_45 ) ) ) ) { IDENT_36 = java . lang . Integer . METHOD_14 ( attributes . get ( IDENT_44 . IDENT_45 ) ) ; } if ( ( attributes . containsKey ( IDENT_44 . IDENT_47 ) ) && ( org . apache . commons . lang . math . IDENT_46 . METHOD_17 ( attributes . get ( IDENT_44 . IDENT_47 ) ) ) ) { IDENT_37 = java . lang . Integer . METHOD_14 ( attributes . get ( IDENT_44 . IDENT_47 ) ) ; } if ( ( attributes . containsKey ( IDENT_44 . IDENT_48 ) ) && ( org . apache . commons . lang . math . IDENT_46 . METHOD_17 ( attributes . get ( IDENT_44 . IDENT_48 ) ) ) ) { IDENT_42 = java . lang . Integer . METHOD_14 ( attributes . get ( IDENT_44 . IDENT_48 ) ) ; } if ( ( attributes . containsKey ( IDENT_44 . IDENT_49 ) ) && ( org . apache . commons . lang . math . IDENT_46 . METHOD_17 ( attributes . get ( IDENT_44 . IDENT_49 ) ) ) ) { IDENT_43 = java . lang . Integer . METHOD_14 ( attributes . get ( IDENT_44 . IDENT_49 ) ) ; } if ( attributes . containsKey ( IDENT_44 . IDENT_50 ) ) { IDENT_26 = attributes . get ( IDENT_44 . IDENT_50 ) ; } if ( attributes . containsKey ( IDENT_44 . IDENT_51 ) ) { IDENT_34 = java . lang . Boolean . METHOD_13 ( attributes . get ( IDENT_44 . IDENT_51 ) ) ; } if ( attributes . containsKey ( IDENT_44 . IDENT_52 ) ) { IDENT_35 = java . lang . Boolean . METHOD_13 ( attributes . get ( IDENT_44 . IDENT_52 ) ) ; } if ( attributes . containsKey ( IDENT_44 . IDENT_53 ) ) { IDENT_32 = java . lang . Boolean . METHOD_13 ( attributes . get ( IDENT_44 . IDENT_53 ) ) ; } IDENT_9 = new org . apache . commons . IDENT_5 . METHOD_18 ( ) ; if ( IDENT_19 instanceof org . pentaho . database . IDENT_54 ) { if ( ! ( ( ( org . pentaho . database . IDENT_54 ) ( IDENT_19 ) ) . METHOD_19 ( IDENT_10 ) ) ) { throw new org . pentaho . platform . engine . services . connection . IDENT_4 . IDENT_5 . METHOD_20 ( org . pentaho . platform . engine . services . messages . IDENT_11 . getInstance ( ) . METHOD_4 ( STRING_1 5 , IDENT_1 . getName ( ) , IDENT_10 ) ) ; } } else { java . lang . Class . METHOD_21 ( IDENT_10 ) ; } org . apache . commons . pool . impl . IDENT_40 pool = new org . apache . commons . pool . impl . METHOD_22 ( null ) ; if ( ( attributes . containsKey ( IDENT_44 . IDENT_55 ) ) && ( true == ( java . lang . Boolean . METHOD_13 ( attributes . get ( IDENT_44 . IDENT_55 ) ) ) ) ) { org . apache . commons . IDENT_5 . IDENT_56 config = new org . apache . commons . IDENT_5 . METHOD_23 ( ) ; config . METHOD_24 ( java . lang . Boolean . METHOD_13 ( attributes . get ( IDENT_44 . IDENT_55 ) ) ) ; if ( attributes . containsKey ( IDENT_44 . IDENT_57 ) ) { config . METHOD_25 ( java . lang . Boolean . METHOD_13 ( attributes . get ( IDENT_44 . IDENT_57 ) ) ) ; } if ( ( attributes . containsKey ( IDENT_44 . IDENT_58 ) ) && ( org . apache . commons . lang . math . IDENT_46 . METHOD_17 ( attributes . get ( IDENT_44 . IDENT_58 ) ) ) ) { config . METHOD_26 ( java . lang . Integer . METHOD_14 ( attributes . get ( IDENT_44 . IDENT_58 ) ) ) ; } pool = new org . apache . commons . IDENT_5 . METHOD_27 ( null , config ) ; } pool . METHOD_28 ( IDENT_38 ) ; pool . METHOD_29 ( IDENT_36 ) ; pool . METHOD_30 ( IDENT_43 ) ; pool . METHOD_31 ( IDENT_37 ) ; pool . METHOD_32 ( IDENT_42 ) ; pool . METHOD_33 ( IDENT_32 ) ; pool . METHOD_34 ( IDENT_35 ) ; pool . METHOD_35 ( IDENT_34 ) ; pool . METHOD_33 ( IDENT_32 ) ; if ( ( attributes . containsKey ( IDENT_44 . IDENT_59 ) ) && ( org . apache . commons . lang . math . IDENT_46 . METHOD_17 ( attributes . get ( IDENT_44 . IDENT_59 ) ) ) ) { pool . METHOD_36 ( java . lang . Long . METHOD_37 ( attributes . get ( IDENT_44 . IDENT_59 ) ) ) ; } IDENT_9 . METHOD_38 ( pool ) ; if ( attributes . containsKey ( IDENT_44 . IDENT_60 ) ) { IDENT_9 . METHOD_39 ( java . lang . Boolean . METHOD_13 ( attributes . get ( IDENT_44 . IDENT_60 ) ) ) ; } IDENT_13 . METHOD_40 ( IDENT_44 . IDENT_61 , IDENT_1 . getName ( ) , pool ) ; return IDENT_9 ; } catch ( java . lang . Exception e ) { throw new org . pentaho . platform . api . data . METHOD_3 ( e ) ; } }
org . junit . Assert . assertNotNull ( ex )