Skip to content

0.5.0

Compare
Choose a tag to compare
@osoykan osoykan released this 09 Oct 08:33
· 684 commits to main since this release

What's Changed

Breaking Changes

  • simplify the api of systems and introcude deprecations by @osoykan in #214

Kafka

  • Support for assertion Key, Headers and Topic of a Kafka Message by @osoykan in #215

With this change,

  • You will have breaking changes. Kafka assertions are unified.

shouldBeConsumedOnCondition -> shouldBeConsumed
shouldBePublishedOnCondition -> shouldBePublished

  • You don't need to write actual -> when you start an assertion, it is already in the scope and accessible with the same name.
    Easiest way of making it work is just deleting the arrow(actual ->).

  • You can also assert your headers and keys for the messages that you've published.

 kafka {
     publish("trendyol.stove.service.product.create.0", createProductCommand)
     shouldBePublished<ProductCreatedEvent> {
         actual.id == createProductCommand.id &&
             actual.name == createProductCommand.name &&
             actual.supplierId == createProductCommand.supplierId &&
             metadata.headers["X-UserEmail"] == "[email protected]"
     }
 }

Package Bumps

  • fix(deps): update dependency com.couchbase.client:java-client to v3.4.10 by @renovate in #211
  • fix(deps): update dependency com.couchbase.client:metrics-micrometer to v0.4.10 by @renovate in #212
  • fix(deps): update dependency org.wiremock:wiremock-standalone to v3.0.4 by @renovate in #213
  • fix(deps): update dependency co.elastic.clients:elasticsearch-java to v8.10.0 by @renovate in #217
  • fix(deps): update dependency io.projectreactor:reactor-core to v3.5.10 by @renovate in #216
  • fix(deps): update koin to v3.5.0 by @renovate in #218
  • fix(deps): update spring core to v5.3.30 by @renovate in #219
  • fix(deps): update koin to v3.5.1 by @renovate in #220
  • fix(deps): update dependency org.wiremock:wiremock-standalone to v3.1.0 by @renovate in #221
  • fix(deps): update dependency co.elastic.clients:elasticsearch-java to v8.10.1 by @renovate in #222
  • chore(deps): update spring boot to v2.7.16 by @renovate in #223
  • fix(deps): update dependency co.elastic.clients:elasticsearch-java to v8.10.2 by @renovate in #224
  • chore(deps): update gradle/gradle-build-action action to v2.8.1 by @renovate in #225
  • fix(deps): update dependency org.wiremock:wiremock-standalone to v3.2.0 by @renovate in #226
  • chore(deps): update gradle/gradle-build-action action to v2.9.0 by @renovate in #227
  • fix(deps): update testcontainers-java monorepo to v1.19.1 by @renovate in #228
  • fix(deps): update dependency org.apache.kafka:kafka-clients to v3.6.0 by @renovate in #229
  • chore(deps): update dependency gradle to v8.4 by @renovate in #232
  • fix(deps): update dependency com.couchbase.client:metrics-micrometer to v0.4.11 by @renovate in #231
  • fix(deps): update dependency com.couchbase.client:java-client to v3.4.11 by @renovate in #230
  • fix(deps): update ktor to v2.3.5 by @renovate in #233
  • chore(deps): update plugin kotlinter to v4 by @renovate in #234

Full Changelog: 0.4.0...0.5.0