即使两个字符串相同,assertEquals() 也会失败......有人可以帮我找出原因吗?
public void testSet()
{
ByteArrayOutputStream outContent = new ByteArrayOutputStream();
System.setOut(new PrintStream(outContent));
instance.get();
String output = outContent.toString();
String input="i=1\r\n";
assertEquals(input,output);
}
get()
{
int i=1;
System.out.println("i="+i);
}