Skip to content

Commit 707ebf6

Browse files
author
svorenova
committed
Cleaning existing unit tests
1 parent af3efea commit 707ebf6

16 files changed

+73
-83
lines changed
-54 Bytes
Binary file not shown.
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
class GenericArray<T>
22
{
33
public T [] t;
4-
public Integer [] Ia;
5-
public int [] ia;
64
}
Binary file not shown.
Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
public class GenericFunctions
22
{
3-
public static <T> void processSimpleGeneric(Generic<T> x) {
4-
assert(x.t==null);
3+
public static <T> void processSimpleGeneric(Generic<T> x)
4+
{
5+
56
}
67

78
// Test a wildcard generic bound by an interface
8-
public static <T extends Interface> void processUpperBoundInterfaceGeneric(Generic<T> x) {
9-
assert(x.t.getX() == 4);
9+
public static <T extends Interface> void processUpperBoundInterfaceGeneric(Generic<T> x)
10+
{
11+
1012
}
1113

1214
// Test a wild card generic bound by a class
13-
public static <T extends Interface_Implementation> void processUpperBoundClassGeneric(Generic<T> x) {
14-
assert(x.t.getX() == 4);
15+
public static <T extends Interface_Implementation> void processUpperBoundClassGeneric(Generic<T> x)
16+
{
17+
1518
}
1619

1720
// Test a wild card generic bound by a class and an interface
18-
public static <T extends Interface_Implementation & Interface> void processDoubleUpperBoundClassGeneric(Generic<T> x) {
19-
assert(x.t.getX() == 4);
21+
public static <T extends Interface_Implementation & Interface> void processDoubleUpperBoundClassGeneric(Generic<T> x)
22+
{
23+
2024
}
2125

2226
// Test a wild card generic bound by two interfaces
23-
public static <T extends Interface & Interface_Copy> void processDoubleUpperBoundInterfaceGeneric(Generic<T> x) {
24-
assert(x.t.getX() == 4);
27+
public static <T extends Interface & Interface_Copy> void processDoubleUpperBoundInterfaceGeneric(Generic<T> x)
28+
{
29+
2530
}
2631
}
-598 Bytes
Binary file not shown.
-848 Bytes
Binary file not shown.
-458 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)