Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/command/conflict/ConflictAddCommandTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/command/conflict/ConflictAddCommandTest.java
r14138 r17275 2 2 package org.openstreetmap.josm.command.conflict; 3 3 4 import static org.junit. Assert.assertFalse;5 import static org.junit. Assert.assertNotNull;6 import static org.junit. Assert.assertTrue;4 import static org.junit.jupiter.api.Assertions.assertFalse; 5 import static org.junit.jupiter.api.Assertions.assertNotNull; 6 import static org.junit.jupiter.api.Assertions.assertTrue; 7 7 8 import org.junit. Before;9 import org.junit. Rule;10 import org.junit. Test;8 import org.junit.jupiter.api.BeforeEach; 9 import org.junit.jupiter.api.Test; 10 import org.junit.jupiter.api.extension.RegisterExtension; 11 11 import org.openstreetmap.josm.TestUtils; 12 12 import org.openstreetmap.josm.command.CommandTest.CommandTestData; … … 26 26 * Unit tests of {@link ConflictAddCommand} class. 27 27 */ 28 publicclass ConflictAddCommandTest {28 class ConflictAddCommandTest { 29 29 30 30 /** 31 31 * Setup test. 32 32 */ 33 @R ule33 @RegisterExtension 34 34 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 35 35 public JOSMTestRules test = new JOSMTestRules(); … … 39 39 * Setup test. 40 40 */ 41 @Before 41 @BeforeEach 42 42 public void setUp() { 43 43 testData = new CommandTestData(); … … 48 48 */ 49 49 @Test 50 publicvoid testExecuteUndoCommand() {50 void testExecuteUndoCommand() { 51 51 DataSet ds = testData.layer.getDataSet(); 52 52 Conflict<Node> conflict = new Conflict<>(testData.existingNode, testData.existingNode2); … … 64 64 */ 65 65 @Test 66 publicvoid testGetDescriptionIcon() {66 void testGetDescriptionIcon() { 67 67 Conflict<Node> conflict = new Conflict<>(testData.existingNode, testData.existingNode2); 68 68 assertNotNull(new ConflictAddCommand(testData.layer.getDataSet(), conflict).getDescriptionIcon()); … … 73 73 */ 74 74 @Test 75 publicvoid testEqualsContract() {75 void testEqualsContract() { 76 76 TestUtils.assumeWorkingEqualsVerifier(); 77 77 EqualsVerifier.forClass(ConflictAddCommand.class).usingGetClass()
Note:
See TracChangeset
for help on using the changeset viewer.