Skip to content

Commit

Permalink
HBASE-24593 [branch-2.2] Fix the maven compilation failure for nightl…
Browse files Browse the repository at this point in the history
…y build
  • Loading branch information
infraio committed Jun 21, 2020
1 parent 1bbe250 commit df43aa1
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertThrows;
import static org.junit.Assert.fail;

import java.io.IOException;
Expand Down Expand Up @@ -69,12 +70,9 @@ public static void tearDown() throws IOException {
@Test
public void testPrivateMethodExecutedInEventLoop() throws IllegalAccessException {
// make sure the test is executed with "-ea"
try {
assertThrows(AssertionError.class, () -> {
assert false;
fail();
} catch (AssertionError e) {
// expected
}
});
for (Method method : NettyRpcConnection.class.getDeclaredMethods()) {
if (Modifier.isPrivate(method.getModifiers()) && !method.getName().contains("$")) {
LOG.info("checking {}", method);
Expand Down

0 comments on commit df43aa1

Please sign in to comment.