[ https://issues.apache.org/jira/browse/LUCENE-4337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443927#comment-13443927 ]
Uwe Schindler edited comment on LUCENE-4337 at 8/29/12 8:19 PM: ---------------------------------------------------------------- I checked already: We dont really need an own SecurityManager implementation at all. All this can be done from command line executing the tests: http://docs.oracle.com/javase/6/docs/technotes/guides/security/PolicyFiles.html We just need to create a PolicyFile that allows READ,EXECUTE for all files, but READ,WRITE,EXECUTE,DELETE for all files in the working copy (using a FilePermission). This policy file can be passed to the underlying Test JVM with -Dargs=... and we are done. I will later do some tests to try out. No need to write any line of code. was (Author: thetaphi): I checked already: We dont really need a SecurityManager at all. All this can be done from command line executing the tests: http://docs.oracle.com/javase/6/docs/technotes/guides/security/PolicyFiles.html We just need to create a PolicyFile that allows READ,EXECUTE for all files, but READ,WRITE,EXECUTE,DELETE for all files in the working copy (using a FilePermission). This policy file can be passed to the underlying Test JVM with -Dargs=... and we are done. I will later do some tests to try out. No need to write any line of code. > Create Java security manager for forcible asserting behaviours in testing > ------------------------------------------------------------------------- > > Key: LUCENE-4337 > URL: https://issues.apache.org/jira/browse/LUCENE-4337 > Project: Lucene - Core > Issue Type: Bug > Affects Versions: 4.1, 5.0, 4.0 > Reporter: Greg Bowyer > Assignee: Greg Bowyer > > Following on from conversations about mutation testing, there is an interest > in building a Java security manager that is able to assert / guarantee > certain behaviours -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org