My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
AntTest  
Web loader ANT Test
Featured
Updated Nov 28, 2009 by john.douglas.pritchard

Objective

Drop application classes using restricted classes.

Status

http://code.google.com/p/jnlp-loader/issues/detail?id=6

Build & Run

The page describes the WebLoader test.

Build

From the command line, run
  ant test

Run

From the command line, run
 ant test-run

Result

Success

Running
 ant test
 ant test-run
should produce an error, as the application main class (Test Main) was dropped for violating the access policy.

Structure

The Test Main class is loaded by loader.sandbox.WebLoader.

Test Main Class

This class uses a restricted class in a field, and is dropped.
http://code.google.com/p/jnlp-loader/source/browse/trunk/test/webloader/TestMain.java

Test Main JNLP

http://code.google.com/p/jnlp-loader/source/browse/trunk/test/webloader/TestMain.jnlp

Test Main Ant Build

http://code.google.com/p/jnlp-loader/source/browse/trunk/buildtest.webloader.xml

Test Main Ant Run

http://code.google.com/p/jnlp-loader/source/browse/trunk/runtest.webloader.xml

Sign in to add a comment
Powered by Google Project Hosting