33
34 import java.util.PropertyPermission;
35
36 import jaxp.library.JAXPTestUtilities;
37
38 import org.testng.annotations.Listeners;
39 import org.testng.annotations.Test;
40
41 @Listeners({ jaxp.library.FilePolicy.class })
42 public class CLITest {
43
44 @Test
45 public void testCLI() throws Exception {
46 JAXPTestUtilities.tryRunWithTmpPermission(() -> {
47 String[] args = new String[] { "-XSLTC", "-XSL", getClass().getResource("tigertest.xsl").toString(),
48 "-IN", getClass().getResource("tigertest-in.xml").toString(), };
49 ProcessXSLT.main(args);
50 }, new PropertyPermission("*", "read,write"));
51 }
52 }
53
|
33
34 import java.util.PropertyPermission;
35
36 import jaxp.library.JAXPTestUtilities;
37
38 import org.testng.annotations.Listeners;
39 import org.testng.annotations.Test;
40
41 @Listeners({ jaxp.library.FilePolicy.class })
42 public class CLITest {
43
44 @Test
45 public void testCLI() throws Exception {
46 JAXPTestUtilities.tryRunWithTmpPermission(() -> {
47 String[] args = new String[] { "-XSLTC", "-XSL", getClass().getResource("tigertest.xsl").toString(),
48 "-IN", getClass().getResource("tigertest-in.xml").toString(), };
49 ProcessXSLT.main(args);
50 }, new PropertyPermission("*", "read,write"));
51 }
52 }
|