← Back to team overview

erma-core team mailing list archive

[Question #39075]: Unit tests failing

 

New question #39075 on ERMA:
https://answers.launchpad.net/erma/+question/39075

When running the test suite I get 2 errors and 10 failures, are all the tests on the current mainline expected to pass?

The failures are:
com.orbitz.monitoring.lib.processor.LatencyMonitoringCoverageMonitorProcessorTest
testNoChildrenWithoutCoverage(com.orbitz.monitoring.lib.processor.LatencyMonitoringCoverageMonitorProcessorTest)
junit.framework.AssertionFailedError: Didn't find a MonitoringCoverageGap event where there should have been one

testOneChildWithoutLHCoverage(com.orbitz.monitoring.lib.processor.LatencyMonitoringCoverageMonitorProcessorTest)
junit.framework.AssertionFailedError: Didn't find a MonitoringCoverageGap event where there should have been one

testOneChildWithoutRHCoverage(com.orbitz.monitoring.lib.processor.LatencyMonitoringCoverageMonitorProcessorTest)
junit.framework.AssertionFailedError: Didn't find a MonitoringCoverageGap event where there should have been one

testTwoChildrenWithoutMiddleCoverage(com.orbitz.monitoring.lib.processor.LatencyMonitoringCoverageMonitorProcessorTest)
junit.framework.AssertionFailedError: Didn't find a MonitoringCoverageGap event where there should have been one

testTwoChildrenWithoutLHCoverage(com.orbitz.monitoring.lib.processor.LatencyMonitoringCoverageMonitorProcessorTest)
junit.framework.AssertionFailedError: Didn't find a MonitoringCoverageGap event where there should have been one

testTwoChildrenWithoutRHCoverage(com.orbitz.monitoring.lib.processor.LatencyMonitoringCoverageMonitorProcessorTest)
junit.framework.AssertionFailedError: Didn't find a MonitoringCoverageGap event where there should have been one

com.orbitz.monitoring.lib.processor.EventPatternMonitorProcessorTest
testDefaultAttributes(com.orbitz.monitoring.lib.processor.EventPatternMonitorProcessorTest)
junit.framework.AssertionFailedError: expected:<<TransactionMonitor name="name" vmid="vm" failed="true"/>> but was:<<TransactionMonitor name="name" vmid="JVM_ID_NOT_SET" failed="true"/>>

testEnableDisable(com.orbitz.monitoring.lib.processor.EventPatternMonitorProcessorTest)
junit.framework.AssertionFailedError: expected:<<TransactionMonitor name="name" failed="true"/>> but was:<<TransactionMonitor name="name" vmid="JVM_ID_NOT_SET" failed="true"/>>

testAddRemoveAttributes(com.orbitz.monitoring.lib.processor.EventPatternMonitorProcessorTest)
junit.framework.AssertionFailedError: expected:<<TransactionMonitor name="name" failed="true" x="value"/>> but was:<<TransactionMonitor name="name" vmid="JVM_ID_NOT_SET" failed="true" x="value"/>>

com.orbitz.monitoring.api.monitor.TransactionMonitorTest
testChildMonitorPopulation(com.orbitz.monitoring.api.monitor.TransactionMonitorTest)
java.util.NoSuchElementException

testChildTransactionMissedEndCall(com.orbitz.monitoring.api.monitor.TransactionMonitorTest)
junit.framework.AssertionFailedError: For expected process() object: [class com.orbitz.monitoring.api.monitor.TransactionMonitor attributes={startTime=Sun Jul 13 17:41:09 EST 2008, vmid=JVM_ID_NOT_SET, threadId=131f71a, createdAt=Sun Jul 13 17:41:09 EST 2008, name=childsChild, failed=true, hostname=acer, sequenceId=m}level=INFO]

testInheritanceHierarchy(com.orbitz.monitoring.api.monitor.TransactionMonitorTest)
com.orbitz.monitoring.api.AttributeUndefinedException: implicit value is undefined

Thanks, 
   Cameron

-- 
You received this question notification because you are a member of
Erma-core, which is an answer contact for ERMA.