package de.marza.firstspirit.modules.logging.console.utilities;

import org.junit.Before;
import org.junit.Test;

import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;


public class ClipboardAccessTest {


  private ClipboardAccess testling;

  @Before
  public void setUp() throws Exception {
    testling = new ClipboardAccess();
  }

  @Test
  public void transfer() throws Exception {
    testling.copy("Test 123");

    assertThat(testling.paste(), is("Test 123"));
  }

}
@@ -107,16 +107,54 @@
 .Test;%0A%0A
+import java.awt.GraphicsEnvironment;%0A%0A
 import s
@@ -228,16 +228,60 @@
 rtThat;%0A
+import static org.junit.Assume.assumeFalse;%0A
 %0A%0Apublic
@@ -391,32 +391,106 @@
 ows Exception %7B%0A
+    assumeFalse(%22Run only in desktop%22, GraphicsEnvironment.isHeadless());%0A
     testling = n

Disable test in headless environments