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