Lines 35-45
Link Here
|
35 |
|
35 |
|
36 |
// Static initializer to specify tests subset using TESTS_* static variables |
36 |
// Static initializer to specify tests subset using TESTS_* static variables |
37 |
// All specified tests which does not belong to the class are skipped... |
37 |
// All specified tests which does not belong to the class are skipped... |
38 |
// static { |
38 |
static { |
39 |
// TESTS_NAMES = new String[] { "test000" }; |
39 |
// TESTS_NAMES = new String[] { "test000" }; |
40 |
// TESTS_NUMBERS = new int[] { 65 }; |
40 |
// TESTS_NUMBERS = new int[] { 78 }; |
41 |
// TESTS_RANGE = new int[] { 11, -1 }; |
41 |
// TESTS_RANGE = new int[] { 151, -1 }; |
42 |
// } |
42 |
} |
43 |
public static Test suite() { |
43 |
public static Test suite() { |
44 |
return buildComparableTestSuite(testClass()); |
44 |
return buildComparableTestSuite(testClass()); |
45 |
} |
45 |
} |
Lines 4336-4339
Link Here
|
4336 |
settings, |
4336 |
settings, |
4337 |
null); |
4337 |
null); |
4338 |
} |
4338 |
} |
|
|
4339 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=184957 |
4340 |
public void test147() { |
4341 |
this.runConformTest( |
4342 |
new String[] { |
4343 |
"X.java", |
4344 |
"public class X {\n" + |
4345 |
" public static void main(String[] args) {\n" + |
4346 |
" if(new Integer(2) == 0) {}\n" + |
4347 |
" System.out.println(\"SUCCESS\");\n" + |
4348 |
" }\n" + |
4349 |
"}", |
4350 |
}, |
4351 |
"SUCCESS"); |
4352 |
} |
4353 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=184957 |
4354 |
public void test148() { |
4355 |
this.runConformTest( |
4356 |
new String[] { |
4357 |
"X.java", |
4358 |
"public class X {\n" + |
4359 |
" public static void main(String[] args) {\n" + |
4360 |
" Z test = new Z(1, 1);\n" + |
4361 |
" System.out.println(\"SUCCESS\" + test.foo());\n" + |
4362 |
" }\n" + |
4363 |
"}", |
4364 |
"Z.java", |
4365 |
"class Z {\n" + |
4366 |
" public <A, B extends A> Z(A a, B b) {\n" + |
4367 |
" }\n" + |
4368 |
" public int foo() {\n" + |
4369 |
" return 0;\n" + |
4370 |
" }\n" + |
4371 |
"}" |
4372 |
}, |
4373 |
"SUCCESS0"); |
4374 |
} |
4375 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=184957 |
4376 |
public void test149() { |
4377 |
this.runConformTest( |
4378 |
new String[] { |
4379 |
"X.java", |
4380 |
"public class X {\n" + |
4381 |
" public static void main(String[] args) {\n" + |
4382 |
" Z test = new Z(1, 1);\n" + |
4383 |
" System.out.println(\"SUCCESS\");\n" + |
4384 |
" }\n" + |
4385 |
"}", |
4386 |
"Z.java", |
4387 |
"class Z {\n" + |
4388 |
" public <A, B extends A> Z(A a, B b) {\n" + |
4389 |
" }\n" + |
4390 |
"}" |
4391 |
}, |
4392 |
"SUCCESS"); |
4393 |
} |
4394 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=184957 |
4395 |
public void test150() { |
4396 |
this.runConformTest( |
4397 |
new String[] { |
4398 |
"X.java", |
4399 |
"public class X {\n" + |
4400 |
" public static void main(String[] args) {\n" + |
4401 |
" if(new Integer(2) == 0) {\n" + |
4402 |
" System.out.println(\"FAILED\");\n" + |
4403 |
" } else {\n" + |
4404 |
" System.out.println(\"SUCCESS\");\n" + |
4405 |
" }\n" + |
4406 |
" }\n" + |
4407 |
"}", |
4408 |
}, |
4409 |
"SUCCESS"); |
4410 |
} |
4411 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=184957 |
4412 |
public void test151() { |
4413 |
this.runConformTest( |
4414 |
new String[] { |
4415 |
"X.java", |
4416 |
"public class X {\n" + |
4417 |
" public static void main(String[] args) {\n" + |
4418 |
" if(new Double(2.0) == 0.0) {\n" + |
4419 |
" System.out.println(\"FAILED\");\n" + |
4420 |
" } else {\n" + |
4421 |
" System.out.println(\"SUCCESS\");\n" + |
4422 |
" }\n" + |
4423 |
" }\n" + |
4424 |
"}", |
4425 |
}, |
4426 |
"SUCCESS"); |
4427 |
} |
4428 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=184957 |
4429 |
public void test152() { |
4430 |
this.runConformTest( |
4431 |
new String[] { |
4432 |
"X.java", |
4433 |
"public class X {\n" + |
4434 |
" public static void main(String[] args) {\n" + |
4435 |
" if(new Double(2.0) == 0.0) {}\n" + |
4436 |
" System.out.println(\"SUCCESS\");\n" + |
4437 |
" }\n" + |
4438 |
"}", |
4439 |
}, |
4440 |
"SUCCESS"); |
4441 |
} |
4339 |
} |
4442 |
} |