METHOD_0 ( ) { java . lang . String url = STRING_0 ; java . lang . String expected = ( STRING_1 + ( com . liferay . portal . kernel . util . IDENT_0 . METHOD_1 ( url ) ) ) + STRING_2 ; java . lang . String actual = IDENT_1 . parse ( ( ( STRING_3 + url ) + STRING_4 ) ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { if ( com . liferay . portal . kernel . util . IDENT_2 . METHOD_2 ( s ) ) { throw new java . lang . IllegalArgumentException ( ( STRING_5 + s ) ) ; } java . lang . String [ ] fields = com . liferay . IDENT_3 . media . image . internal . configuration . IDENT_4 . IDENT_5 . split ( s ) ; if ( ( ( fields . length ) != 4 ) && ( ( fields . length ) != 5 ) ) { throw new java . lang . IllegalArgumentException ( ( STRING_5 + s ) ) ; } java . lang . String name = fields [ 0 ] ; name = IDENT_6 . METHOD_3 ( name ) ; java . lang . String description = fields [ 1 ] ; description = IDENT_6 . METHOD_3 ( description ) ; java . lang . String IDENT_7 = fields [ 2 ] ; if ( ( com . liferay . portal . kernel . util . IDENT_2 . METHOD_2 ( name ) ) || ( com . liferay . portal . kernel . util . IDENT_2 . METHOD_2 ( IDENT_7 ) ) ) { throw new java . lang . IllegalArgumentException ( ( STRING_5 + s ) ) ; } java . lang . String [ ] attributes = com . liferay . IDENT_3 . media . image . internal . configuration . IDENT_4 . IDENT_8 . split ( fields [ 3 ] ) ; java . util . Map < java . lang . String , java . lang . String > properties = new java . util . HashMap ( ) ; for ( java . lang . String IDENT_9 : attributes ) { java . lang . String [ ] IDENT_10 = com . liferay . IDENT_3 . media . image . internal . configuration . IDENT_4 . IDENT_11 . split ( IDENT_9 ) ; properties . put ( IDENT_10 [ 0 ] , IDENT_10 [ 1 ] ) ; } boolean IDENT_12 = true ; if ( ( fields . length ) == 5 ) { java . lang . String IDENT_13 = fields [ 4 ] ; java . util . regex . IDENT_14 matcher = com . liferay . IDENT_3 . media . image . internal . configuration . IDENT_4 . IDENT_15 . matcher ( IDENT_13 ) ; if ( ! ( matcher . matches ( ) ) ) { throw new java . lang . IllegalArgumentException ( ( STRING_5 + s ) ) ; } IDENT_12 = com . liferay . portal . kernel . util . IDENT_16 . METHOD_4 ( matcher . group ( 1 ) ) ; } return new com . liferay . IDENT_3 . media . image . internal . configuration . METHOD_5 ( name , description , IDENT_7 , properties , IDENT_12 ) ; }
org . junit . Assert . assertEquals ( expected , actual )