Skip to content

fix typo and test case assert not correct in higher version of JDK#2089

Merged
liubao68 merged 1 commit into
apache:masterfrom
liubao68:liubao
Nov 27, 2020
Merged

fix typo and test case assert not correct in higher version of JDK#2089
liubao68 merged 1 commit into
apache:masterfrom
liubao68:liubao

Conversation

@liubao68

Copy link
Copy Markdown
Contributor

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [SCB-XXX] Fixes bug in ApproximateQuantiles, where you replace SCB-XXX with the appropriate JIRA issue.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install -Pit to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

Assert.assertNotNull(null);
} catch (Exception e) {
Assert.assertEquals("java.lang.IllegalArgumentException", e.getClass().getName());
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Throwable throwable = Assertions.catchThrowable(()->SSLManager.createSSLContext(option, custom));
assertThat(throwable).isInstanceOf(IllegalArgumentException.class);

异常的assert场景,用assertJ会简单清晰得多

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK . Will try that in the future.

@liubao68 liubao68 merged commit b7a9cb4 into apache:master Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants