Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: changing the file name #1848

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/modules/java/pages/access-control.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ When running integration tests, ACLs are disabled by default but can be explicit

[source, java]
----
include::example$java-spring-eventsourced-counter/src/it/java/com/example/TestKitConfig.java[tags=class;acls]
include::example$java-spring-eventsourced-counter/src/it/java/com/example/TestKitConfiguration.java[tags=class;acls]
----
<1> Using the DEFAULT `Settings` and enabling ACL.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ TIP: In the example above we take advantage of the TestKit to serialize / deseri
Before running your test, make sure to configure the TestKit correctly.

[source, java]
.src/it/java/com/example/TestKitConfiguration.java
----
include::example$java-spring-eventsourced-counter/src/it/java/com/example/TestKitConfig.java[tags=class;eventing-config]
include::example$java-spring-eventsourced-counter/src/it/java/com/example/TestKitConfiguration.java[tags=class;eventing-config]
----
<1> Mock incoming messages from the `counter-commands` topic.
<2> Mock outgoing messages from the `counter-events` topic.
Expand Down Expand Up @@ -267,7 +268,7 @@ NOTE: Despite the example, you are neither forced to clear all topics nor to do
To run an integration test against a real instance of Google PubSub (or its Emulator) or Kafka, use the TestKit settings to override the default eventing support, as shown below:

[source,java]
.src/it/java/com/example/TestkitConfig.java
.src/it/java/com/example/TestKitConfiguration.java
----
include::example$java-spring-eventsourced-counter/src/it/java/com/example/TestKitConfig.java[tags=class;pubsub]
include::example$java-spring-eventsourced-counter/src/it/java/com/example/TestKitConfiguration.java[tags=class;pubsub]
----
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@ActiveProfiles("with-mocked-eventing")
// tag::class[]
@SpringBootTest(classes = Main.class)
@Import(TestKitConfig.class)
@Import(TestKitConfiguration.class)
public class CounterIntegrationTest extends KalixIntegrationTestKitSupport { // <1>

// end::class[]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.example;

import com.example.actions.CounterCommandFromTopicAction;
import kalix.javasdk.testkit.KalixTestKit;
import kalix.spring.testkit.KalixIntegrationTestKitSupport;
import org.hamcrest.core.IsEqual;
import org.junit.jupiter.api.Test;
Expand All @@ -24,7 +23,7 @@

// tag::class[]
@SpringBootTest(classes = Main.class)
@Import(TestKitConfig.class)
@Import(TestKitConfiguration.class)
@ActiveProfiles("with-pubsub")
public class CounterIntegrationWithRealPubSubTest extends KalixIntegrationTestKitSupport { // <1>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// tag::class[]
@Configuration
public class TestKitConfig {
public class TestKitConfiguration {
// end::class[]

@Profile("with-mocked-eventing")
Expand Down