Skip to content

Commit

Permalink
path
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliaksei Bialiauski authored and Aliaksei Bialiauski committed Mar 22, 2023
1 parent 37b1da0 commit 4fed62a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ final class ConsumerXmlMapParams extends XmlMapParams {
/**
* Ctor.
*
* @param configuration XML config.
* @param config XML config.
*/
ConsumerXmlMapParams(final XML configuration) {
super(configuration, KfCustomer.CONSUMER);
ConsumerXmlMapParams(final XML config) {
super(config, KfCustomer.CONSUMER);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ final class ProducerXmlMapParams extends XmlMapParams {
/**
* Ctor.
*
* @param configuration XML config.
* @param config XML config.
*/
ProducerXmlMapParams(final XML configuration) {
super(configuration, KfCustomer.PRODUCER);
ProducerXmlMapParams(final XML config) {
super(config, KfCustomer.PRODUCER);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import com.jcabi.xml.XML;
import com.jcabi.xml.XMLDocument;
import io.github.eocqrs.kafka.consumer.settings.KfConsumerSettings;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Map;
Expand Down Expand Up @@ -63,7 +64,7 @@ void generatesRightConsumerBootstrapServers() throws Exception {
@Test
void generatesRightKeyDeserializer() throws Exception {
final Map<String, Object> map =
new ConsumerXmlMapParams("src/test/resources/consumer.xml")
new ConsumerXmlMapParams("consumer.xml")
.value();
MatcherAssert.assertThat(
"Consumer key.deserializer in right format",
Expand All @@ -76,7 +77,7 @@ void generatesRightKeyDeserializer() throws Exception {
void generatesRightValueDeserializer() throws Exception {
final Map<String, Object> map =
new ConsumerXmlMapParams(
new ResourceOf("src/test/resources/consumer.xml")
new ResourceOf("consumer.xml")
).value();
MatcherAssert.assertThat(
"Consumer value.deserializer in right format",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void generatesRightProducerRightBootstrapServers() throws Exception {
@Test
void generatesRightKeySerializer() throws Exception {
final Map<String, Object> map =
new ProducerXmlMapParams("src/test/resources/settings.xml")
new ProducerXmlMapParams("settings.xml")
.value();
MatcherAssert.assertThat(
"Producer key.serializer in right format",
Expand All @@ -77,7 +77,7 @@ void generatesRightValueSerializer() throws Exception {
final Map<String, Object> map =
new ProducerXmlMapParams(
new ResourceOf(
"src/test/resources/settings.xml"
"settings.xml"
)
).value();
MatcherAssert.assertThat(
Expand Down

1 comment on commit 4fed62a

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on 4fed62a Mar 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 154-3e7b6613 disappeared from src/main/java/io/github/eocqrs/kafka/parameters/XmlMapParams.java), that's why I closed #163. Please, remember that the puzzle was not necessarily removed in this particular commit. Maybe it happened earlier, but we discovered this fact only now.

Please sign in to comment.