HeartbeatListenerTest

4

tests

0

failures

0

ignored

6.022s

duration

100%

successful

Tests

Test Duration Result
testAutoClearHeartbeat() 5.002s passed
testJSONHeartbeatListener() 0.003s passed
testManualClearHeartbeat() 1.003s passed
testWriteHeartbeat() 0.014s passed

Standard output

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

Standard error

Exception in thread "Thread-68" java.lang.NullPointerException: Cannot invoke "gov.usgs.earthquake.distribution.NotificationIndex.getName()" because "this.index" is null
	at gov.usgs.earthquake.distribution.NotificationIndexCleanup.run(NotificationIndexCleanup.java:54)
	at java.base/java.lang.Thread.run(Thread.java:840)
Exception in thread "Thread-69" java.lang.NullPointerException: Cannot invoke "gov.usgs.earthquake.distribution.NotificationIndex.getName()" because "this.index" is null
	at gov.usgs.earthquake.distribution.NotificationIndexCleanup.run(NotificationIndexCleanup.java:54)
	at java.base/java.lang.Thread.run(Thread.java:840)