From 588a818624ee4535028b531bce10e91c2816a05c Mon Sep 17 00:00:00 2001
From: Robert Scott <code@humanleg.org.uk>
Date: Sun, 4 Nov 2018 10:51:31 +0000
Subject: [PATCH v1] ClipboardUtilsTest: fix for non-headless mode
---
.../org/openstreetmap/josm/gui/datatransfer/ClipboardUtilsTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/unit/org/openstreetmap/josm/gui/datatransfer/ClipboardUtilsTest.java b/test/unit/org/openstreetmap/josm/gui/datatransfer/ClipboardUtilsTest.java
index a3798b769..1cf5b2a00 100644
|
a
|
b
|
import static org.junit.Assert.assertNotNull;
|
| 6 | 6 | import static org.junit.Assert.assertNull; |
| 7 | 7 | import static org.junit.Assert.assertSame; |
| 8 | 8 | import static org.junit.Assert.assertTrue; |
| | 9 | import static org.junit.Assume.assumeTrue; |
| 9 | 10 | |
| 10 | 11 | import java.awt.GraphicsEnvironment; |
| 11 | 12 | import java.awt.datatransfer.Clipboard; |
| … |
… |
public class ClipboardUtilsTest {
|
| 117 | 118 | */ |
| 118 | 119 | @Test |
| 119 | 120 | public void testSystemSelectionDoesNotFail() { |
| 120 | | assertTrue(GraphicsEnvironment.isHeadless()); |
| | 121 | assumeTrue(GraphicsEnvironment.isHeadless()); |
| 121 | 122 | assertNull(ClipboardUtils.getSystemSelection()); |
| 122 | 123 | } |
| 123 | 124 | |