Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PageList {
- public void printPageOne() {
- System.out.println("Print Page One");
- }
- public PageTwo nested() {
- return new PageTwo();
- }
- public class PageTwo {
- public void printPageTwo() {
- System.out.println("Print Page Two");
- }
- }
- }
- public class Repository {
- public PageList lists() {
- return new PageList();
- }
- }
- @Test
- public void testRunThis() {
- lists().printPageOne();
- lists().nested().printPageTwo();
- }
Add Comment
Please, Sign In to add comment