This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 223820
Collapse All | Expand All

(-)a/java.hints.test/src/org/netbeans/modules/java/hints/test/api/HintTest.java (-1 / +9 lines)
Lines 84-89 Link Here
84
import static junit.framework.Assert.assertNotNull;
84
import static junit.framework.Assert.assertNotNull;
85
import static junit.framework.Assert.assertNotSame;
85
import static junit.framework.Assert.assertNotSame;
86
import static junit.framework.Assert.assertTrue;
86
import static junit.framework.Assert.assertTrue;
87
88
import org.netbeans.api.editor.mimelookup.MimeLookup;
87
import org.netbeans.api.java.classpath.ClassPath;
89
import org.netbeans.api.java.classpath.ClassPath;
88
import org.netbeans.api.java.lexer.JavaTokenId;
90
import org.netbeans.api.java.lexer.JavaTokenId;
89
import org.netbeans.api.java.queries.SourceForBinaryQuery;
91
import org.netbeans.api.java.queries.SourceForBinaryQuery;
Lines 858-864 Link Here
858
860
859
            assertEquals(1, fixes.size());
861
            assertEquals(1, fixes.size());
860
862
861
            fixes.get(0).implement();
863
            Preferences preferences = MimeLookup.getLookup(JavaTokenId.language().mimeType()).lookup(Preferences.class);
864
            preferences.putBoolean("importInnerClasses", true);
865
            try {
866
                fixes.get(0).implement();
867
            } finally {
868
                preferences.remove("importInnerClasses");
869
            }
862
870
863
            if (saveAll)
871
            if (saveAll)
864
                LifecycleManager.getDefault().saveAll();
872
                LifecycleManager.getDefault().saveAll();

Return to bug 223820