Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/gui/bugreport/DebugTextDisplayTest.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/gui/bugreport/DebugTextDisplayTest.java
r12790 r17275 2 2 package org.openstreetmap.josm.gui.bugreport; 3 3 4 import static org.junit. Assert.assertEquals;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 5 6 import org.junit. Rule;7 import org.junit. Test;6 import org.junit.jupiter.api.extension.RegisterExtension; 7 import org.junit.jupiter.api.Test; 8 8 import org.openstreetmap.josm.gui.datatransfer.ClipboardUtils; 9 9 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 14 14 * Unit test of {@link DebugTextDisplay} class. 15 15 */ 16 publicclass DebugTextDisplayTest {16 class DebugTextDisplayTest { 17 17 /** 18 18 * Setup test 19 19 */ 20 @R ule20 @RegisterExtension 21 21 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 22 22 public JOSMTestRules test = new JOSMTestRules().preferences(); … … 26 26 */ 27 27 @Test 28 publicvoid testGetCodeText() {28 void testGetCodeText() { 29 29 assertEquals("test", new DebugTextDisplay("test").getCodeText()); 30 30 } … … 34 34 */ 35 35 @Test 36 publicvoid testCopyToClipboard() {36 void testCopyToClipboard() { 37 37 new DebugTextDisplay("copy").copyToClipboard(); 38 38 assertEquals(String.format("{{{%ncopy%n}}}"), ClipboardUtils.getClipboardStringContent());
Note:
See TracChangeset
for help on using the changeset viewer.