Skip to content

Commit

Permalink
YARN-11122:checkstyle fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
slfan1989 committed May 6, 2022
1 parent 2192269 commit 38b5d97
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,7 @@ public void testGetClusterMetricsRequest() throws Exception {
LOG.info("Test FederationClientInterceptor : Get Cluster Metrics request");
// null request
LambdaTestUtils.intercept(YarnException.class,
"Missing getClusterMetrics request." ,
() -> interceptor.getClusterMetrics(null));
"Missing getClusterMetrics request.", () -> interceptor.getClusterMetrics(null));

// normal request.
GetClusterMetricsResponse response =
Expand Down Expand Up @@ -644,6 +643,9 @@ public void testGetApplicationsApplicationStateNotExists() throws Exception{
}

/**
* This test validates that if the request is null,
* calling the interface for obtaining cluster metrics should throw an exception,
* verifying that the exception is as expected.
*
* @throws YarnException
* @throws IOException
Expand Down

0 comments on commit 38b5d97

Please sign in to comment.