Skip to content

Commit

Permalink
Add test in UriQueryTest
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
  • Loading branch information
jbescos committed May 3, 2024
1 parent 85e9a53 commit 55e54d1
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, 2023 Oracle and/or its affiliates.
* Copyright (c) 2022, 2024 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -72,4 +72,12 @@ void testNullQueryFails() {
void testNullUriFails() {
assertThrows(NullPointerException.class, () -> UriQuery.create((URI) null));
}

@Test
void issue8710() {
UriQuery uriQuery = UriQuery.create(URI.create("http://foo/bar?a&b=c"));

assertThat(uriQuery.all("a"), hasItems());
assertThat(uriQuery.all("b"), hasItems("c"));
}
}

0 comments on commit 55e54d1

Please sign in to comment.