-
Deprecated Classes
-
Deprecated MethodsMethodDescriptionUse
assertEquals(double expected, double actual, double delta)insteaduse assertArrayEqualsUseassertEquals(String message, double expected, double actual, double delta)insteaduse assertArrayEqualsuseorg.hamcrest.MatcherAssert.assertThat()useorg.hamcrest.MatcherAssert.assertThat()use storedLocally()Please useCoreMatchers.both(Matcher)instead.Please useCoreMatchers.containsString(String)instead.Please useCoreMatchers.either(Matcher)instead.Please useCoreMatchers.everyItem(Matcher)instead.Please useCoreMatchers.hasItem(Matcher)instead.Please useCoreMatchers.hasItem(Object)instead.Please useCoreMatchers.hasItems(Matcher...)instead.Please useCoreMatchers.hasItems(Object...)instead.AssertionErrors are handled by default since JUnit 4.12. Just like in JUnit <= 4.10.AssumptionViolatedExceptions are handled by default since JUnit 4.12. Just like in JUnit <= 4.10.Since 4.13Assert.assertThrowscan be used to verify that your code throws a specific exception.This is used only by the Theories runner, and does not use all the generic type info that it ought to. It will be replaced with a forthcoming ParameterSignature#canAcceptResultOf(FrameworkMethod) once Theories moves to junit-contrib.Please useParentRunner(org.junit.runners.model.TestClass).
-
Deprecated ConstructorsConstructorDescriptionsince 4.13.will be private soon.Please use
AssumptionViolatedExceptioninstead.Please useAssumptionViolatedExceptioninstead.Please useAssumptionViolatedExceptioninstead.Please useAssumptionViolatedExceptioninstead.Please useAssumptionViolatedExceptioninstead.will be private soon.
Assertinstead.