Skip to content

Commit

Permalink
remove test main() methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sclassen committed Dec 20, 2019
1 parent 6a0c74f commit 2f7bbb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,15 @@
*/
package net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.apptrustwarningpanel;

import net.sourceforge.jnlp.JNLPFile;
import net.adoptopenjdk.icedteaweb.xmlparser.ParseException;
import net.adoptopenjdk.icedteaweb.i18n.Translator;
import net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.SecurityDialog;
import net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.appletextendedsecurity.UnsignedAppletActionEntry;
import net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.appletextendedsecurity.UnsignedAppletTrustConfirmation;
import net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.remember.ExecuteAppletAction;
import net.sourceforge.jnlp.JNLPFileFactory;
import net.sourceforge.jnlp.util.UrlUtils;
import net.adoptopenjdk.icedteaweb.i18n.Translator;
import net.sourceforge.jnlp.JNLPFile;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashSet;
import java.util.Set;

import static net.adoptopenjdk.icedteaweb.i18n.Translator.R;

Expand Down Expand Up @@ -114,16 +104,4 @@ protected String getQuestionPanelText() {
public String getAppletTitle() {
return "";
}

public static void main(String[] args) throws MalformedURLException, IOException, ParseException {
Set<URL> s = new HashSet<>();
s.add(new URL("http:/blah.com/blah"));
s.add(new URL("http:/blah.com/blah/blah"));
MatchingALACAttributePanel w = new MatchingALACAttributePanel(null, new JNLPFileFactory().create(new URL("https://docs.oracle.com/javase/tutorialJWS/samples/uiswing/AccessibleScrollDemoProject/AccessibleScrollDemo.jnlp")), "http://nbblah.url", UrlUtils.setOfUrlsToHtmlList(s));
JFrame f = new JFrame();
f.setSize(600, 400);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.add(w, BorderLayout.CENTER);
f.setVisible(true);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,13 @@

import net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.SecurityDialog;
import net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.SecurityDialogPanel;
import net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.remember.ExecuteAppletAction;
import net.sourceforge.jnlp.JNLPFile;
import net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.appletextendedsecurity.UnsignedAppletActionEntry;
import net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.appletextendedsecurity.UnsignedAppletTrustConfirmation;
import net.sourceforge.jnlp.JNLPFileFactory;
import net.adoptopenjdk.icedteaweb.client.parts.dialogs.security.remember.ExecuteAppletAction;
import net.sourceforge.jnlp.JNLPFile;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.net.URL;

import static net.adoptopenjdk.icedteaweb.i18n.Translator.R;

Expand Down Expand Up @@ -106,14 +102,4 @@ protected String getInfoPanelText() {
protected String getQuestionPanelText() {
return SecurityDialogPanel.htmlWrap(R(getQuestionPanelTextKey()));
}

public static void main(String[] args) throws Exception {
UnsignedAppletTrustWarningPanel w = new UnsignedAppletTrustWarningPanel(null, new JNLPFileFactory().create(new URL("http://www.geogebra.org/webstart/geogebra.jnlp")));
JFrame f = new JFrame();
f.setSize(600, 400);
f.add(w, BorderLayout.CENTER);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);
}

}

0 comments on commit 2f7bbb3

Please sign in to comment.