| DatedLoggingEvent | Line # 13 | 5 | 4 | 55.6% |
0.5555556
|
| (5) | |||
| Result | |||
|
0.5555556
|
test.atlassian.core.logging.TestThreadLocalErrorCollection.testLimitDefault
test.atlassian.core.logging.TestThreadLocalErrorCollection.testLimitDefault
|
1 PASS | |
|
0.5555556
|
test.atlassian.core.logging.TestThreadLocalErrorCollection.testLimitNormal
test.atlassian.core.logging.TestThreadLocalErrorCollection.testLimitNormal
|
1 PASS | |
|
0.5555556
|
test.atlassian.core.logging.TestThreadLocalErrorCollection.testLimitMutated
test.atlassian.core.logging.TestThreadLocalErrorCollection.testLimitMutated
|
1 PASS | |
|
0.33333334
|
test.atlassian.core.logging.TestThreadLocalErrorCollection.testEnabledAllowsErrorMessages
test.atlassian.core.logging.TestThreadLocalErrorCollection.testEnabledAllowsErrorMessages
|
1 PASS | |
|
0.33333334
|
test.atlassian.core.logging.TestThreadLocalErrorCollection.testToggle
test.atlassian.core.logging.TestThreadLocalErrorCollection.testToggle
|
1 PASS | |
| 1 | /* | |
| 2 | * Created by IntelliJ IDEA. | |
| 3 | * User: Mike | |
| 4 | * Date: Jun 8, 2004 | |
| 5 | * Time: 4:52:14 PM | |
| 6 | */ | |
| 7 | package com.atlassian.core.logging; | |
| 8 | ||
| 9 | import org.apache.log4j.spi.LoggingEvent; | |
| 10 | ||
| 11 | import java.util.Date; | |
| 12 | ||
| 13 | public class DatedLoggingEvent | |
| 14 | { | |
| 15 | private final long timeInMillis; | |
| 16 | private final LoggingEvent event; | |
| 17 | ||
| 18 | 209 |
public DatedLoggingEvent(long timeInMillis, LoggingEvent event) |
| 19 | { | |
| 20 | 209 | this.timeInMillis = timeInMillis; |
| 21 | ||
| 22 | 209 | this.event = event; |
| 23 | } | |
| 24 | ||
| 25 | 3 |
public LoggingEvent getEvent() |
| 26 | { | |
| 27 | 3 | return event; |
| 28 | } | |
| 29 | ||
| 30 | 0 |
public long getTimeInMillis() |
| 31 | { | |
| 32 | 0 | return timeInMillis; |
| 33 | } | |
| 34 | ||
| 35 | 0 |
public Date getDate() |
| 36 | { | |
| 37 | 0 | return new Date(timeInMillis); |
| 38 | } | |
| 39 | } | |
|
||||||||||