Source:
public void testWarningComparator ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( "res/values-es/formatstrings.xml:5: Warning: Formatting string \'missing\' is not referencing numbered arguments [1, 2] [StringFormatCount]\n" + " <string name=\"missing\">Hello %3$s World</string>\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/values/formatstrings.xml:5: Warning: Formatting string \'missing\' is not referencing numbered arguments [1, 2] [StringFormatCount]\n" ) + " <string name=\"missing\">Hello %3$s World</string>\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 2 warnings\n" ) ) , lintProject ( "res/values/formatstrings.xml" , "res/values/formatstrings.xml=>res/values-es/formatstrings.xml" , "src/test/pkg/StringFormatActivity.java.txt=>src/test/pkg/StringFormatActivity.java" ) ) ; }

Target:
public void testWarningComparator ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/StringFormatActivity.java:21: Error: Wrong argument type for formatting argument \'#1\' in score: conversion is \'d\', received boolean (argument #2 in method call) [StringFormatMatches]\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " String output4 = String.format(score, true); // wrong\n" + " ~~~~\n" ) + " res/values-es/formatstrings.xml:6: Conflicting argument declaration here\n" ) + "src/test/pkg/StringFormatActivity.java:21: Error: Wrong argument type for formatting argument \'#1\' in score: conversion is \'d\', received boolean (argument #2 in method call) [StringFormatMatches]\n" ) + " String output4 = String.format(score, true); // wrong\n" ) + " ~~~~\n" ) + " res/values/formatstrings.xml:6: Conflicting argument declaration here\n" ) + "src/test/pkg/StringFormatActivity.java:22: Error: Wrong argument type for formatting argument \'#1\' in score: conversion is \'d\', received boolean (argument #2 in method call) [StringFormatMatches]\n" ) + " String output4 = String.format(score, won); // wrong\n" ) + " ~~~\n" ) + " res/values-es/formatstrings.xml:6: Conflicting argument declaration here\n" ) + "src/test/pkg/StringFormatActivity.java:22: Error: Wrong argument type for formatting argument \'#1\' in score: conversion is \'d\', received boolean (argument #2 in method call) [StringFormatMatches]\n" ) + " String output4 = String.format(score, won); // wrong\n" ) + " ~~~\n" ) + " res/values/formatstrings.xml:6: Conflicting argument declaration here\n" ) + "res/values-es/formatstrings.xml:5: Warning: Formatting string \'missing\' is not referencing numbered arguments [1, 2] [StringFormatCount]\n" ) + " <string name=\"missing\">Hello %3$s World</string>\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/values/formatstrings.xml:5: Warning: Formatting string \'missing\' is not referencing numbered arguments [1, 2] [StringFormatCount]\n" ) + " <string name=\"missing\">Hello %3$s World</string>\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "4 errors, 2 warnings\n" ) ) , lintProject ( "res/values/formatstrings.xml" , "res/values/formatstrings.xml=>res/values-es/formatstrings.xml" , "src/test/pkg/StringFormatActivity.java.txt=>src/test/pkg/StringFormatActivity.java" ) ) ; }