more java tests moved to community

This commit is contained in:
Alexey Kudravtsev
2010-06-25 12:46:40 +04:00
parent 735a9d17a8
commit 2718da9fc7
1139 changed files with 14287 additions and 0 deletions
@@ -0,0 +1,13 @@
// "Create Inner Class 'MyCollection'" "true"
import java.util.*;
public class Test {
public static void main() {
Collection c = new MyCollection(1, "test");
}
private static class MyCollection implements Collection {
public MyCollection(int i, String s) {<caret>
}
}
}
@@ -0,0 +1,13 @@
// "Create Inner Class 'MyArrayList'" "true"
import java.util.*;
public class Test {
public static void main() {
ArrayList list = new MyArrayList(1, "test");
}
private static class MyArrayList extends ArrayList {
public MyArrayList(int i, String s) {<caret>
}
}
}
@@ -0,0 +1,12 @@
// "Create Inner Class 'MyInteger'" "true"
public class Test {
public static void main() {
int xxx = 3;
Integer i = new MyInteger(xxx);
}
private static class MyInteger {
public MyInteger(int xxx) {<caret>
}
}
}
@@ -0,0 +1,9 @@
// "Create Inner Class 'MyCollection'" "true"
public class Test {
public static void main() {
Collection[] cc = new MyCollection[10];
}
<caret>
private static class MyCollection {
}
}
@@ -0,0 +1,12 @@
// "Create Inner Class 'MyTableModel'" "true"
import javax.swing.*;
import javax.swing.table.TableModel;
public class Test {
public static void main() {
JTable table = new JTable(new MyTableModel());
}
<caret>
private static class MyTableModel implements TableModel {
}
}
@@ -0,0 +1,14 @@
// "Create Inner Class 'MyCollection'" "true"
import java.util.*;
public class Test {
public static void main() {
Collection c = new MyCollection(1, "test") {
};
}
private static class MyCollection implements Collection {
public MyCollection(int i, String s) {<caret>
}
}
}
@@ -0,0 +1,9 @@
// "Create Inner Class 'Generic'" "true"
class Test {
void foo () {
new Generic<String> ();
}
<caret>
private class Generic<T> {
}
}
@@ -0,0 +1,8 @@
// "Create Inner Class 'MyCollection'" "true"
import java.util.*;
public class Test {
public static void main() {
Collection c = new <caret>MyCollection(1, "test");
}
}
@@ -0,0 +1,8 @@
// "Create Inner Class 'MyArrayList'" "true"
import java.util.*;
public class Test {
public static void main() {
ArrayList list = new <caret>MyArrayList(1, "test");
}
}
@@ -0,0 +1,7 @@
// "Create Inner Class 'MyInteger'" "true"
public class Test {
public static void main() {
int xxx = 3;
Integer i = new <caret>MyInteger(xxx);
}
}
@@ -0,0 +1,8 @@
// "Create Inner Class 'Inner'" "false"
public class Test {
public static void main() {
new Te<caret>st.Inner();
}
public static class Inner {}
}
@@ -0,0 +1,8 @@
// "Create Inner Class 'Inner'" "false"
public class Test {
public static void main() {
new Inner<caret>();
}
public static class Inner {}
}
@@ -0,0 +1,6 @@
// "Create Inner Class 'MyCollection'" "true"
public class Test {
public static void main() {
Collection[] cc = new <caret>MyCollection[10];
}
}
@@ -0,0 +1,8 @@
// "Create Inner Class 'Inner'" "false"
import java.util.*;
public class Test {
public static void main() {
Collection c = new Test.My<caret>Collection(1);
}
}
@@ -0,0 +1,8 @@
// "Create Inner Class 'MyTableModel'" "true"
import javax.swing.*;
public class Test {
public static void main() {
JTable table = new JTable(new MyTable<caret>Model());
}
}
@@ -0,0 +1,9 @@
// "Create Inner Class 'MyCollection'" "true"
import java.util.*;
public class Test {
public static void main() {
Collection c = new <caret>MyCollection(1, "test") {
};
}
}
@@ -0,0 +1,6 @@
// "Create Inner Class 'Generic'" "true"
class Test {
void foo () {
new <caret>Generic<String> ();
}
}