I often make the experience, that the Console view in Eclipse gives confusing results. With most confusions (like error outputs written between some standard outputs), but with one type I can’t live at all. Sometimes you have a System.out.println(); somewhere in your code and you can validate that the code before the sysout and the code after it will be executed, but still you will not see any result printed to the console. Why is that?
At the moment I saw this in a JUnit4 test (but it’s not the first time).
My test looks something like this:
@Test
public void testSomething(){
//prep
...
String expected = ...
//exec
String actual = executeTestcase();
//assert
System.out.println(Formatter.doSomeformatting(actual));
Assert.assertEquals(expected, actual);
}
Perhaps you were not selecting the correct console?