Merge pull request #9678 from Priyanshi Goyal

* gh-9678:
  Polish "Deprecate JsonContent.assertThat()"
  Deprecate JsonContent.assertThat()
This commit is contained in:
Andy Wilkinson 2017-07-27 10:51:14 +01:00
commit b190a0779d
1 changed files with 8 additions and 0 deletions

View File

@ -52,7 +52,15 @@ public final class JsonContent<T> implements AssertProvider<JsonContentAssert> {
this.json = json;
}
/**
* Use AssertJ's {@link org.assertj.core.api.Assertions#assertThat assertThat}
* instead.
*
* @deprecated in favor of AssertJ's {@link org.assertj.core.api.Assertions#assertThat
* assertThat}
*/
@Override
@Deprecated
public JsonContentAssert assertThat() {
return new JsonContentAssert(this.resourceLoadClass, this.json);
}