sandbox/old-modules/hintsimpl/test/unit/src/org/netbeans/modules/jackpot30/hintsimpl/abstract-document.test
1.1 --- a/sandbox/old-modules/hintsimpl/test/unit/src/org/netbeans/modules/jackpot30/hintsimpl/abstract-document.test Mon Dec 19 11:37:36 2016 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,46 +0,0 @@
1.4 -%%TestCase simple-readlock
1.5 -package test;
1.6 -import javax.swing.text.AbstractDocument;
1.7 -public class Test {
1.8 - private void test(AbstractDocument d) {
1.9 - d.readLock();
1.10 - System.err.println(d.getText(0, d.getLength()));
1.11 - d.readUnlock();
1.12 - }
1.13 -}
1.14 -%%=>
1.15 -package test;
1.16 -import javax.swing.text.AbstractDocument;
1.17 -public class Test {
1.18 - private void test(AbstractDocument d) {
1.19 - d.readLock();
1.20 - try {
1.21 - System.err.println(d.getText(0, d.getLength()));
1.22 - } finally {
1.23 - d.readUnlock();
1.24 - }
1.25 - }
1.26 -}
1.27 -%%TestCase simple-writelock
1.28 -package test;
1.29 -import javax.swing.text.AbstractDocument;
1.30 -public class Test {
1.31 - private void test(AbstractDocument d) {
1.32 - d.writeLock();
1.33 - System.err.println(d.getText(0, d.getLength()));
1.34 - d.writeUnlock();
1.35 - }
1.36 -}
1.37 -%%=>
1.38 -package test;
1.39 -import javax.swing.text.AbstractDocument;
1.40 -public class Test {
1.41 - private void test(AbstractDocument d) {
1.42 - d.writeLock();
1.43 - try {
1.44 - System.err.println(d.getText(0, d.getLength()));
1.45 - } finally {
1.46 - d.writeUnlock();
1.47 - }
1.48 - }
1.49 -}