Mercurial > hg > release > icedtea-web-1.4
changeset 692:1da533f89607
Tests & test extensions for mocking the plugin input & output pipes.
author | Adam Domurad <adomurad@redhat.com> |
---|---|
date | Thu, 25 Apr 2013 10:33:21 -0400 |
parents | ca33c41c9f69 |
children | b0bef68756a6 |
files | ChangeLog Makefile.am plugin/icedteanp/java/sun/applet/PluginStreamHandler.java |
diffstat | 3 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Apr 25 14:25:45 2013 +0200 +++ b/ChangeLog Thu Apr 25 10:33:21 2013 -0400 @@ -1,3 +1,16 @@ +2013-04-25 Adam Domurad <adomurad@redhat.com> + + Tests & test extensions for mocking the plugin input & output pipes. + * Makefile.am + (stamps/test-extensions-compile.stamp): Make plugin classes available + to test extensions + * tests/test-extensions/net/sourceforge/jnlp/AsyncCall.java: New, helper + for doing asynchronous calls with an optional timeout. + * tests/netx/unit/sun/applet/PluginAppletViewerTest.java: New, uses + PluginPipeMock to test the javascript requests to the plugin. + * tests/test-extensions/sun/applet/mock/PluginPipeMock.java: New, helper + for getting the plugin requests and mocking the replies. + 2013-04-25 Jiri Vanek <jvanek@redhat.com> Locking disabled on windows machines
--- a/Makefile.am Thu Apr 25 14:25:45 2013 +0200 +++ b/Makefile.am Thu Apr 25 10:33:21 2013 -0400 @@ -760,7 +760,7 @@ ln -s $(TEST_EXTENSIONS_DIR) $(TEST_EXTENSIONS_COMPATIBILITY_SYMLINK); $(BOOT_DIR)/bin/javac $(IT_JAVACFLAGS) \ -d $(TEST_EXTENSIONS_DIR) \ - -classpath $(JUNIT_JAR):$(NETX_DIR)/lib/classes.jar \ + -classpath $(JUNIT_JAR):$(NETX_DIR)/lib/classes.jar:$(abs_top_builddir)/liveconnect/lib/classes.jar \ @test-extensions-source-files.txt && \ mkdir -p stamps && \ touch $@
--- a/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java Thu Apr 25 14:25:45 2013 +0200 +++ b/plugin/icedteanp/java/sun/applet/PluginStreamHandler.java Thu Apr 25 10:33:21 2013 -0400 @@ -62,8 +62,7 @@ private volatile boolean shuttingDown = false; - public PluginStreamHandler(InputStream inputstream, OutputStream outputstream) - throws MalformedURLException, IOException { + public PluginStreamHandler(InputStream inputstream, OutputStream outputstream) { PluginDebug.debug("Current context CL=", Thread.currentThread().getContextClassLoader());