Commit 2279098b authored by Ihrig, Arvid Conrad (ari)'s avatar Ihrig, Arvid Conrad (ari)
Browse files

Integrated Pipeline: moved matchers for test suites to a dedicated sub-package

parent a23932a4
......@@ -9,6 +9,7 @@ import eu.nomad_lab.TreeType
import eu.nomad_lab.integrated_pipeline.io_integrations.ArchiveHandler
import eu.nomad_lab.integrated_pipeline.messages.FileParsingResultSignal
import eu.nomad_lab.integrated_pipeline.stream_components.ArchiveCleanUpFlow
import eu.nomad_lab.integrated_pipeline_tests.matchers.StreamAssertions
import eu.nomad_lab.parsers.ParseResult
import org.mockito.Mockito._
import org.scalatest.mockito.MockitoSugar
......
......@@ -9,6 +9,7 @@ import eu.nomad_lab.TreeType
import eu.nomad_lab.integrated_pipeline.io_integrations.ArchiveHandler
import eu.nomad_lab.integrated_pipeline.messages.{ FileParsingTask, FileParsingTaskSignal }
import eu.nomad_lab.integrated_pipeline.stream_components.ArchiveUnpackingFlow
import eu.nomad_lab.integrated_pipeline_tests.matchers.{ StreamAssertions, FileParsingTaskMatchers }
import org.mockito.ArgumentMatchers._
import org.mockito.Mockito._
import org.scalatest.mockito.MockitoSugar
......
......@@ -3,17 +3,18 @@ package eu.nomad_lab.integrated_pipeline_tests
import java.nio.file.Paths
import eu.nomad_lab.TreeType
import eu.nomad_lab.integrated_pipeline.{ CalculationParsingEngine, EventListener }
import eu.nomad_lab.integrated_pipeline.messages._
import eu.nomad_lab.integrated_pipeline.{ CalculationParsingEngine, EventListener }
import eu.nomad_lab.integrated_pipeline_tests.matchers.{ CalculationParserEventMatchers, FileParsingResultMatchers }
import eu.nomad_lab.meta.KnownMetaInfoEnvs
import eu.nomad_lab.parsers.ParseResult.ParseResult
import eu.nomad_lab.parsers._
import org.json4s.JsonAST.{ JInt, JObject, JString }
import org.mockito.{ ArgumentCaptor, Mockito }
import org.mockito.ArgumentMatchers.{ eq => raw, _ }
import org.mockito.Mockito._
import org.mockito.invocation.InvocationOnMock
import org.mockito.stubbing.Answer
import org.mockito.{ ArgumentCaptor, Mockito }
import org.scalatest.mockito.MockitoSugar
import org.scalatest.{ Matchers, WordSpec }
......
......@@ -9,6 +9,7 @@ import eu.nomad_lab.TreeType
import eu.nomad_lab.integrated_pipeline.CalculationParsingEngine
import eu.nomad_lab.integrated_pipeline.messages._
import eu.nomad_lab.integrated_pipeline.stream_components._
import eu.nomad_lab.integrated_pipeline_tests.matchers.{ FileParsingResultMatchers, StreamAssertions }
import eu.nomad_lab.parsers.ParseResult
import org.mockito.ArgumentMatchers._
import org.mockito.Mockito
......
......@@ -5,6 +5,7 @@ import akka.stream.scaladsl.{ GraphDSL, RunnableGraph }
import akka.stream.testkit.scaladsl.{ TestSink, TestSource }
import eu.nomad_lab.integrated_pipeline.MessageProcessor
import eu.nomad_lab.integrated_pipeline.stream_components.MessageProcessorFlow
import eu.nomad_lab.integrated_pipeline_tests.matchers.StreamAssertions
import org.mockito.ArgumentMatchers._
import org.mockito.Mockito
import org.mockito.Mockito._
......
......@@ -4,6 +4,7 @@ import java.nio.file.Paths
import eu.nomad_lab.integrated_pipeline.messages._
import eu.nomad_lab.integrated_pipeline.{ EventListener, OutputType, ParsingResultsProcessingManager, ParsingResultsProcessor }
import eu.nomad_lab.integrated_pipeline_tests.matchers.{ FileParsingResultMatchers, FileTreeParsingResultMatchers, ResultWriterEventMatchers }
import eu.nomad_lab.parsers.ParseResult
import org.mockito.ArgumentMatchers.any
import org.mockito.Mockito._
......
......@@ -2,6 +2,7 @@ package eu.nomad_lab.integrated_pipeline_tests
import eu.nomad_lab.integrated_pipeline.messages._
import eu.nomad_lab.integrated_pipeline.{ EventListener, ParsingTaskGenerator, TreeParser }
import eu.nomad_lab.integrated_pipeline_tests.matchers.{ TreeParserEventMatchers, FileParsingTaskMatchers }
import org.mockito.ArgumentMatchers._
import org.mockito.Mockito._
import org.mockito.invocation.InvocationOnMock
......
package eu.nomad_lab.integrated_pipeline_tests
package eu.nomad_lab.integrated_pipeline_tests.matchers
import org.scalatest.matchers.{ HavePropertyMatchResult, HavePropertyMatcher }
......
package eu.nomad_lab.integrated_pipeline_tests
package eu.nomad_lab.integrated_pipeline_tests.matchers
import java.nio.file.{ Path, Paths }
......@@ -7,7 +7,7 @@ import eu.nomad_lab.integrated_pipeline.OutputType.OutputType
import eu.nomad_lab.integrated_pipeline.messages._
import eu.nomad_lab.parsers.ParseResult.ParseResult
import eu.nomad_lab.parsers.{ FinishedParsingSession, ParseEvent, StartedParsingSession }
import org.scalatest.matchers.{ HavePropertyMatchResult, HavePropertyMatcher }
import org.scalatest.matchers.HavePropertyMatcher
object FileTreeTaskMatchers {
def basePath(expectedValue: Path): HavePropertyMatcher[FileTreeScanTask, Path] =
......
package eu.nomad_lab.integrated_pipeline_tests
package eu.nomad_lab.integrated_pipeline_tests.matchers
import akka.stream.testkit.TestSubscriber
import akka.stream.testkit.TestSubscriber.{ OnComplete, OnError, OnNext, OnSubscribe }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment