logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: Up-to-date build instructions for Apache chainsaw?
Date Sun, 29 Jun 2008 12:32:54 GMT

On Jun 29, 2008, at 6:55 AM, Oliver Frietsch wrote:
> -------------------------------------------------------------------------------
> Test set: org.apache.log4j.TestLogMF
> -------------------------------------------------------------------------------
> Tests run: 116, Failures: 2, Errors: 0, Skipped: 0, Time elapsed:  
> 11.647 sec <<< FAILURE!
> testTraceFloat(org.apache.log4j.TestLogMF)  Time elapsed: 0.13 sec   
> <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<.......> but  
> was:<...,...>
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at junit.framework.Assert.assertEquals(Assert.java:87)
> 	at org.apache.log4j.TestLogMF.testTraceFloat(TestLogMF.java:225)
>
> testTraceDouble(org.apache.log4j.TestLogMF)  Time elapsed: 0.1 sec   
> <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<.......> but  
> was:<...,...>
> 	at junit.framework.Assert.assertEquals(Assert.java:81)
> 	at junit.framework.Assert.assertEquals(Assert.java:87)
> 	at org.apache.log4j.TestLogMF.testTraceDouble(TestLogMF.java:237)


Looks like the actual and expected values differ due to a locale  
difference in the decimal separator.  Will review, but my guess is the  
LogMF implementation is right and the tests need to be improved.


>
>
> -------------------------------------------------------------------------------
> Test set: org.apache.log4j.chainsaw.prefs.MRUFileListTest
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.09  
> sec <<< FAILURE!
> warning(junit.framework.TestSuite$1)  Time elapsed: 0.01 sec  <<<  
> FAILURE!
> junit.framework.AssertionFailedError: Exception in constructor:  
> testMRUFileList (java.lang.Error: Unresolved compilation problem:
>
> 	at  
> org 
> .apache.log4j.chainsaw.prefs.MRUFileList.log4jMRU(MRUFileList.java:81)
> 	at  
> org 
> .apache 
> .log4j.chainsaw.prefs.MRUFileListTest.<init>(MRUFileListTest.java:32)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native  
> Method)
> 	at  
> sun 
> .reflect 
> .NativeConstructorAccessorImpl 
> .newInstance(NativeConstructorAccessorImpl.java:39)
> 	at  
> sun 
> .reflect 
> .DelegatingConstructorAccessorImpl 
> .newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at junit.framework.TestSuite.createTest(TestSuite.java:131)
>

....

> -------------------------------------------------------------------------------
> Test set: org.apache.log4j.chainsaw.receivers.ReceiversHelperTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.02  
> sec <<< FAILURE!
> testKnownReceivers 
> (org.apache.log4j.chainsaw.receivers.ReceiversHelperTest)  Time  
> elapsed: 0.01 sec  <<< ERROR!
> java.lang.Error: Unresolved compilation problem:
>
> 	at  
> org 
> .apache 
> .log4j 
> .chainsaw.receivers.ReceiversHelper.getInstance(ReceiversHelper.java: 
> 95)
> 	at  
> org 
> .apache 
> .log4j 
> .chainsaw 
> .receivers 
> .ReceiversHelperTest.testKnownReceivers(ReceiversHelperTest.java:37)
>
> -------------------------------------------------------------------------------
> Test set: org.apache.log4j.chainsaw.LogPanelPreferenceModelTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.01  
> sec <<< FAILURE!
> testLogPanelPreferenceModelSerialization 
> (org.apache.log4j.chainsaw.LogPanelPreferenceModelTest)  Time  
> elapsed: 0 sec  <<< ERROR!
> java.lang.Error: Unresolved compilation problems:
> 	The import org.apache.log4j.LogManager cannot be resolved
> 	The import org.apache.log4j.Logger cannot be resolved
> 	Logger cannot be resolved to a type
> 	LogManager cannot be resolved
>
> 	at  
> org 
> .apache 
> .log4j 
> .chainsaw 
> .LogPanelPreferenceModel.<init>(LogPanelPreferenceModel.java:36)
> 	at  
> org 
> .apache 
> .log4j 
> .chainsaw 
> .LogPanelPreferenceModelTest 
> .testLogPanelPreferenceModelSerialization 
> (LogPanelPreferenceModelTest.java:11)
>

Don't have a guess on this one.  Haven't been following the thread  
closely.  If you haven't done so already, it would be helpful to know  
the operating system and JDK being used.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message