aboutsummaryrefslogtreecommitdiff
path: root/modules/authmodule-eIDAS-v2/src/test/java
diff options
context:
space:
mode:
authorThomas <>2022-07-01 15:58:16 +0200
committerThomas <>2022-07-01 15:58:16 +0200
commit62bea15ec763f09f2a8df1ba4266804b4e8641c3 (patch)
tree2d54b6dbf75b80cd7e1a368a8fbf1e3a9027195d /modules/authmodule-eIDAS-v2/src/test/java
parent7a5060da48321a335a078eb248dadf049b3320d0 (diff)
downloadNational_eIDAS_Gateway-62bea15ec763f09f2a8df1ba4266804b4e8641c3.tar.gz
National_eIDAS_Gateway-62bea15ec763f09f2a8df1ba4266804b4e8641c3.tar.bz2
National_eIDAS_Gateway-62bea15ec763f09f2a8df1ba4266804b4e8641c3.zip
fix(matching): add null-check in custom comperator for address-search results
Diffstat (limited to 'modules/authmodule-eIDAS-v2/src/test/java')
-rw-r--r--modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/utils/AddressSearchResultTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/utils/AddressSearchResultTest.java b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/utils/AddressSearchResultTest.java
index 89692ab7..fef157db 100644
--- a/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/utils/AddressSearchResultTest.java
+++ b/modules/authmodule-eIDAS-v2/src/test/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/test/utils/AddressSearchResultTest.java
@@ -24,6 +24,7 @@ public class AddressSearchResultTest {
buildRandom("3"),
buildRandom("1"),
buildRandom("10"),
+ buildRandom(null),
buildRandom("10-12"),
buildRandom("15")
);
@@ -34,7 +35,7 @@ public class AddressSearchResultTest {
assertArrayEquals("wrong order",
- new Object[]{"1", "2", "3", "10", "15", "10-12"},
+ new Object[]{null, "1", "2", "3", "10", "15", "10-12"},
sorted.toArray());