JAVA-29164 | fixing failing test (#15401)
This commit is contained in:
parent
ec8fe08bb8
commit
7f894fe513
@ -181,6 +181,7 @@
|
|||||||
</build>
|
</build>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
<jackson.version>2.13.4</jackson.version>
|
||||||
<kafka.version>3.4.0</kafka.version>
|
<kafka.version>3.4.0</kafka.version>
|
||||||
<testcontainers-kafka.version>1.19.3</testcontainers-kafka.version>
|
<testcontainers-kafka.version>1.19.3</testcontainers-kafka.version>
|
||||||
<testcontainers-jupiter.version>1.15.3</testcontainers-jupiter.version>
|
<testcontainers-jupiter.version>1.15.3</testcontainers-jupiter.version>
|
||||||
|
@ -29,7 +29,7 @@ import java.util.List;
|
|||||||
import static org.junit.Assert.assertArrayEquals;
|
import static org.junit.Assert.assertArrayEquals;
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
public class BackupCreatorIntegrationTest {
|
public class BackupCreatorUnitTest {
|
||||||
public static ObjectMapper mapper;
|
public static ObjectMapper mapper;
|
||||||
|
|
||||||
@Before
|
@Before
|
@ -10,7 +10,7 @@ import java.util.Arrays;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
public class WordCapitalizerIntegrationTest {
|
public class WordCapitalizerUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenDataSet_whenExecuteWordCapitalizer_thenReturnCapitalizedWords() throws Exception {
|
public void givenDataSet_whenExecuteWordCapitalizer_thenReturnCapitalizedWords() throws Exception {
|
@ -21,8 +21,7 @@ import org.junit.Ignore;
|
|||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class KafkaStreamsLiveTest {
|
public class KafkaStreamsLiveTest {
|
||||||
private String bootstrapServers = "localhost:9092";
|
private final String bootstrapServers = "localhost:9092";
|
||||||
private Path stateDirectory;
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore("it needs to have kafka broker running on local")
|
@Ignore("it needs to have kafka broker running on local")
|
||||||
@ -44,8 +43,8 @@ public class KafkaStreamsLiveTest {
|
|||||||
|
|
||||||
// Use a temporary directory for storing state, which will be automatically removed after the test.
|
// Use a temporary directory for storing state, which will be automatically removed after the test.
|
||||||
try {
|
try {
|
||||||
this.stateDirectory = Files.createTempDirectory("kafka-streams");
|
Path stateDirectory = Files.createTempDirectory("kafka-streams");
|
||||||
streamsConfiguration.put(StreamsConfig.STATE_DIR_CONFIG, this.stateDirectory.toAbsolutePath()
|
streamsConfiguration.put(StreamsConfig.STATE_DIR_CONFIG, stateDirectory.toAbsolutePath()
|
||||||
.toString());
|
.toString());
|
||||||
} catch (final IOException e) {
|
} catch (final IOException e) {
|
||||||
throw new UncheckedIOException("Cannot create temporary directory", e);
|
throw new UncheckedIOException("Cannot create temporary directory", e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user