HeartbeatListenerTest

4

tests

0

failures

0

ignored

6.049s

duration

100%

successful

Tests

Test Duration Result
testAutoClearHeartbeat() 5.001s passed
testJSONHeartbeatListener() 0.002s passed
testManualClearHeartbeat() 1.003s passed
testWriteHeartbeat() 0.043s passed

Standard output

Test scheduled heartbeat data clearing, JSON={}
Test sendHeartbeatMessage and JSON={"TestComponent1":{"key13":{"message":"value13","date":"1665512487569"},"key12":{"message":"value12","date":"1665512487569"},"key11":{"message":"value11","date":"1665512487569"}},"TestComponent2":{"key23":{"message":"value23","date":"1665512487569"},"key22":{"message":"value22","date":"1665512487569"},"key21":{"message":"value21","date":"1665512487569"}}}
Manual test heartbeat data cleared, JSON={}

Standard error

Exception in thread "Thread-21" java.lang.NullPointerException
	at gov.usgs.earthquake.distribution.NotificationIndexCleanup.run(NotificationIndexCleanup.java:45)
	at java.base/java.lang.Thread.run(Thread.java:829)
Exception in thread "Thread-22" java.lang.NullPointerException
	at gov.usgs.earthquake.distribution.NotificationIndexCleanup.run(NotificationIndexCleanup.java:45)
	at java.base/java.lang.Thread.run(Thread.java:829)