1 19 20 package org.netbeans.test.java.editor.completion; 21 22 import org.netbeans.spi.editor.completion.CompletionProvider; 23 24 28 public class SmartCCTests extends CompletionTestPerformer{ 29 30 31 public SmartCCTests(String name) { 32 super(name); 33 } 34 35 36 public void testsmartassign() throws Exception { 37 new CompletionTest().test(outputWriter, logWriter, "Double x = ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Assign.java", 11,CompletionProvider.COMPLETION_SMART_QUERY_TYPE); 38 } 39 40 public void testsmartassign2() throws Exception { 41 new CompletionTest().test(outputWriter, logWriter, "Number x = ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Assign.java", 11,CompletionProvider.COMPLETION_SMART_QUERY_TYPE); 42 } 43 44 public void testsmartassign3() throws Exception { 45 new CompletionTest().test(outputWriter, logWriter, "Number x = new ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Assign.java", 11,CompletionProvider.COMPLETION_SMART_QUERY_TYPE); 46 } 47 48 public void testsmartassign4() throws Exception { 49 new CompletionTest().test(outputWriter, logWriter, "List x = new ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Assign.java", 11,CompletionProvider.COMPLETION_SMART_QUERY_TYPE); 50 } 51 52 public void testsmartassign5() throws Exception { 53 new CompletionTest().test(outputWriter, logWriter, "String x = ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Assign.java", 11,CompletionProvider.COMPLETION_SMART_QUERY_TYPE); 54 } 55 56 public void testsmartExtends() throws Exception { 57 new CompletionTest().test(outputWriter, logWriter, "class A extends ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Types.java", 32,CompletionProvider.COMPLETION_QUERY_TYPE); 58 } 59 60 public void testsmartImplements() throws Exception { 61 new CompletionTest().test(outputWriter, logWriter, "class B implements ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Types.java", 32,CompletionProvider.COMPLETION_QUERY_TYPE); 62 } 63 64 public void testsmartThrows() throws Exception { 65 new CompletionTest().test(outputWriter, logWriter, "public void method() throws ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Types.java", 32,CompletionProvider.COMPLETION_QUERY_TYPE); 66 } 67 68 public void testsmartAnnotation() throws Exception { 69 new CompletionTest().test(outputWriter, logWriter, "@", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Types.java", 32,CompletionProvider.COMPLETION_QUERY_TYPE); 70 } 71 72 public void testsmartImport() throws Exception { 73 new CompletionTest().test(outputWriter, logWriter, "import ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Types.java", 21,CompletionProvider.COMPLETION_QUERY_TYPE); 74 } 75 76 public void testsmartImportStatic() throws Exception { 77 new CompletionTest().test(outputWriter, logWriter, "import static java.awt.Color.", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/Types.java", 21,CompletionProvider.COMPLETION_QUERY_TYPE); 78 } 79 80 public void testsmartSuperParameter() throws Exception { 81 new CompletionTest().test(outputWriter, logWriter, "super(", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/SmartCC.java", 31,CompletionProvider.COMPLETION_SMART_QUERY_TYPE); 82 } 83 84 public void testsmartInnerClassAsParameter() throws Exception { 85 new CompletionTest().test(outputWriter, logWriter, "method(", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/SmartCC.java", 41,CompletionProvider.COMPLETION_SMART_QUERY_TYPE); 86 } 87 88 public void testsmartInnerClassAsParameter2() throws Exception { 89 new CompletionTest().test(outputWriter, logWriter, "method( new ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/SmartCC.java", 41,CompletionProvider.COMPLETION_SMART_QUERY_TYPE); 90 } 91 92 public void testsmartReturn() throws Exception { 93 new CompletionTest().test(outputWriter, logWriter, "return ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/SmartCC.java", 42,CompletionProvider.COMPLETION_SMART_QUERY_TYPE); 94 } 95 96 public void testsmartReturn2() throws Exception { 97 new CompletionTest().test(outputWriter, logWriter, "return new ", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/SmartCC.java", 42,CompletionProvider.COMPLETION_SMART_QUERY_TYPE); 98 } 99 100 public void testsmartCatch() throws Exception { 101 new CompletionTest().test(outputWriter, logWriter, "catch (", false, getDataDir(),"cp-prj-1", "org/netbeans/test/editor/smartcompletion/SmartCC.java", 51,CompletionProvider.COMPLETION_SMART_QUERY_TYPE); 102 } 103 104 105 106 } 107 | Popular Tags |