diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-05-12 10:25:43 +0200 |
|---|---|---|
| committer | Georgios Andreadis <info@gandreadis.com> | 2020-05-12 10:25:43 +0200 |
| commit | 7e42d8e1a1ec23058af416548545fb06cfa3faa4 (patch) | |
| tree | 6c981107503105707f4419570c4263baa04f878e /opendc/opendc-format/src/test/kotlin | |
| parent | db934d9cebe1d48e148e54aca507e2c44a9bc946 (diff) | |
Add SWF trace reading capability
Diffstat (limited to 'opendc/opendc-format/src/test/kotlin')
| -rw-r--r-- | opendc/opendc-format/src/test/kotlin/com/atlarge/opendc/format/trace/swf/SwfTraceReaderTest.kt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/opendc/opendc-format/src/test/kotlin/com/atlarge/opendc/format/trace/swf/SwfTraceReaderTest.kt b/opendc/opendc-format/src/test/kotlin/com/atlarge/opendc/format/trace/swf/SwfTraceReaderTest.kt new file mode 100644 index 00000000..0693c560 --- /dev/null +++ b/opendc/opendc-format/src/test/kotlin/com/atlarge/opendc/format/trace/swf/SwfTraceReaderTest.kt @@ -0,0 +1,14 @@ +package com.atlarge.opendc.format.trace.swf + +import org.junit.jupiter.api.Assertions.assertEquals +import org.junit.jupiter.api.Test +import java.io.File + +class SwfTraceReaderTest { + @Test + internal fun testParseSwf() { + val reader = SwfTraceReader(File(SwfTraceReaderTest::class.java.getResource("/swf_trace.txt").toURI())) + val entry = reader.next() + assertEquals(entry.submissionTime, 0) + } +} |
