@@ -0,0 +1,2479 @@
+/*%0A * Copyright 2017 Daniel Pedraza-Arcega%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.github.danzx.zekke.domain;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport org.junit.Test;%0A%0Apublic class BoundingBoxTest %7B%0A%0A    private static final BoundingBox BBOX_TESTEE = newBoundingBox();%0A%0A    @Test%0A    public void shouldEqualsBeTrueWhenSameReference() %7B%0A        assertThat(BBOX_TESTEE.equals(BBOX_TESTEE)).isTrue();%0A    %7D%0A%0A    @Test%0A    public void shouldEqualsBeTrueWhenObjectsAreNotTheSameReference() %7B%0A        assertThat(BBOX_TESTEE.equals(newBoundingBox())).isTrue();%0A    %7D%0A%0A    @Test%0A    public void shouldEqualsBeFalseWhenNull() %7B%0A        assertThat(BBOX_TESTEE.equals(null)).isFalse();%0A    %7D%0A%0A    @Test%0A    public void shouldEqualsBeFalseWhenComparingWithDifferentObject() %7B%0A        assertThat(BBOX_TESTEE.equals(new Object())).isFalse();%0A    %7D%0A%0A    @Test%0A    public void shouldEqualsBeFalseWhenAtLeastOnePropertyIsDifferent() %7B%0A        BoundingBox testBbox = new BoundingBox(BBOX_TESTEE.getBottomLeftCoordinates(), Coordinates.ofLatLng(35.89, -77.984));%0A        assertThat(BBOX_TESTEE.equals(testBbox)).isFalse();%0A%0A        testBbox = new BoundingBox(Coordinates.ofLatLng(35.89, -77.984), BBOX_TESTEE.getUpperRightCoordinates());%0A        assertThat(BBOX_TESTEE.equals(testBbox)).isFalse();%0A        %0A        testBbox = new BoundingBox(Coordinates.ofLatLng(35.89, -77.984), Coordinates.ofLatLng(35.89, -77.984));%0A        assertThat(BBOX_TESTEE.equals(testBbox)).isFalse();%0A    %7D%0A%0A    @Test%0A    public void shouldHashCodeBeEqualWhenSameObjectReference() %7B%0A        BoundingBox testBbox = newBoundingBox();%0A        assertThat(BBOX_TESTEE.hashCode()).isEqualTo(BBOX_TESTEE.hashCode()).isEqualTo(testBbox.hashCode());%0A    %7D%0A%0A    private static BoundingBox newBoundingBox() %7B%0A        return new BoundingBox(%0A                Coordinates.ofLatLng(19.054492, -98.283176), %0A                Coordinates.ofLatLng(43.9876, -103.7564));%0A    %7D%0A%7D%0A

Add BoundingBoxTest