New J2K: add multi-file conversion tests from old j2k
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package test;
|
||||
|
||||
public class Stage {
|
||||
public void context(Acceptor acceptor) {
|
||||
acceptor.acceptFace(new Face() {
|
||||
@Override
|
||||
public void subject(String p) {
|
||||
System.out.println(p);
|
||||
}
|
||||
});
|
||||
acceptor.setFace(new Face() {
|
||||
@Override
|
||||
public void subject(String p) {
|
||||
System.out.println(p);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
class Stage {
|
||||
fun context(acceptor: Acceptor) {
|
||||
acceptor.acceptFace { p -> println(p) }
|
||||
acceptor.face = Face { p -> println(p) }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package test;
|
||||
|
||||
public class Acceptor {
|
||||
private Face face;
|
||||
|
||||
public Face getFace() {
|
||||
return face;
|
||||
}
|
||||
|
||||
public void setFace(Face face) {
|
||||
this.face = face;
|
||||
}
|
||||
|
||||
public void acceptFace(Face face) {
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package test;
|
||||
|
||||
public class Acceptor {
|
||||
private Face face;
|
||||
|
||||
public Face getFace() {
|
||||
return face;
|
||||
}
|
||||
|
||||
public void setFace(Face face) {
|
||||
this.face = face;
|
||||
}
|
||||
|
||||
public void acceptFace(Face face) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test;
|
||||
|
||||
public interface Face {
|
||||
void subject(String p);
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test;
|
||||
|
||||
public interface Face {
|
||||
void subject(String p);
|
||||
}
|
||||
Reference in New Issue
Block a user