diff options
| author | Stefano Germano <stefanogermano0@gmail.com> | 2020-10-19 16:15:25 +0200 |
|---|---|---|
| committer | Stefano Germano <stefanogermano0@gmail.com> | 2020-10-19 16:15:25 +0200 |
| commit | b4f19557e648d96fc1a87677ea3c02143a525cbd (patch) | |
| tree | b167adbd9605e8f3b11e0bc3271be88b1cf0d180 /src/test/scala | |
| parent | 014fda84a13620b64597f4bbd6d27afcb929e0f4 (diff) | |
| download | RSAComb-b4f19557e648d96fc1a87677ea3c02143a525cbd.tar.gz RSAComb-b4f19557e648d96fc1a87677ea3c02143a525cbd.zip | |
More details in build.sbt and updated dependencies
While updating the dependencies, I noticed that v3.2 of scalatest is very different from v3.1 (https://www.scalatest.org/release_notes/3.2.0). Therefore, I also needed to update the test files.
But, there is a "too many arguments" error that needs to be solved (I do not know why it was working before).
Diffstat (limited to 'src/test/scala')
| -rw-r--r-- | src/test/scala/rsacomb/CanonicalModelSpec.scala | 7 | ||||
| -rw-r--r-- | src/test/scala/rsacomb/OWLAxiomSpec.scala | 6 | ||||
| -rw-r--r-- | src/test/scala/rsacomb/OWLClassSpec.scala | 6 |
3 files changed, 13 insertions, 6 deletions
diff --git a/src/test/scala/rsacomb/CanonicalModelSpec.scala b/src/test/scala/rsacomb/CanonicalModelSpec.scala index d783b12..c528328 100644 --- a/src/test/scala/rsacomb/CanonicalModelSpec.scala +++ b/src/test/scala/rsacomb/CanonicalModelSpec.scala | |||
| @@ -1,7 +1,10 @@ | |||
| 1 | package rsacomb | 1 | package rsacomb |
| 2 | 2 | ||
| 3 | import java.io.File | 3 | import java.io.File |
| 4 | import org.scalatest.{FlatSpec, Matchers, LoneElement} | 4 | import org.scalatest.LoneElement |
| 5 | import org.scalatest.flatspec.AnyFlatSpec | ||
| 6 | import org.scalatest.matchers.should.Matchers | ||
| 7 | |||
| 5 | 8 | ||
| 6 | import org.semanticweb.owlapi.model._ | 9 | import org.semanticweb.owlapi.model._ |
| 7 | import uk.ac.manchester.cs.owl.owlapi._ | 10 | import uk.ac.manchester.cs.owl.owlapi._ |
| @@ -48,7 +51,7 @@ object Ontology1_CanonicalModelSpec { | |||
| 48 | } // object OWLAxiomSpec | 51 | } // object OWLAxiomSpec |
| 49 | 52 | ||
| 50 | class Ontology1_CanonicalModelSpec | 53 | class Ontology1_CanonicalModelSpec |
| 51 | extends FlatSpec | 54 | extends AnyFlatSpec |
| 52 | with Matchers | 55 | with Matchers |
| 53 | with LoneElement { | 56 | with LoneElement { |
| 54 | 57 | ||
diff --git a/src/test/scala/rsacomb/OWLAxiomSpec.scala b/src/test/scala/rsacomb/OWLAxiomSpec.scala index c5b8763..a389242 100644 --- a/src/test/scala/rsacomb/OWLAxiomSpec.scala +++ b/src/test/scala/rsacomb/OWLAxiomSpec.scala | |||
| @@ -1,7 +1,9 @@ | |||
| 1 | package rsacomb | 1 | package rsacomb |
| 2 | 2 | ||
| 3 | import java.util.ArrayList | 3 | import java.util.ArrayList |
| 4 | import org.scalatest.{FlatSpec, Matchers, LoneElement} | 4 | import org.scalatest.LoneElement |
| 5 | import org.scalatest.flatspec.AnyFlatSpec | ||
| 6 | import org.scalatest.matchers.should.Matchers | ||
| 5 | 7 | ||
| 6 | import uk.ac.manchester.cs.owl.owlapi.{OWLSubClassOfAxiomImpl} | 8 | import uk.ac.manchester.cs.owl.owlapi.{OWLSubClassOfAxiomImpl} |
| 7 | import uk.ac.manchester.cs.owl.owlapi.{ | 9 | import uk.ac.manchester.cs.owl.owlapi.{ |
| @@ -168,7 +170,7 @@ object OWLAxiomSpec { | |||
| 168 | 170 | ||
| 169 | } // object OWLAxiomSpec | 171 | } // object OWLAxiomSpec |
| 170 | 172 | ||
| 171 | class OWLAxiomSpec extends FlatSpec with Matchers with LoneElement { | 173 | class OWLAxiomSpec extends AnyFlatSpec with Matchers with LoneElement { |
| 172 | 174 | ||
| 173 | // Import required data | 175 | // Import required data |
| 174 | import OWLAxiomSpec._ | 176 | import OWLAxiomSpec._ |
diff --git a/src/test/scala/rsacomb/OWLClassSpec.scala b/src/test/scala/rsacomb/OWLClassSpec.scala index d1e9fdb..74c641e 100644 --- a/src/test/scala/rsacomb/OWLClassSpec.scala +++ b/src/test/scala/rsacomb/OWLClassSpec.scala | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | package rsacomb | 1 | package rsacomb |
| 2 | 2 | ||
| 3 | import org.scalatest.{FlatSpec, Matchers, LoneElement} | 3 | import org.scalatest.LoneElement |
| 4 | import org.scalatest.flatspec.AnyFlatSpec | ||
| 5 | import org.scalatest.matchers.should.Matchers | ||
| 4 | 6 | ||
| 5 | import uk.ac.manchester.cs.owl.owlapi.{ | 7 | import uk.ac.manchester.cs.owl.owlapi.{ |
| 6 | OWLClassImpl, | 8 | OWLClassImpl, |
| @@ -99,7 +101,7 @@ object OWLClassSpec { | |||
| 99 | ) | 101 | ) |
| 100 | } // object OWLClassSpec | 102 | } // object OWLClassSpec |
| 101 | 103 | ||
| 102 | class OWLClassSpec extends FlatSpec with Matchers with LoneElement { | 104 | class OWLClassSpec extends AnyFlatSpec with Matchers with LoneElement { |
| 103 | // Import required data | 105 | // Import required data |
| 104 | import OWLClassSpec._ | 106 | import OWLClassSpec._ |
| 105 | 107 | ||
