parent
8cf62a3325
commit
8e4868af75
5 changed files with 60 additions and 4 deletions
|
|
@ -23,6 +23,10 @@ public class director_property_runme {
|
|||
if (!a.getA().equals("Hello set from MyFoo")) {
|
||||
throw new RuntimeException( "Test failed" );
|
||||
}
|
||||
a.setAByRef("Hello");
|
||||
if (!a.getA().equals("Hello setAByRef from MyFoo")) {
|
||||
throw new RuntimeException( "Test failed" );
|
||||
}
|
||||
a.delete();
|
||||
}
|
||||
|
||||
|
|
@ -36,6 +40,10 @@ public class director_property_runme {
|
|||
if (!a.getA().equals("Hello set from MyFoo")) {
|
||||
throw new RuntimeException( "Test failed" );
|
||||
}
|
||||
a.setAByRef("Hello");
|
||||
if (!a.getA().equals("Hello setAByRef from MyFoo")) {
|
||||
throw new RuntimeException( "Test failed" );
|
||||
}
|
||||
a.delete();
|
||||
}
|
||||
}
|
||||
|
|
@ -49,6 +57,10 @@ class director_property_MyFoo extends Foo {
|
|||
public void setA(String a) {
|
||||
super.setA(a + " set from MyFoo");
|
||||
}
|
||||
@Override
|
||||
public void setAByRef(String a) {
|
||||
super.setA(a + " setAByRef from MyFoo");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue