Description: remove Java tests that require Swing+X11 The Swing test
 requires X11 to run, so that's not feasible on Debian builders,
 Salsa's GitLab CI or autopkgtest.
Forwarded: not-needed

--- a/tests/java/src/test/java/OneTest.java
+++ b/tests/java/src/test/java/OneTest.java
@@ -25,9 +25,6 @@
 import java.util.Random;
 import java.util.zip.GZIPOutputStream;
 
-import javax.swing.JScrollPane;
-import javax.swing.SwingUtilities;
-
 import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
@@ -400,39 +397,6 @@
         }
     }
 
-	@Test
-	public void testSwingObject() throws Exception {
-
-		// Start the frame in the UI thread
-		SwingUtilities.invokeAndWait(new Runnable() {
-
-			@Override
-			public void run() {
-
-				final JFrameTest frame = new JFrameTest();
-				frame.addWindowListener(new WindowAdapter() {
-					@Override
-					public void windowClosing(final WindowEvent e) {
-						System.exit(0);
-					}
-				});
-				frame.setSize(300, 200);
-				frame.setVisible(true);
-
-				try {
-					oos.writeObject(((JScrollPane) frame.getRootPane()
-							.getContentPane().getComponent(0)).getComponent(1));
-					oos.flush();
-
-				} catch (final IOException e1) {
-					// TODO Auto-generated catch block
-					e1.printStackTrace();
-				}
-			}
-		});
-	}
-
-
 	/**
      * Tests the pull request #38 by @UruDev:
      * Add support for custom writeObject
