Skip to content
Snippets Groups Projects
Commit 0d90c830 authored by Christian Wulf's avatar Christian Wulf
Browse files

added assertions

parent 1e75a877
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,9 @@ ...@@ -16,7 +16,9 @@
package teetime.examples.recordReader; package teetime.examples.recordReader;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.Collection;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import org.junit.After; import org.junit.After;
...@@ -24,6 +26,7 @@ import org.junit.Before; ...@@ -24,6 +26,7 @@ import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import teetime.framework.Analysis; import teetime.framework.Analysis;
import teetime.util.Pair;
import teetime.util.StopWatch; import teetime.util.StopWatch;
import kieker.common.record.IMonitoringRecord; import kieker.common.record.IMonitoringRecord;
...@@ -57,13 +60,18 @@ public class RecordReaderAnalysisTest { ...@@ -57,13 +60,18 @@ public class RecordReaderAnalysisTest {
Analysis analysis = new Analysis(configuration); Analysis analysis = new Analysis(configuration);
analysis.init(); analysis.init();
Collection<Pair<Thread, Throwable>> exceptions;
this.stopWatch.start(); this.stopWatch.start();
try { try {
analysis.start(); exceptions = analysis.start();
} finally { } finally {
this.stopWatch.end(); this.stopWatch.end();
} }
assertNotNull(exceptions);
assertEquals(0, exceptions.size());
assertEquals(6541, configuration.getElementCollection().size()); assertEquals(6541, configuration.getElementCollection().size());
KiekerMetadataRecord metadataRecord = (KiekerMetadataRecord) configuration.getElementCollection().get(0); KiekerMetadataRecord metadataRecord = (KiekerMetadataRecord) configuration.getElementCollection().get(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment