source: josm/trunk/test/unit/org/openstreetmap/josm/data/osm/BBoxTest.java@ 11241

Last change on this file since 11241 was 10945, checked in by Don-vip, 8 years ago

convert more unit tests to JOSMTestRules

  • Property svn:eol-style set to native
File size: 857 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm;
3
4import org.junit.Rule;
5import org.junit.Test;
6import org.openstreetmap.josm.testutils.JOSMTestRules;
7
8import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
9import nl.jqno.equalsverifier.EqualsVerifier;
10import nl.jqno.equalsverifier.Warning;
11
12/**
13 * Unit tests for class {@link BBox}.
14 */
15public class BBoxTest {
16
17 /**
18 * Setup test.
19 */
20 @Rule
21 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
22 public JOSMTestRules test = new JOSMTestRules();
23
24 /**
25 * Unit test of methods {@link BBox#equals} and {@link BBox#hashCode}.
26 */
27 @Test
28 public void testEqualsContract() {
29 EqualsVerifier.forClass(BBox.class).usingGetClass()
30 .suppress(Warning.NONFINAL_FIELDS)
31 .verify();
32 }
33}
Note: See TracBrowser for help on using the repository browser.