<!--
============LICENSE_START=======================================================
Copyright (C) 2018 Ericsson. All rights reserved.
- Modifications Copyright (C) 2019-2020,2022-2025 Nordix Foundation.
+ Modifications Copyright (C) 2019-2020,2022-2025 OpenInfra Foundation Europe. All rights reserved.
Modifications Copyright (C) 2020 Bell Canada.
Modifications Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
================================================================================
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.13</artifactId>
- <version>${version.kafka}</version>
+ <version>3.9.0</version>
<scope>test</scope>
</dependency>
<dependency>
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2018 Ericsson. All rights reserved.
- * Modifications Copyright (C) 2020, 2024 Nordix Foundation
+ * Modifications Copyright (C) 2020, 20242025 OpenInfra Foundation Europe. All rights reserved.
* Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
assertThatThrownBy(() -> {
String[] arguments = new String[] {"-c", "src/test/resources/parameters/unit/BadHost.json"};
handler.parse(arguments);
- }).hasMessage("Error parsing JSON parameters from configuration file "
+ }).hasMessageContaining("Error parsing JSON parameters from configuration file "
+ "\"src/test/resources/parameters/unit/BadHost.json\": "
+ "com.google.gson.stream.MalformedJsonException: "
+ "Unexpected value at line 3 column 14 path $.host");
assertThatThrownBy(() -> {
String[] arguments = new String[] {"-c", "src/test/resources/parameters/unit/BadPort.json"};
handler.parse(arguments);
- }).hasMessage("Error parsing JSON parameters from configuration file "
+ }).hasMessageContaining("Error parsing JSON parameters from configuration file "
+ "\"src/test/resources/parameters/unit/BadPort.json\": "
+ "java.lang.IllegalStateException: Expected an int "
+ "but was BOOLEAN at line 4 column 18 path $.port");
assertThatThrownBy(() -> {
String[] arguments = new String[] {"-c", "src/test/resources/parameters/unit/Empty.json"};
handler.parse(arguments);
- }).hasMessage("No parameters found in configuration file "
+ }).hasMessageContaining("No parameters found in configuration file "
+ "\"src/test/resources/parameters/unit/Empty.json\"");
assertThatThrownBy(() -> {