Skip to content

Commit

Permalink
JAVA-29164 | fixing failing test (eugenp#15401)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanoPiazzolla authored Dec 11, 2023
1 parent ec8fe08 commit 7f894fe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions apache-kafka/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
</build>

<properties>
<jackson.version>2.13.4</jackson.version>
<kafka.version>3.4.0</kafka.version>
<testcontainers-kafka.version>1.19.3</testcontainers-kafka.version>
<testcontainers-jupiter.version>1.15.3</testcontainers-jupiter.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;

public class BackupCreatorIntegrationTest {
public class BackupCreatorUnitTest {
public static ObjectMapper mapper;

@Before
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.util.List;
import java.util.stream.Collectors;

public class WordCapitalizerIntegrationTest {
public class WordCapitalizerUnitTest {

@Test
public void givenDataSet_whenExecuteWordCapitalizer_thenReturnCapitalizedWords() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
import org.junit.Test;

public class KafkaStreamsLiveTest {
private String bootstrapServers = "localhost:9092";
private Path stateDirectory;
private final String bootstrapServers = "localhost:9092";

@Test
@Ignore("it needs to have kafka broker running on local")
Expand All @@ -44,8 +43,8 @@ public void shouldTestKafkaStreams() throws InterruptedException {

// Use a temporary directory for storing state, which will be automatically removed after the test.
try {
this.stateDirectory = Files.createTempDirectory("kafka-streams");
streamsConfiguration.put(StreamsConfig.STATE_DIR_CONFIG, this.stateDirectory.toAbsolutePath()
Path stateDirectory = Files.createTempDirectory("kafka-streams");
streamsConfiguration.put(StreamsConfig.STATE_DIR_CONFIG, stateDirectory.toAbsolutePath()
.toString());
} catch (final IOException e) {
throw new UncheckedIOException("Cannot create temporary directory", e);
Expand Down

0 comments on commit 7f894fe

Please sign in to comment.