mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
fixed merge conflicts
This commit is contained in:
parent
e72700b032
commit
5bd8c37c2d
@ -1,6 +1,5 @@
|
||||
package com.twelvemonkeys.servlet.image;
|
||||
|
||||
import com.twelvemonkeys.image.BufferedImageIcon;
|
||||
import com.twelvemonkeys.image.ImageUtil;
|
||||
import com.twelvemonkeys.io.FileUtil;
|
||||
import com.twelvemonkeys.servlet.OutputStreamAdapter;
|
||||
@ -12,14 +11,12 @@ import javax.servlet.ServletContext;
|
||||
import javax.servlet.ServletOutputStream;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.Arrays;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
@ -274,28 +271,6 @@ public class ImageServletResponseImplTestCase {
|
||||
verify(response).getOutputStream();
|
||||
}
|
||||
|
||||
private static void showIt(final BufferedImage expected, final BufferedImage actual, final BufferedImage diff) {
|
||||
try {
|
||||
SwingUtilities.invokeAndWait(new Runnable() {
|
||||
public void run() {
|
||||
JPanel panel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 0));
|
||||
panel.add(new BlackLabel("expected", expected));
|
||||
panel.add(new BlackLabel("actual", actual));
|
||||
if (diff != null) {
|
||||
panel.add(new BlackLabel("diff", diff));
|
||||
}
|
||||
JScrollPane scroll = new JScrollPane(panel);
|
||||
scroll.setBorder(BorderFactory.createEmptyBorder());
|
||||
JOptionPane.showMessageDialog(null, scroll);
|
||||
}
|
||||
});
|
||||
}
|
||||
catch (InterruptedException ignore) {
|
||||
}
|
||||
catch (InvocationTargetException ignore) {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTranscodeResponseIndexedCM() throws IOException {
|
||||
// Custom setup
|
||||
|
Loading…
x
Reference in New Issue
Block a user