[
https://issues.apache.org/jira/browse/MRUNIT-185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13639346#comment-13639346
]
Hudson commented on MRUNIT-185:
-------------------------------
Integrated in mrunit-trunk #859 (See
[https://builds.apache.org/job/mrunit-trunk/859/])
MRUNIT-185 - IllegalFormatException for % in Output. Contributed by Joseph
Beard. (Revision 6e94cecfff1986807ef2f5c1e735c7857f6b57a7)
Result = SUCCESS
dave :
https://git-wip-us.apache.org/repos/asf?p=mrunit.git&a=commit&h=6e94cecfff1986807ef2f5c1e735c7857f6b57a7
Files :
* src/test/java/org/apache/hadoop/mrunit/internal/util/TestErrors.java
* src/main/java/org/apache/hadoop/mrunit/internal/util/Errors.java
> IllegalFormatException for '%' in Output
> ----------------------------------------
>
> Key: MRUNIT-185
> URL: https://issues.apache.org/jira/browse/MRUNIT-185
> Project: MRUnit
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: Joseph Beard
> Fix For: 1.1.0
>
> Attachments: JIRA_185.patch
>
>
> In cases where the expected output does not match the actual output, the
> Errors class will treat the error message created by the
> TestDriver.checkTypesAndLogError(...) method as a format string. If either
> the Expected or Actual Output value contains a '%' character, the
> String.format will result in some type of IllegalFormatException. In my
> case, I received an UnknownFormatConversionException with "%D" in the
> expected output.
> Fortunately, this behavior is only triggered if the unit test is in error,
> but it can make tracking down the source of the issue hard to find.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira