Package org.assertj.core.internal

Examples of org.assertj.core.internal.ComparisonStrategy


  @Test
  public void should_create_AssertionError_with_message_differentiating_expected_and_actual_persons_even_if_a_comparator_based_comparison_strategy_is_used() {
  Person actual = new Person("Jake", 43);
  Person expected = new Person("Jake", 47);
  ComparisonStrategy ageComparisonStrategy = new ComparatorBasedComparisonStrategy(new PersonComparator());
  shouldBeEqual = (ShouldBeEqual) shouldBeEqual(actual, expected, ageComparisonStrategy,
                                                new StandardRepresentation());
  shouldBeEqual.descriptionFormatter = mock(DescriptionFormatter.class);
  when(shouldBeEqual.descriptionFormatter.format(description)).thenReturn(formattedDescription);
View Full Code Here

TOP

Related Classes of org.assertj.core.internal.ComparisonStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.