1 19 package org.netbeans.modules.java.hints; 20 21 import junit.framework.TestSuite; 22 import org.netbeans.junit.NbTestSuite; 23 24 25 28 public class JavaHintsTest extends JavaHintsTestBase { 29 30 31 public JavaHintsTest(String name) { 32 super(name); 33 34 } 35 36 47 80 public void testImplementAbstractMethodsHint9() throws Exception { 81 performTestDoNotPerform("ImplementAbstractMethods9", 8, 15); 82 } 83 84 public void testImplementAbstractMethodsHint10() throws Exception { 85 performTestDoNotPerform("ImplementAbstractMethods10", 8, 15); 86 } 87 88 public void testImplementAbstractMethodsHint11() throws Exception { 89 performTest("ImplementAbstractMethods11", "Implement", 8, 15); 90 } 91 92 public void testAddCastHint1() throws Exception { 97 performTest("org.netbeans.test.java.hints.AddCast1", "Cast", 18, 15); 98 } 99 100 public void testAddCastHint2() throws Exception { 101 performTest("org.netbeans.test.java.hints.AddCast2", "Cast", 20, 13); 102 } 103 104 public void testAddCastHint3() throws Exception { 105 performTest("org.netbeans.test.java.hints.AddCast3", "Cast", 20, 20); 106 } 107 108 public void testAddCastHint4() throws Exception { 109 performTest("org.netbeans.test.java.hints.AddCast4", "Cast", 22, 10); 110 } 111 112 public void testAddCastHint5() throws Exception { 113 performTest("org.netbeans.test.java.hints.AddCast5", "Cast", 12, 1); 114 } 115 116 public void testAddCastHint6() throws Exception { 117 performTest("org.netbeans.test.java.hints.AddCast6", "Cast", 13, 23); 118 } 119 120 public void testAddCastHint7() throws Exception { 121 performTest("org.netbeans.test.java.hints.AddCast7", "Cast", 12, 18); 122 } 123 124 public void testAddCastHint8() throws Exception { 125 performTest("org.netbeans.test.java.hints.AddCast8", "Cast", 13, 18); 126 } 127 128 public void testAddCastHint9() throws Exception { 129 performTestDoNotPerform("org.netbeans.test.java.hints.AddCast9", 11, 18); 132 } 133 134 public void testAddCastHint10() throws Exception { 135 performTest("org.netbeans.test.java.hints.AddCast10", "Cast", 13, 18); 137 } 138 139 public void testAddCastHint11() throws Exception { 140 performTestDoNotPerform("org.netbeans.test.java.hints.AddCast11", 12, 18); 141 } 142 143 public void testAddCastHintDoNotPropose() throws Exception { 144 performTestDoNotPerform("org.netbeans.test.java.hints.AddCastDoNotPropose", 9, 18); 146 } 147 148 public void testAddThrowsClauseHint1() throws Exception { 149 performTest("org.netbeans.test.java.hints.AddThrowsClause1", "throws", 19, 30); 150 } 151 152 public void testAddThrowsClauseHint2() throws Exception { 153 performTest("org.netbeans.test.java.hints.AddThrowsClause2", "throws", 22, 30); 154 } 155 156 public void testAddThrowsClauseHint3() throws Exception { 157 performTest("org.netbeans.test.java.hints.AddThrowsClause3", "throws", 11, 30); 158 } 159 160 public void testAddThrowsClauseHint4() throws Exception { 161 performTest("org.netbeans.test.java.hints.AddThrowsClause4", "throws", 11, 30); 162 } 163 164 166 public void testCreateElementException() throws Exception { 167 performTestDoNotPerform("org.netbeans.test.java.hints.CreateElementException", 10, 27); 168 } 169 170 176 public void testCreateFieldException2() throws Exception { 177 performTestDoNotPerform("org.netbeans.test.java.hints.CreateFieldException2", 8, 15); 178 } 179 180 public void testCreateFieldException3() throws Exception { 181 performTestDoNotPerform("org.netbeans.test.java.hints.CreateFieldException3", 9, 15); 182 } 183 184 225 public void testCreateField1() throws Exception { 226 performTest("org.netbeans.test.java.hints.CreateField1", "field", 23, 18); 227 } 228 229 public void testCreateField2() throws Exception { 230 performTest("org.netbeans.test.java.hints.CreateField2", "field", 23, 20); 231 } 232 233 public void testCreateField3() throws Exception { 234 performTest("org.netbeans.test.java.hints.CreateField3", "field", 23, 20); 235 } 236 237 241 public void testCreateField5() throws Exception { 242 performTest("org.netbeans.test.java.hints.CreateField5", "field", 23, 18); 243 } 244 245 public void testCreateField6() throws Exception { 246 performTest("org.netbeans.test.java.hints.CreateField6", "field", 25, 18); 247 } 248 249 public void testCreateField7() throws Exception { 250 performTestDoNotPerform("org.netbeans.test.java.hints.CreateField7", 9, 18); 251 } 252 253 258 public void testCreateField10() throws Exception { 259 performTest("org.netbeans.test.java.hints.CreateField10", "field", 9, 10); 260 } 261 262 public void testCreateFieldPrimitive() throws Exception { 263 performTest("org.netbeans.test.java.hints.CreateFieldPrimitive", "field", 23, 13); 264 } 265 266 270 public void testCreateFieldMethod2() throws Exception { 271 performTest("org.netbeans.test.java.hints.CreateFieldMethod2", "field", 23, 13); 272 } 273 274 public void testDoNotProposeCreateField2() throws Exception { 279 performTestDoNotPerform("org.netbeans.test.java.hints.DoNotProposeCreateField2", 7, 10); 280 } 281 282 322 public void testCreateLocalVariable1() throws Exception { 323 performTest("org.netbeans.test.java.hints.CreateLocalVariable1", "local", 23, 15); 324 } 325 326 330 public void testCreateLocalVariable3() throws Exception { 331 performTest("org.netbeans.test.java.hints.CreateLocalVariable3", "local", 20, 20); 332 } 333 334 public void testCreateLocalVariable4() throws Exception { 335 performTest("org.netbeans.test.java.hints.CreateLocalVariable4", "local", 8, 18); 336 } 337 338 public void testCreateLocalVariable5() throws Exception { 339 performTest("org.netbeans.test.java.hints.CreateLocalVariable5", "local", 8, 18); 340 } 341 342 public void testCreateLocalVariable6() throws Exception { 343 performTest("org.netbeans.test.java.hints.CreateLocalVariable6", "local", 8, 18); 344 } 345 346 public void testCreateLocalVariable7() throws Exception { 347 performTest("org.netbeans.test.java.hints.CreateLocalVariable7", "local", 10, 18); 348 } 349 350 public void testCreateLocalVariable8() throws Exception { 351 performTest("org.netbeans.test.java.hints.CreateLocalVariable8", "local", 9, 18); 352 } 353 354 public void testCreateLocalVariable9() throws Exception { 355 performTest("org.netbeans.test.java.hints.CreateLocalVariable9", "local", 11, 18); 356 } 357 358 public void testCreateLocalVariable10() throws Exception { 359 performTest("org.netbeans.test.java.hints.CreateLocalVariable10", "local", 10, 18); 360 } 361 362 public void testCreateParam1() throws Exception { 363 performTest("org.netbeans.test.java.hints.CreateParam1", "parameter", 23, 15); 364 } 365 366 public void testCreateParam2() throws Exception { 367 performTest("org.netbeans.test.java.hints.CreateParam2", "parameter", 20, 15); 368 } 369 370 public void testCreateParam3() throws Exception { 371 performTest("org.netbeans.test.java.hints.CreateParam3", "parameter", 20, 15); 372 } 373 374 public void testCreateParam4() throws Exception { 375 performTest("org.netbeans.test.java.hints.CreateParam4", "parameter", 9, 15); 376 } 377 378 public void testCreateParam5() throws Exception { 379 performTest("org.netbeans.test.java.hints.CreateParam5", "parameter", 10, 15); 380 } 381 382 458 public void testNonAbstractClass85806() throws Exception { 459 performTestDoNotPerform("org.netbeans.test.java.hints.AbstractClass4", 8, 1); 460 } 461 462 public void testMakeClassAbstract1() throws Exception { 463 performTest("org.netbeans.test.java.hints.MakeClassAbstract1", "abstract", 3, 1); 464 } 465 466 public void testMakeClassAbstract2() throws Exception { 467 performTest("org.netbeans.test.java.hints.MakeClassAbstract2", "abstract", 3, 1); 468 } 469 470 public void testMakeClassAbstract3() throws Exception { 471 performTest("org.netbeans.test.java.hints.MakeClassAbstract3", "abstract", 3, 1); 472 } 473 474 @Override 475 protected boolean createCaches() { 476 return false; 477 } 478 479 } 480 | Popular Tags |