Bug 219445 - system err/out are not properly displayed
Summary: system err/out are not properly displayed
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Corona (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dennis O'Flynn CLA
QA Contact: Dennis O'Flynn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-19 10:50 EST by 14417335 CLA
Modified: 2010-04-08 11:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 14417335 CLA 2008-02-19 10:50:13 EST
In my code, I try to print some message to System.out

public class HealthCheckTestCase {
	
	@Test
	public void healthCheck() throws Exception {
		HealthCheckItemResult result = Activator.getHealthChecker().doHealthCheck();
		assertTrue("Test failed.  Please examine System.out log for details.", result.isVerdict());
		System.out.println(result.getComment());
	}

}


However, when I run it, the followings are all relevant message I got.  My message to System.out is missing.

	Test Suite: health.TestSuite

	Time
		   Start: Tue Feb 19 10:45:55 EST 2008
		    Stop: Tue Feb 19 10:45:55 EST 2008
		 Elapsed: 0.031 (seconds)
	Counts
		 Run     : 1
		 Failures: 1
		 Ignore  : 0
	Result: Fail
	Test Failure
		 Name: healthCheck(health.test.internal.HealthCheckTestCase)
		 Message: Test failed.  Please examine System.out log for details.
		 Exception: java.lang.AssertionError: Test failed.  Please examine System.out log for details.
				at org.junit.Assert.fail(Assert.java:71)
				at org.junit.Assert.assertTrue(Assert.java:34)
			
	Test System Output...
	Merged Ouput: Tue Feb 19 10:45:55 EST 2008 (1203435955265)
Comment 1 Sebastien Angers CLA 2009-01-21 23:27:28 EST
Does not seem to be a bug; because of the assertion error, the System.out.println line should not be called.
Comment 2 Eclipse Webmaster CLA 2010-04-08 11:15:12 EDT
Project is archived.