Skip to content
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* MIT License
*
* Copyright (c) 2025 bakdata
* Copyright (c) 2026 bakdata
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -155,7 +155,7 @@ public DeserializerConfig defaultSerializationConfig() {

@Test
@ExpectSystemExitWithStatus(1)
void shouldExitWithErrorCodeOnInconsistentAppId() {
void shouldExitWithErrorCodeOnInconsistentGroupId() {
new KafkaConsumerApplication<>() {
@Override
public ConsumerApp createApp() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void run() {

@Test
@ExpectSystemExitWithStatus(1)
void shouldExitWithErrorCodeOnInconsistentAppId() {
void shouldExitWithErrorCodeOnInconsistentGroupId() {
new KafkaConsumerProducerApplication<>() {
@Override
public ConsumerProducerApp createApp() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public class ConsumerProducerAppConfiguration {

@Getter
private final @NonNull ConsumerProducerTopicConfig topics;
private final String uniqueAppId;
private final String uniqueGroupId;

/**
* Create a new {@code ConsumerProducerAppConfiguration} with no provided {@link #uniqueAppId}
* Create a new {@code ConsumerProducerAppConfiguration} with no provided {@link #uniqueGroupId}
*
* @param topics topics to use for app
*/
Expand All @@ -55,6 +55,6 @@ public ConsumerProducerAppConfiguration(final ConsumerProducerTopicConfig topics
* @see ConsumerProducerApp#getUniqueGroupId(ConsumerProducerAppConfiguration)
*/
public Optional<String> getUniqueGroupId() {
return Optional.ofNullable(this.uniqueAppId);
return Optional.ofNullable(this.uniqueGroupId);
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* MIT License
*
* Copyright (c) 2025 bakdata
* Copyright (c) 2026 bakdata
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -141,7 +141,7 @@ void shouldThrowIfSchemaRegistryHasBeenConfiguredDifferently() {
}

@Test
void shouldThrowIfAppIdIsInconsistent() {
void shouldThrowIfGroupIdIsInconsistent() {
final ConfiguredConsumerApp<ConsumerApp> configuredApp = new ConfiguredConsumerApp<>(new ConsumerApp() {
@Override
public ConsumerRunnable buildRunnable(final ConsumerBuilder builder) {
Expand All @@ -164,7 +164,7 @@ public String getUniqueGroupId(final ConsumerAppConfiguration configuration) {
}

@Test
void shouldThrowIfAppIdIsNull() {
void shouldThrowIfGroupIdIsNull() {
final ConfiguredConsumerApp<ConsumerApp> configuredApp = new ConfiguredConsumerApp<>(new ConsumerApp() {
@Override
public ConsumerRunnable buildRunnable(final ConsumerBuilder builder) {
Expand All @@ -187,7 +187,7 @@ public String getUniqueGroupId(final ConsumerAppConfiguration configuration) {
}

@Test
void shouldReturnConfiguredAppId() {
void shouldReturnConfiguredGroupId() {
final ConfiguredConsumerApp<ConsumerApp> configuredApp = new ConfiguredConsumerApp<>(new ConsumerApp() {
@Override
public ConsumerRunnable buildRunnable(final ConsumerBuilder builder) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void shouldThrowIfValueSerdeHasBeenConfiguredDifferently() {
}

@Test
void shouldThrowIfAppIdHasBeenConfiguredDifferently() {
void shouldThrowIfGroupIdHasBeenConfiguredDifferently() {
final ConfiguredConsumerProducerApp<ConsumerProducerApp> configuredApp =
new ConfiguredConsumerProducerApp<>(new TestApplication(), emptyTopicConfig());
final RuntimeConfiguration runtimeConfiguration = RuntimeConfiguration.create("fake")
Expand Down
Loading