samples/privilegedcreator/test/accessprotectedmethod/AccessWriteLockTest.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:53:28 +0200
changeset 71 a9bd40166b60
permissions -rw-r--r--
Fixed "Give creator more rights"
     1 package accessprotectedmethod;
     2 
     3 
     4 public class AccessWriteLockTest {
     5     
     6     @org.junit.Test
     7     public void testCallToMyDocument() {
     8         MyDocument doc = new MyDocument();
     9         
    10         // following line does not compile as
    11         // writeLock() has protected access in AbstractDocument
    12         // doc.writeLock();
    13         
    14         doc.writeLockAccess();
    15     }
    16     
    17 }