mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +07:00
moving tests
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
class Element {
|
||||
String id;
|
||||
|
||||
String getID() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public String method(Element element) {
|
||||
return getID() + element.getID();
|
||||
}
|
||||
|
||||
public String staticMethod(Element element) {
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
buffer.append(element.getID());
|
||||
return buffer.toString();
|
||||
}
|
||||
static Element toXML(Element element){
|
||||
X el= new X("El")
|
||||
el.setAttribute("attr", element.getID());
|
||||
return el;
|
||||
}
|
||||
}
|
||||
|
||||
class Usage {
|
||||
public String staticMethod(Element element) {
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
buffer.append(element.getID());
|
||||
return buffer.toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user