1 19 20 package org.netbeans.modules.java.editor.completion; 21 22 26 public class JavaCompletionProvider15FeaturesTest extends CompletionTestBase { 27 28 public JavaCompletionProvider15FeaturesTest(String testName) { 29 super(testName); 30 } 31 32 34 public void testEmptyFileBeforeTypingFirstTypeParam() throws Exception { 35 performTest("GenericsStart", 32, "<", "empty.pass"); 36 } 37 38 public void testBeforeTypingFirstTypeParam() throws Exception { 39 performTest("GenericsNoTypeParams", 32, "<", "empty.pass"); 40 } 41 42 public void testBeforeFirstTypeParam() throws Exception { 43 performTest("Generics", 33, null, "empty.pass"); 44 } 45 46 public void testEmptyFileTypingFirstTypeParam() throws Exception { 47 performTest("GenericsStart", 32, "<X", "empty.pass"); 48 } 49 50 public void testTypingFirstTypeParam() throws Exception { 51 performTest("GenericsNoTypeParams", 32, "<X", "empty.pass"); 52 } 53 54 public void testOnFirstTypeParam() throws Exception { 55 performTest("Generics", 34, null, "empty.pass"); 56 } 57 58 public void testEmptyFileAfterTypingFirstTypeParamAndSpace() throws Exception { 59 performTest("GenericsStart", 32, "<X ", "extendsKeyword.pass"); 60 } 61 62 public void testAfterTypingFirstTypeParamAndSpace() throws Exception { 63 performTest("GenericsNoTypeParams", 32, "<X ", "extendsKeyword.pass"); 64 } 65 66 public void testAfterFirstTypeParamAndSpace() throws Exception { 67 performTest("Generics", 35, null, "extendsKeyword.pass"); 68 } 69 70 public void testEmptyFileTypingExtendsInFirstTypeParam() throws Exception { 71 performTest("GenericsStart", 32, "<X e", "extendsKeyword.pass"); 72 } 73 74 public void testTypingExtendsInFirstTypeParam() throws Exception { 75 performTest("GenericsNoTypeParams", 32, "<X e", "extendsKeyword.pass"); 76 } 77 78 public void testOnExtendsInFirstTypeParam() throws Exception { 79 performTest("Generics", 36, null, "extendsKeyword.pass"); 80 } 81 82 public void testEmptyFileAfterTypingExtendsInFirstTypeParam() throws Exception { 83 performTest("GenericsStart", 32, "<X extends", "extendsKeyword.pass"); 84 } 85 86 public void testAfterTypingExtendsInFirstTypeParam() throws Exception { 87 performTest("GenericsNoTypeParams", 32, "<X extends", "extendsKeyword.pass"); 88 } 89 90 public void testAfterExtendsInFirstTypeParam() throws Exception { 91 performTest("Generics", 42, null, "extendsKeyword.pass"); 92 } 93 94 public void testEmptyFileAfterTypingExtendsAndSpaceInFirstTypeParam() throws Exception { 95 performTest("GenericsStart", 32, "<X extends ", "javaLangContent.pass"); 96 } 97 98 public void testAfterTypingExtendsAndSpaceInFirstTypeParam() throws Exception { 99 performTest("GenericsNoTypeParams", 32, "<X extends ", "javaLangContent.pass"); 100 } 101 102 public void testAfterExtendsAndSpaceInFirstTypeParam() throws Exception { 103 performTest("Generics", 43, null, "javaLangContent.pass"); 104 } 105 106 public void testEmptyFileAfterTypingBoundedFirstTypeParamAndSpace() throws Exception { 107 performTest("GenericsStart", 32, "<X extends Number ", "empty.pass"); 108 } 109 110 public void testAfterTypingBoundedFirstTypeParamAndSpace() throws Exception { 111 performTest("GenericsNoTypeParams", 32, "<X extends Number ", "empty.pass"); 112 } 113 114 public void testAfterBoundedFirstTypeParamAndSpace() throws Exception { 115 performTest("Generics", 49, " ", "empty.pass"); 116 } 117 118 public void testEmptyFileAfterTypingFirstTypeParam() throws Exception { 119 performTest("GenericsStart", 32, "<X extends Number,", "empty.pass"); 120 } 121 122 public void testAfterTypingFirstTypeParam() throws Exception { 123 performTest("GenericsNoTypeParams", 32, "<X extends Number,", "empty.pass"); 124 } 125 126 public void testAfterFirstTypeParam() throws Exception { 127 performTest("Generics", 50, null, "empty.pass"); 128 } 129 130 public void testEmptyFileAfterTypingTypeParams() throws Exception { 131 performTest("GenericsStart", 32, "<X extends Number, Y extends RuntimeException>", "extendsAndImplementsKeywords.pass"); 132 } 133 134 public void testAfterTypingTypeParams() throws Exception { 135 performTest("GenericsNoTypeParams", 32, "<X extends Number, Y extends RuntimeException>", "extendsAndImplementsKeywords.pass"); 136 } 137 138 public void testAfterTypeParams() throws Exception { 139 performTest("Generics", 78, null, "extendsAndImplementsKeywords.pass"); 140 } 141 142 } 143 | Popular Tags |