From e3e2226f07d4d5f3938d99c033ebe90bc1fc4fd5 Mon Sep 17 00:00:00 2001 From: Andre Holzner Date: Fri, 10 Nov 2017 16:30:03 +0100 Subject: [PATCH] added tests for number of crashes in F3DataRetrieverIT --- .../datasource/F3DataRetrieverIT.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/test/java/rcms/utilities/daqaggregator/datasource/F3DataRetrieverIT.java b/src/test/java/rcms/utilities/daqaggregator/datasource/F3DataRetrieverIT.java index ed9c8205..3453cc85 100644 --- a/src/test/java/rcms/utilities/daqaggregator/datasource/F3DataRetrieverIT.java +++ b/src/test/java/rcms/utilities/daqaggregator/datasource/F3DataRetrieverIT.java @@ -159,5 +159,28 @@ public void hltInfoDirectTest() throws IOException { logger.info("HLT bandwidth for stream " + streamName + " is " + bandwidth); assertNotNull(bandwidth); } + + /** + * Test for number of HLT crashes + */ + @Test + public void crashesDirectTest() throws IOException { + + Integer crashes = f3dataRetriever.getCrashes(); + + logger.info("HLT number of crashes is " + crashes); + assertNotNull(crashes); + } + + /** + * test of dispatching of number of HLT crashes + */ + @Test + public void crashesDispatchTest() { + + Integer crashes = daq.getHltInfo().getCrashes(); + assertNotNull(crashes); + + } }