BAEL-3502 Apply correct formatter.
This commit is contained in:
parent
af1fd4e1b0
commit
dcccf21e0d
@ -78,10 +78,8 @@ public class ArraysDeepEqualsUnitTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void givenTwoMultidimensionalObjectTypeArrays_whenUsingEqualsAndDeepEquals_thenBothShouldReturnDifferently() {
|
void givenTwoMultidimensionalObjectTypeArrays_whenUsingEqualsAndDeepEquals_thenBothShouldReturnDifferently() {
|
||||||
Person personArray1[][] = { { new Person(1, "John", 22), new Person(2, "Mike", 23) },
|
Person personArray1[][] = { { new Person(1, "John", 22), new Person(2, "Mike", 23) }, { new Person(3, "Steve", 27), new Person(4, "Gary", 28) } };
|
||||||
{ new Person(3, "Steve", 27), new Person(4, "Gary", 28) } };
|
Person personArray2[][] = { { new Person(1, "John", 22), new Person(2, "Mike", 23) }, { new Person(3, "Steve", 27), new Person(4, "Gary", 28) } };
|
||||||
Person personArray2[][] = { { new Person(1, "John", 22), new Person(2, "Mike", 23) },
|
|
||||||
{ new Person(3, "Steve", 27), new Person(4, "Gary", 28) } };
|
|
||||||
|
|
||||||
assertFalse(Arrays.equals(personArray1, personArray2));
|
assertFalse(Arrays.equals(personArray1, personArray2));
|
||||||
assertTrue(Arrays.deepEquals(personArray1, personArray2));
|
assertTrue(Arrays.deepEquals(personArray1, personArray2));
|
||||||
@ -89,10 +87,8 @@ public class ArraysDeepEqualsUnitTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void givenTwoMultidimensionalObjectTypeArrays_whenUsingDeepEqualsFromObjectsAndArraysClasses_thenBothShouldReturnTrue() {
|
void givenTwoMultidimensionalObjectTypeArrays_whenUsingDeepEqualsFromObjectsAndArraysClasses_thenBothShouldReturnTrue() {
|
||||||
Person personArray1[][] = { { new Person(1, "John", 22), new Person(2, "Mike", 23) },
|
Person personArray1[][] = { { new Person(1, "John", 22), new Person(2, "Mike", 23) }, { new Person(3, "Steve", 27), new Person(4, "Gary", 28) } };
|
||||||
{ new Person(3, "Steve", 27), new Person(4, "Gary", 28) } };
|
Person personArray2[][] = { { new Person(1, "John", 22), new Person(2, "Mike", 23) }, { new Person(3, "Steve", 27), new Person(4, "Gary", 28) } };
|
||||||
Person personArray2[][] = { { new Person(1, "John", 22), new Person(2, "Mike", 23) },
|
|
||||||
{ new Person(3, "Steve", 27), new Person(4, "Gary", 28) } };
|
|
||||||
|
|
||||||
assertTrue(Objects.deepEquals(personArray1, personArray2));
|
assertTrue(Objects.deepEquals(personArray1, personArray2));
|
||||||
assertTrue(Arrays.deepEquals(personArray1, personArray2));
|
assertTrue(Arrays.deepEquals(personArray1, personArray2));
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.baeldung.core-java-modules</groupId>
|
<groupId>com.baeldung.core-java-modules</groupId>
|
||||||
@ -53,12 +54,8 @@
|
|||||||
<!-- <module>core-java-date-operations-1</module> --> <!-- We haven't upgraded to java 9. Fixing in BAEL-10841 -->
|
<!-- <module>core-java-date-operations-1</module> --> <!-- We haven't upgraded to java 9. Fixing in BAEL-10841 -->
|
||||||
<module>core-java-date-operations-2</module>
|
<module>core-java-date-operations-2</module>
|
||||||
<!-- We haven't upgraded to java 9. -->
|
<!-- We haven't upgraded to java 9. -->
|
||||||
<!--
|
<!-- <module>core-java-datetime-computations</module> <module>core-java-datetime-conversion</module>
|
||||||
<module>core-java-datetime-computations</module>
|
<module>core-java-datetime-java8</module> <module>core-java-datetime-string</module> -->
|
||||||
<module>core-java-datetime-conversion</module>
|
|
||||||
<module>core-java-datetime-java8</module>
|
|
||||||
<module>core-java-datetime-string</module>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<module>core-java-exceptions</module>
|
<module>core-java-exceptions</module>
|
||||||
<module>core-java-exceptions-2</module>
|
<module>core-java-exceptions-2</module>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user