change xml options (#875)HEADtrunk
Diffstat (limited to 'src/testcases/org/apache/poi/ss/usermodel/TestFractionFormat.java')
0 files changed, 0 insertions, 0 deletions
span class="n">privateInt = 84; static private void staticPrivateMethod(String caller) { Tester.event(caller + " -> SuperEnclosing.staticPrivateMethod()"); } private void privateMethod(String caller) { Tester.event(caller + " -> SuperEnclosing.privateMethod()"); } static class SubNested extends SuperEnclosing { static void doit() { String label = "SubNested.run()"; label = label + "(" + staticPrivateInt + ")"; // i-c-e Tester.event(label); staticPrivateMethod(label); // i-c-e } static class SubSubNestedNoExtends { static void doit() { String label = "SubSubNestedNoExtends.run()"; label = label + "(" + staticPrivateInt + ")"; // i-c-e Tester.event(label); staticPrivateMethod(label); // i-c-e } } static class SubSubNested extends SuperEnclosing { static void doit() { String label = "SubSubNestedNoExtends.run()"; label = label + "(" + staticPrivateInt + ")"; // i-c-e Tester.event(label); staticPrivateMethod(label); // i-c-e } } } void runSubInner() { new SubInner("Constructed in SuperEnclosing.run()").doit(); } void runMethodLocalInnerSubclass() { new SuperEnclosing() { void doit() { String label = "runMethodLocalInnerSubclass anonymous SuperEnclosing subclass"; label = label + "(" + staticPrivateInt + ", " + privateInt + ")"; // i-c-e Tester.event(label); privateMethod(label); // i-c-e staticPrivateMethod(label); // i-c-e } }.doit(); new SuperEnclosing() { void doit() { new SuperEnclosing() { void doit() { String label = "runMethodLocalInnerSubclass anonymous SuperEnclosing (inner) subclass"; label = label + "(" + staticPrivateInt + ", " + privateInt + ")"; // i-c-e Tester.event(label); privateMethod(label); // i-c-e staticPrivateMethod(label); // i-c-e } }.doit(); } }.doit(); } // ---------- non-static inner class SubInner extends SuperEnclosing { String name; SubInner(String name) { this.name = name; } void doit() { String label = "SubInner=\"" + name + "\".run() " ; label = label + "(" + staticPrivateInt + ", " + privateInt + ")"; // i-c-e Tester.event(label); privateMethod(label); // i-c-e staticPrivateMethod(label); // i-c-e } class SubSubInnerNoExtends { void doit() { String label = "SubSubInnerNoExtends.run()"; label = label + "(" + staticPrivateInt + ", " + privateInt + ")"; // i-c-e Tester.event(label); staticPrivateMethod(label); // i-c-e privateMethod(label); // i-c-e } } class SubSubInner extends SuperEnclosing { void doit() { String label = "SubSubInnerNoExtends.run()"; label = label + "(" + staticPrivateInt + ", " + privateInt + ")"; // i-c-e Tester.event(label); staticPrivateMethod(label); // i-c-e privateMethod(label); // i-c-e } } } } class Expect { static { Tester.expectEvent("SubNested.run()(42)"); Tester.expectEvent("SubNested.run()(42) -> SuperEnclosing.staticPrivateMethod()"); Tester.expectEvent("SubSubNestedNoExtends.run()(42)"); Tester.expectEvent("SubSubNestedNoExtends.run()(42) -> SuperEnclosing.staticPrivateMethod()"); Tester.expectEvent("SubSubNestedNoExtends.run()(42)"); Tester.expectEvent("SubSubNestedNoExtends.run()(42) -> SuperEnclosing.staticPrivateMethod()"); Tester.expectEvent("SubInner=\"main\".run() (42, 84)"); Tester.expectEvent("SubInner=\"main\".run() (42, 84) -> SuperEnclosing.privateMethod()"); Tester.expectEvent("SubInner=\"main\".run() (42, 84) -> SuperEnclosing.staticPrivateMethod()"); Tester.expectEvent("SubInner=\"Constructed in SuperEnclosing.run()\".run() (42, 84)"); Tester.expectEvent("SubInner=\"Constructed in SuperEnclosing.run()\".run() (42, 84) -> SuperEnclosing.privateMethod()"); Tester.expectEvent("SubInner=\"Constructed in SuperEnclosing.run()\".run() (42, 84) -> SuperEnclosing.staticPrivateMethod()"); Tester.expectEvent("runMethodLocalInnerSubclass anonymous SuperEnclosing subclass(42, 84)"); Tester.expectEvent("runMethodLocalInnerSubclass anonymous SuperEnclosing subclass(42, 84) -> SuperEnclosing.privateMethod()"); Tester.expectEvent("runMethodLocalInnerSubclass anonymous SuperEnclosing subclass(42, 84) -> SuperEnclosing.staticPrivateMethod()"); Tester.expectEvent("runMethodLocalInnerSubclass anonymous SuperEnclosing (inner) subclass(42, 84)"); Tester.expectEvent("runMethodLocalInnerSubclass anonymous SuperEnclosing (inner) subclass(42, 84) -> SuperEnclosing.privateMethod()"); Tester.expectEvent("runMethodLocalInnerSubclass anonymous SuperEnclosing (inner) subclass(42, 84) -> SuperEnclosing.staticPrivateMethod()"); } }