aboutsummaryrefslogtreecommitdiffstats
path: root/tests/netx/unit/net/sourceforge/jnlp/runtime
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Added test-extension to silence stdout/err of itw when run from junitJiri Vanek2013-11-131-3/+2
|
* 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.
* 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".
* Use Arrays.asList instead of custom implementationOmair Majid2013-09-161-9/+2
| | | | | | | | | | | 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.
* Add NativeLibraryStorageTEstAdam Domurad2013-06-031-74/+32
|
* Extract NativeLibraryStorage class from JNLPClassLoaderAdam Domurad2013-06-031-14/+0
|
* Move inner test class MockedOneJarJNLPFile to top-level DummyJNLPFileWithJarAdam Domurad2013-05-291-51/+7
|
* Fixed regressed unittest and "cause", Fixed compilation under jdk6, Silenced ↵Jiri Vanek2013-04-261-128/+60
| | | | unittests
* JNLPClassLoader unit tests for file leaksAdam Domurad2013-04-231-0/+263
|
* Added and applied Remote annotation, added Remote tests.Jiri Vanek2012-12-201-0/+9
|
* Cleaned unit-tests in ↵Jiri Vanek2012-12-181-106/+80
| | | | tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java
* Fixed long term failing unit-test, fixed NPE from ClassLoaderJiri Vanek2012-08-271-33/+178
| | | | | | | | | | | | | | | * netx/net/sourceforge/jnlp/NullJnlpFileException.java: new class to distinguish plain NPE from null jnlp file. * netx/net/sourceforge/jnlp/SecurityDesc.java: (getSandBoxPermissions) added throw of NullJnlpFileException in case of null jnlp file. * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: (findClass) added Override annotation, add catch of NullJnlpFileException and re-throw of CNF exception. * tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java: (testResourceLoadSuccessCaching) (testResourceLoadFailureCaching) (testParentClassLoaderIsAskedForClasses) - internal JNLPFile's (getSecurity) null in SecurityDesc constructorrepalced by this. (testNullFileSecurityDesc) new test to ensure NPE in null JNLPFile case.
* Fix problem in resolving classesOmair Majid2012-06-281-1/+47
| | | | | | | | | | | | | | | | | The bug manifests when the following sequence of steps happen: 1. An applet with both a codebase and a jar (archive) is loaded 2. A class Foo is loaded using the codebase classloader 3. The Foo class tries to load a class Bar that is specified in the jar archive. The Bar class is not found. The following applet reproduces the problem: http://javadjvu.foxtrottechnologies.com/cgi-bin/djvuapplet.pl/examples/deer.djvu?zoom=page The fix addresses the problem by ensuring that the codebase classloader asks the classloader that knows about the jar archive to resolve classes too.
* rewritten deadlock testJiri Vanek2012-06-191-0/+2
|
* Get rid of repeated sout/serr in reproducers testcases/unit tests and ↵Jiri Vanek2012-05-281-4/+5
| | | | introduce bottleneck for loging.
* 2012-05-14 Jiri Vanek <[email protected]>Jiri Vanek2012-05-161-4/+4
| | | | | | | | * tests/netx/unit/net/sourceforge/jnlp/runtime/CodeBaseClassLoaderTest.java: * tests/netx/unit/net/sourceforge/jnlp/cache/CacheLRUWrapperTest.java: System.out replaced with System.err + fixed tabs in previous changelog
* PR895: IcedTea-Web searches for missing classes on each loadClass or findClassDeepak Bhole2012-03-141-0/+142