aboutsummaryrefslogtreecommitdiffstats
path: root/tests/netx/unit/net/sourceforge
Commit message (Collapse)AuthorAgeFilesLines
* Added Christmas splashscreen extension.Jiri Vanek2014-01-202-6/+9
|
* Removed depndence on sun.misc.BASE64DecoderJiri Vanek2014-01-062-11/+118
|
* Rewritten java consoleJiri Vanek2013-12-202-4/+3
|
* Minor formatting fixJiri Vanek2013-12-201-2/+2
|
* fixed CacheLRUWrapperTestJiri Vanek2013-12-201-14/+40
|
* singletons logic, logs and test cleanup/fixesJiri Vanek2013-12-201-1/+0
|
* Console made aware of plugin messagesJiri Vanek2013-12-151-0/+59
|
* itw itself warning cleanup: fixed rawtypes and unchecks, added braces and ↵Jiri Vanek2013-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | Override After this clean up only "internal proprietary API and may be removed in a future release" warnings remain fro make check. Please keep itw in this way :) remaining issues: icedtea-web/netx/net/sourceforge/jnlp/cache/ResourceTracker.java:357: warning: [deprecation] toURL() in File has been deprecated icedtea-web/netx/net/sourceforge/jnlp/cache/CacheUtil.java:128: warning: [deprecation] toURL() in File has been deprecated icedtea-web/netx/net/sourceforge/jnlp/runtime/Boot.java:261: warning: [deprecation] toURL() in File has been deprecated There have been a lot of work around cach x file x url escaping, and as main difference between file.tourl and file.touri.tourl is escapin, I rather left it. icedtea-web/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java:804: warning: [deprecation] Ref in sun.misc has been deprecated icedtea-web/plugin/icedteanp/java/sun/applet/PluginAppletViewer.java:121: warning: [deprecation] Ref in sun.misc has been deprecated What can be done? icedtea-web/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java:205: warning: [fallthrough] possible fall-through into case icedtea-web/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java:211: warning: [fallthrough] possible fall-through into case This have to be fixed
* unittests warning cleanup: fixed typechecks, rawtypes, redundant casts...Jiri Vanek2013-12-138-46/+46
| | | | | ScreenFinder fixed to work partially also in headless mode. After this clean up only "internal proprietary API and may be removed in a future release" warnings remain fro make check. Please keep itw in this way :)
* Better validation of crytical dirs with proper message on startupJiri Vanek2013-12-022-1/+273
|
* Added null check when getting manifest attributes for case of jar without ↵Jiri Vanek2013-11-271-0/+35
| | | | | | | | manifest * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (getManifestAttribute) added check fo null manifest to prevent npe. * /tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java: added test for npe from getManifestAttribute * tests/test-extensions/net/sourceforge/jnlp/util/FileTestUtils.java: (createJarWithContents) enhanced to be able to create jar without manifest.
* do DefaultLaunchHandlerTest unittest indepndent on system settingsJiri Vanek2013-11-221-0/+9
|
* Added test-extension to silence stdout/err of itw when run from junitJiri Vanek2013-11-133-9/+6
|
* Enabled access to manifests' attributes from JNLPFile class, implemented ↵Jiri Vanek2013-11-132-0/+267
| | | | http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html#app_name
* tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java: ↵Jiri Vanek2013-11-011-5/+112
| | | | | | added tests for custom attributes (getCustomAtributes), (getCustomAtributesEmpty) and test to ensure order during searching for attributes in manifests (checkOrderWhenReadingAttributes). tests/test-extensions/net/sourceforge/jnlp/mock/DummyJNLPFileWithJar.java: can now handle multiple source jars, and set main jar (new constructors), (jarFiles) and (jarDescs) redeclared to arrays.
* Reset the LogConfig in unit testsOmair Majid2013-10-221-0/+12
| | | | | | | | | | | | | | | | | | LogConfig is globally shared. Fix unit tests that modify the logging configuration to reset it after (and before) to avoid affecting other unit tests or being affected by the results of other tests. Before this patch, if the tests were executed in a certain order, it was possible for them to leave behind a LogConfig that enabled logging in the most verbose manner possible. This would generate megabytes of output when running unit tests. 2013-10-22 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/util/logging/LogConfig.java (resetLogConfig): New method. * tests/netx/unit/net/sourceforge/jnlp/util/logging/OutputControllerTest.java (setUp, tearDown): New method.
* Fix regression in ResourceUrlCreator due to PR1204 patchAndrew Azores2013-10-031-37/+99
| | | | | | | | | * netx/net/sourceforge/jnlp/cache/ResourceUrlCreator.java: (getVersionedUrl) fix regression in previous PR1204 patch. Refactor to not take Resource parameter, use instance's field instead. (uriPartToString) new method * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceUrlCreatorTest.java: new tests for ResourceUrlCreator.getVersionedUrl
* Unit tests for BrowserAwareProxySelectorOmair Majid2013-10-011-0/+227
| | | | | | | Also move duplicate code for selecting a host and port depending on the protocol into JNLPProxySelector.getFromArguments. The semantics of 'sameProxy' are different between BrowserAwareProxySelector and JNLPProxySelector; the socks proxy is included in firefox.
* Fix for PR1204, handling of query strings and absolute paths.Andrew Azores2013-09-261-1/+50
| | | | | | | | | | | | | | | | | | | | | | | | Absolute paths in resource URLs are correctly handled when appended to host URLs and URL query strings are not removed. * netx/net/sourceforge/jnlp/cache/ResourceUrlCreator.java: (getVersionedUrlUsingQuery) renamed to getVersionedUrl, refactored construction of URL * plugin/icedteanp/java/sun/applet/PluginAppletViewer.java: (requestPluginProxyInfo) extracted proxy URI logic. (processProxyUri) new method for finding proxy URIs, handles absolute resource paths correctly * tests/netx/unit/net/sourceforge/jnlp/cache/ResourceUrlCreatorTest.java: added tests for ResourceUrlCreator#getVersionedUrl * tests/netx/unit/sun/applet/PluginAppletViewerTest.java: added tests for PluginAppletViewer.processProxyUri * tests/reproducers/simple/AbsolutePathsAndQueryStrings/resources/AbsolutePathsAndQueryStrings.html: new reproducer checks that absolute paths and query strings in resource URLs are properly handled, and caching still works * tests/reproducers/simple/AbsolutePathsAndQueryStrings/resources/AbsolutePathsAndQueryStrings.jnlp: same * tests/reproducers/simple/AbsolutePathsAndQueryStrings/testcases/AbsolutePathsAndQueryStrings.java: same
* Introduced logging bottleneckJiri Vanek2013-09-257-55/+792
|
* PR1474: Can't get javaws to use SOCKS proxyOmair Majid2013-09-241-7/+20
| | | | | | | | If there is a SOCKS proxy specified, use it for https, http, and ftp protocols too (as a fallback). 'sameProxy' now affects the https, http and ftp protocols, but not the socket protocol.
* Unit tests for JNLPProxySelectorOmair Majid2013-09-231-0/+321
| | | | | | | | | | This contains one functional change: - String host = uri.getSchemeSpecificPart().split(":")[0]; + String host = uri.getHost(); Given the URI of "socket://example.org", the first line evaluates to "//example.org", while the second one (correctly) evaluates to "example.org".
* Unit test for InformationDescOmair Majid2013-09-201-0/+209
| | | | | | Also remove the references to JNLPFile from InformationDesc. This makes it much easier to instantiate InformationDesc for tests.
* Fixed minor typo in JEditorPaneBasedExceptionDialogTest (mus -> must) ↵Jiri Vanek2013-09-181-4/+4
| | | | | | severla times "message from dialog mus be same as pattern" -> "message from dialog must be same as pattern"
* Use Arrays.asList instead of custom implementationOmair Majid2013-09-162-26/+12
| | | | | | | | | | | 2013-09-16 Omair Majid <[email protected]> * tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java (toList): Remove. (checkForMainFileLeakTest): Use Arrays.asList. * tests/netx/unit/net/sourceforge/jnlp/security/appletextendedsecurity/UnsignedAppletTrustConfirmationTest.java (toList): Remove. (testToRelativePaths): Use Arrays.asList.
* PR1533: Inherit jnlp.packEnabled and jnlp.versionEnabled like other propertiesOmair Majid2013-09-091-0/+68
| | | | | | | | | | | | | | | | | | | | | | Treat jnlp.packEnabled and jnlp.versionEnabled just like other properties that can be set in one resource element and inherited/filtered in others. 2013-09-09 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/JNLPFile.java (getDownloadOptionsForJar): Rename to ... (getDownloadOptions): New method. Look up jnlp.packEnabled and jnlp.versionEnabled in any resources element. * netx/net/sourceforge/jnlp/PluginBridge.java (getDownloadOptionsForJar): Rename to ... (getDownloadOptions): New method. * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java (initializeResources): Invoke file.getDownloadResources. (getDownloadOptionsForJar): Remove. * tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java (testDownloadOptionsAppliedEverywhere): New method. (testDownloadOptionsFilteredOut): New method.
* mergingAndrew Azores2013-09-041-0/+60
|\
| * Test case for PR1533Omair Majid2013-08-301-0/+60
| | | | | | | | | | | | | | | | | | | | | | Add a unit test that checks the behaviour of JNLPFile when combining and filtering properties. 2013-08-29 Omair Majid <[email protected]> * tests/netx/unit/net/sourceforge/jnlp/JNLPFileTest.java (testPropertyRestrictions): New method. Check that properties in resources are are combined and filtered as approp
* | Extracted integer response casting/handling logic in SecurityDialogs to new ↵Andrew Azores2013-09-041-0/+70
|/ | | | method, added test for this method
* Fix and tests for PR974, extension JNLPs unavailable when embedded in HTML ↵Andrew Azores2013-08-151-0/+74
| | | | applet tags
* IcedTea-Web is now following XDG .config and .cache specification(RH947647)Jiri Vanek2013-07-182-2/+3
|
* About dialogue made accessible from pluginJiri Vanek2013-07-171-3/+6
|
* Added tagsup (optional dependence) as sanitizer for (possibly) invalid xml filesJiri Vanek2013-06-217-151/+187
|
* Fix PR1465 - java.io.FileNotFoundException while trying to download a JAR fileAdam Domurad2013-06-052-3/+27
|
* Add NativeLibraryStorageTEstAdam Domurad2013-06-032-74/+204
|
* Extract NativeLibraryStorage class from JNLPClassLoaderAdam Domurad2013-06-031-14/+0
|
* Move inner test class MockedOneJarJNLPFile to top-level DummyJNLPFileWithJarAdam Domurad2013-05-291-51/+7
|
* Fix for portalbank.no (trying get after failed head requests) and testsJiri Vanek2013-05-024-40/+663
|
* Renamed cz locales to be more generalJiri Vanek2013-05-021-2/+3
| | | | | netx/net/sourceforge/jnlp/resources/Messages_cs_CZ.properties renamed to netx/net/sourceforge/jnlp/resources/Messages_cs.properties tests/netx/unit/net/sourceforge/jnlp/resources/MessagesPropertiesTest.java and tests/reproducers/simple/LocalesTest/testcases/LocalesTestTest.java adapted to new cz locales filename.
* modifying makefile for awtframework default iconJana Fabrikova2013-05-021-0/+56
|
* Disabled accidentally enabled reprint of logs during locales testsJiri Vanek2013-04-291-1/+1
|
* Decode local-file URLs lenientlyAdam Domurad2013-04-261-2/+18
|
* Added polish transaltion and tests to itJiri Vanek2013-04-261-2/+3
| | | | Also minor changes to En and De files
* Fixed regressed unittest and "cause", Fixed compilation under jdk6, Silenced ↵Jiri Vanek2013-04-264-130/+134
| | | | unittests
* Unit tests for AsyncCall test extensionAdam Domurad2013-04-251-0/+93
|
* Splashscreen now strip commit id from released versionsJiri Vanek2013-04-251-0/+18
|
* Add tests for newly added UrlUtils functionsAdam Domurad2013-04-231-1/+37
|
* Introduce more UrlUtils functions.Adam Domurad2013-04-231-4/+4
|
* JNLPClassLoader unit tests for file leaksAdam Domurad2013-04-231-0/+263
|
* Move normalizeUrlAndStripParams to UrlUtilsAdam Domurad2013-03-282-20/+30
|