()
| 406 | } |
| 407 | |
| 408 | public void testPointerToStructAsField() { |
| 409 | Node a = Testpkg.newNode("A"); |
| 410 | Node b = Testpkg.newNode("B"); |
| 411 | a.setNext(b); |
| 412 | String got = a.string(); |
| 413 | assertEquals("want Node A points to Node B", "A:B:<end>", got); |
| 414 | } |
| 415 | |
| 416 | public void testImplementsInterface() { |
| 417 | Interface intf = Testpkg.newConcrete(); |