moving tests

This commit is contained in:
Dmitry Jemerov
2009-09-10 19:49:38 +04:00
parent e389680982
commit b43c03ca2f
305 changed files with 32 additions and 4 deletions
@@ -0,0 +1,9 @@
package p1;
public class ParentWithProtected {
protected int myOwn = 0;
protected void increaseMe(int i) {
myOwn += i;
}
}
@@ -0,0 +1,13 @@
package p2;
import p1.ParentWithProtected;
public class Usage {
public void test() {
ParentWithProtected sws = new ParentWithProtected() {
public void creaseMe(int i) {
increaseMe(i);
}
};
}
}
@@ -0,0 +1,9 @@
package p1;
public class ParentWithProtected {
protected int myOwn = 0;
protected void increaseMe(int i) {
myOwn += i;
}
}
@@ -0,0 +1,7 @@
package p1;
public class SubjectWithSuper extends ParentWithProtected {
public void creaseMe(int i) {
increaseMe(i);
}
}
@@ -0,0 +1,9 @@
package p2;
import p1.SubjectWithSuper;
public class Usage {
public void test() {
SubjectWithSuper sws = new SubjectWithSuper();
}
}