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