Commit 9e5e9ac 1 parent 1fcf88d commit 9e5e9ac Copy full SHA for 9e5e9ac
File tree 1 file changed +3
-4
lines changed
server/monitor/src/test/java/org/apache/accumulo/monitor/it
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ protected void configureClient(ClientConfig config) {
80
80
config .register (WebViewsIT .HashMapWriter .class );
81
81
}
82
82
83
- private static AtomicReference <Monitor > monitor = new AtomicReference <>(null );
83
+ private static final AtomicReference <Monitor > monitor = new AtomicReference <>(null );
84
84
85
85
@ BeforeAll
86
86
public static void createMocks () throws TableNotFoundException {
@@ -123,18 +123,17 @@ public void testGetTablesConstraintViolations() {
123
123
* a registered MessageBodyWriter capable of serializing/writing the object returned from your
124
124
* endpoint. We're using a simple stubbed out inner class HashMapWriter for this.
125
125
*
126
- * @throws Exception not expected
127
126
*/
128
127
@ Test
129
- public void testGetTablesConstraintPassing () throws Exception {
128
+ public void testGetTablesConstraintPassing () {
130
129
// Using the mocks we can verify that the getModel method gets called via debugger
131
130
// however it's difficult to continue to mock through the jersey MVC code for the properly built
132
131
// response.
133
132
// Our silly HashMapWriter registered in the configure method gets wired in and used here.
134
133
Response output = target ("tables/foo" ).request ().get ();
135
134
assertEquals (200 , output .getStatus (), "should return status 200" );
136
135
String responseBody = output .readEntity (String .class );
137
- assertTrue (responseBody .contains ("tableID =foo" ) && responseBody .contains ("table=bar" ));
136
+ assertTrue (responseBody .contains ("tableId =foo" ) && responseBody .contains ("table=bar" ));
138
137
}
139
138
140
139
/**
You can’t perform that action at this time.
0 commit comments