This is an automated email from the ASF dual-hosted git repository.
domgarguilo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push:
new 2af8abf798 Fix WebViewsIT (#5388)
2af8abf798 is described below
commit 2af8abf79879dd42f2ce962247cfb77d4ee76516
Author: Dom G. <[email protected]>
AuthorDate: Mon Mar 10 15:18:35 2025 -0400
Fix WebViewsIT (#5388)
---
.../src/test/java/org/apache/accumulo/monitor/it/WebViewsIT.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git
a/server/monitor/src/test/java/org/apache/accumulo/monitor/it/WebViewsIT.java
b/server/monitor/src/test/java/org/apache/accumulo/monitor/it/WebViewsIT.java
index f2fd5a4712..8718272903 100644
---
a/server/monitor/src/test/java/org/apache/accumulo/monitor/it/WebViewsIT.java
+++
b/server/monitor/src/test/java/org/apache/accumulo/monitor/it/WebViewsIT.java
@@ -80,7 +80,7 @@ public class WebViewsIT extends JerseyTest {
config.register(WebViewsIT.HashMapWriter.class);
}
- private static AtomicReference<Monitor> monitor = new
AtomicReference<>(null);
+ private static final AtomicReference<Monitor> monitor = new
AtomicReference<>(null);
@BeforeAll
public static void createMocks() throws TableNotFoundException {
@@ -123,10 +123,9 @@ public class WebViewsIT extends JerseyTest {
* a registered MessageBodyWriter capable of serializing/writing the object
returned from your
* endpoint. We're using a simple stubbed out inner class HashMapWriter for
this.
*
- * @throws Exception not expected
*/
@Test
- public void testGetTablesConstraintPassing() throws Exception {
+ public void testGetTablesConstraintPassing() {
// Using the mocks we can verify that the getModel method gets called via
debugger
// however it's difficult to continue to mock through the jersey MVC code
for the properly built
// response.
@@ -134,7 +133,7 @@ public class WebViewsIT extends JerseyTest {
Response output = target("tables/foo").request().get();
assertEquals(200, output.getStatus(), "should return status 200");
String responseBody = output.readEntity(String.class);
- assertTrue(responseBody.contains("tableID=foo") &&
responseBody.contains("table=bar"));
+ assertTrue(responseBody.contains("tableId=foo") &&
responseBody.contains("table=bar"));
}
/**