mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 15:29:22 +00:00
forgotten test
This commit is contained in:
parent
d98c3ec9b9
commit
e39ded506f
@ -0,0 +1,21 @@
|
|||||||
|
package source.structural;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
public class JDKInheritance extends ArrayList<String> {
|
||||||
|
|
||||||
|
public int getI() {
|
||||||
|
return 7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
|
||||||
|
JDKInheritance i = new JDKInheritance();
|
||||||
|
i.add("a");
|
||||||
|
assert i.contains("a") && i.size() == 1;
|
||||||
|
assert i.getI() == 7;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user