Fix warnings + formatting
@@ -16,6 +16,8 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.test.ExpectedException.none;
import static org.assertj.core.util.BigDecimalComparator.BIG_DECIMAL_COMPARATOR;
+import java.math.BigDecimal;
+
import org.assertj.core.api.ObjectAssert;
import org.assertj.core.test.Employee;
import org.assertj.core.test.ExpectedException;
@@ -23,8 +25,6 @@ import org.assertj.core.test.Name;
import org.junit.Rule;
import org.junit.Test;
-import java.math.BigDecimal;
-
/**
* Tests for <code>{@link ObjectAssert#extracting(String[])}</code>.
*/
@@ -37,8 +37,10 @@ public class ObjectAssert_extracting_Test {
public void should_allow_assertions_on_array_of_property_values_extracted_from_given_object() {
Employee luke = new Employee(2L, new Name("Luke", "Skywalker"), 26);
- assertThat(luke).extracting("id", "name").doesNotContainNull();
- assertThat(luke).extracting("name.first", "name.last").containsExactly("Luke", "Skywalker");
+ assertThat(luke).extracting("id", "name")
+ .doesNotContainNull();
+ assertThat(luke).extracting("name.first", "name.last")
+ .containsExactly("Luke", "Skywalker");
}
@Test
@@ -47,7 +49,8 @@ public class ObjectAssert_extracting_Test {
thrown.expectAssertionErrorWithMessageContaining("[Extracted: name.first, name.last]");
- assertThat(luke).extracting("name.first", "name.last").isEmpty();
+ assertThat(luke).extracting("name.first", "name.last")
+ .isEmpty();
}
@Test
@@ -56,7 +59,8 @@ public class ObjectAssert_extracting_Test {
thrown.expectAssertionErrorWithMessageContaining("[check luke first name]");
- assertThat(luke).as("check luke first name").extracting("name.first").isEmpty();
+ assertThat(luke).as("check luke first name").extracting("name.first")
+ .isEmpty();
}
@Test
@@ -69,6 +73,7 @@ public class ObjectAssert_extracting_Test {
.containsExactly("Obi-Wan", new BigDecimal("1.82"));
}
+ @SuppressWarnings("unused")
private static class Person {
private final String name;
