Skip to content
Snippets Groups Projects
Commit e2af0002 authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

migrated to Analysis.executeBlocking()

parent 3093fd7e
No related branches found
No related tags found
No related merge requests found
Showing
with 14 additions and 26 deletions
......@@ -16,9 +16,7 @@
package teetime.examples.recordReader;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.Collection;
import java.util.concurrent.TimeUnit;
import org.junit.After;
......@@ -26,7 +24,6 @@ import org.junit.Before;
import org.junit.Test;
import teetime.framework.Analysis;
import teetime.util.Pair;
import teetime.util.StopWatch;
import kieker.common.record.IMonitoringRecord;
......@@ -58,19 +55,10 @@ public class RecordReaderAnalysisTest {
final RecordReaderConfiguration configuration = new RecordReaderConfiguration();
Analysis analysis = new Analysis(configuration);
analysis.init();
Collection<Pair<Thread, Throwable>> exceptions;
this.stopWatch.start();
try {
exceptions = analysis.start();
} finally {
this.stopWatch.end();
}
assertNotNull(exceptions);
assertEquals(0, exceptions.size());
analysis.executeBlocking();
this.stopWatch.end();
assertEquals(6541, configuration.getElementCollection().size());
......
......@@ -71,7 +71,7 @@ public class ChwHomeTcpTraceReadingTest {
this.stopWatch.start();
try {
analysis.start();
analysis.executeBlocking();
} finally {
this.stopWatch.end();
}
......
......@@ -68,7 +68,7 @@ public class ChwHomeTcpTraceReconstructionAnalysisTest {
this.stopWatch.start();
try {
analysis.start();
analysis.executeBlocking();
} finally {
this.stopWatch.end();
}
......
......@@ -66,7 +66,7 @@ public class ChwHomeTraceReconstructionAnalysisTest {
this.stopWatch.start();
try {
analysis.start();
analysis.executeBlocking();
} finally {
this.stopWatch.end();
}
......@@ -96,7 +96,7 @@ public class ChwHomeTraceReconstructionAnalysisTest {
this.stopWatch.start();
try {
analysis.start();
analysis.executeBlocking();
} finally {
this.stopWatch.end();
}
......@@ -126,7 +126,7 @@ public class ChwHomeTraceReconstructionAnalysisTest {
this.stopWatch.start();
try {
analysis.start();
analysis.executeBlocking();
} finally {
this.stopWatch.end();
}
......
......@@ -61,7 +61,7 @@ public class ChwWorkTcpTraceReconstructionAnalysisTest {
this.stopWatch.start();
try {
analysis.start();
analysis.executeBlocking();
} finally {
this.stopWatch.end();
}
......
......@@ -64,7 +64,7 @@ class ChwWorkTraceReconstructionAnalysisTest {
this.stopWatch.start();
try {
analysis.start();
analysis.executeBlocking();
} finally {
this.stopWatch.end();
}
......@@ -92,7 +92,7 @@ class ChwWorkTraceReconstructionAnalysisTest {
this.stopWatch.start();
try {
analysis.start();
analysis.executeBlocking();
} finally {
this.stopWatch.end();
}
......@@ -122,7 +122,7 @@ class ChwWorkTraceReconstructionAnalysisTest {
this.stopWatch.start();
try {
analysis.start();
analysis.executeBlocking();
} finally {
this.stopWatch.end();
}
......
......@@ -78,7 +78,7 @@ public class ChwHomeTcpTraceReconstructionAnalysisWithThreadsTest {
this.stopWatch.start();
try {
analysis.start();
analysis.executeBlocking();
} finally {
this.stopWatch.end();
}
......
......@@ -93,7 +93,7 @@ public class ChwWorkTcpTraceReconstructionAnalysisWithThreadsTest {
this.stopWatch.start();
try {
analysis.start();
analysis.executeBlocking();
} finally {
this.stopWatch.end();
}
......
......@@ -107,7 +107,7 @@ public class ChwWorkTcpTraceReductionAnalysisWithThreadsTest {
this.stopWatch.start();
try {
analysis.start();
analysis.executeBlocking();
} finally {
this.stopWatch.end();
}
......
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