diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index fca989e0..5c131c73 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,5 @@ # Scala Steward: Reformat with scalafmt 3.7.0 913217c78deacdad6f729936c2d497f1f10aa677 + +# Scala Steward: Reformat with scalafmt 3.8.6 +4a6a66672d0d325dfa9a53e6eb786cc58fee0415 diff --git a/.scalafmt.conf b/.scalafmt.conf index 8663f07d..c72a16ba 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.8.5" +version = "3.8.6" style = default maxColumn = 120 align.preset = most diff --git a/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpFieldValueSpec.scala b/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpFieldValueSpec.scala index 54ecf09b..988f8522 100644 --- a/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpFieldValueSpec.scala +++ b/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpFieldValueSpec.scala @@ -43,19 +43,16 @@ class AmqpFieldValueSpec extends AnyFlatSpecLike with PropertyChecks with Matche AmqpFieldValue.unsafeFrom("fs2") should be(StringVal("fs2")) AmqpFieldValue.unsafeFrom(arrayVal.toValueWriterCompatibleJava) should be(arrayVal) } - it should "preserve the same value after a round-trip through impure and from" in { + it should "preserve the same value after a round-trip through impure and from" in forAll { (amqpHeaderVal: AmqpFieldValue) => AmqpFieldValue.unsafeFrom(amqpHeaderVal.toValueWriterCompatibleJava) == amqpHeaderVal } - } - it should "preserve the same values after a round-trip through the Java ValueReader and ValueWriter" in { + it should "preserve the same values after a round-trip through the Java ValueReader and ValueWriter" in forAll(assertThatValueIsPreservedThroughJavaWriteAndRead _) - } - it should "preserve a specific StringVal that previously failed after a round-trip through the Java ValueReader and ValueWriter" in { + it should "preserve a specific StringVal that previously failed after a round-trip through the Java ValueReader and ValueWriter" in assertThatValueIsPreservedThroughJavaWriteAndRead(StringVal("kyvmqzlbjivLqQFukljghxdowkcmjklgSeybdy")) - } it should "preserve a specific DateVal created from an Instant that has millisecond accuracy after a round-trip through the Java ValueReader and ValueWriter" in { val instant = Instant.parse("4000-11-03T20:17:29.57Z") diff --git a/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpPropertiesSpec.scala b/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpPropertiesSpec.scala index e3d3dcaa..0d6aca00 100644 --- a/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpPropertiesSpec.scala +++ b/core/src/test/scala/dev/profunktor/fs2rabbit/AmqpPropertiesSpec.scala @@ -27,12 +27,11 @@ class AmqpPropertiesSpec extends AnyFlatSpecLike with PropertyChecks with Matche import AmqpPropertiesArbs._ - it should s"convert from and to Java AMQP.BasicProperties" in { + it should s"convert from and to Java AMQP.BasicProperties" in forAll { (amqpProperties: AmqpProperties) => val basicProps = amqpProperties.asBasicProps AmqpProperties.unsafeFrom(basicProps) should be(amqpProperties) } - } it should "create an empty amqp properties" in { AmqpProperties.empty should be(