Java 17 features (itests) (#15583)

- replace Collections by List.of and Set.of
- instanceof
- SAT warnings

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich
2023-09-13 08:06:37 +02:00
committed by GitHub
parent ab58f4ffb4
commit b3e88ae29e
15 changed files with 45 additions and 49 deletions

View File

@@ -40,7 +40,7 @@ import org.openhab.core.types.State;
* <p>
* This class tests the commands for the astro thing.
*
* @author Petar Valchev - Initial implementation
* @author Petar Valchev - Initial contribution
* @author Svilen Valkanov - Reworked to plain unit tests
* @author Christoph Weitkamp - Migrated tests to pure Java
*/

View File

@@ -37,7 +37,7 @@ import org.openhab.core.thing.binding.ThingHandlerCallback;
* <p>
* This class tests the required configuration for the astro thing.
*
* @author Petar Valchev - Initial implementation
* @author Petar Valchev - Initial contribution
* @author Svilen Valkanov - Reworked to plain unit tests, removed irrelevant tests
* @author Christoph Weitkamp - Migrated tests to pure Java
*/

View File

@@ -40,7 +40,7 @@ import org.openhab.core.types.State;
* Tests for the Astro Channels state
*
* @See {@link AstroParametrizedTestCases}
* @author Petar Valchev - Initial implementation
* @author Petar Valchev - Initial contribution
* @author Svilen Valkanov - Reworked to plain unit tests
* @author Erdoan Hadzhiyusein - Adapted the class to work with the new DateTimeType
* @author Christoph Weitkamp - Migrated tests to pure Java

View File

@@ -17,7 +17,7 @@ import java.math.BigDecimal;
/**
* Contains some test data used across different tests
*
* @author Svilen Valkanov - Initial implementation
* @author Svilen Valkanov - Initial contribution
* @author Christoph Weitkamp - Migrated tests to pure Java
*/
public final class AstroBindingTestsData {