| 1 | public class FactoryTest { |
| 2 | |
| 3 | public static void main(String[] args) { |
| 4 | Product pencil = ProductFactory.getProduct("Pencil"); |
| 5 | pencil.sell(); // sell Pencil !!! |
| 6 | |
| 7 | Product note = ProductFactory.getProduct("Note"); |
| 8 | note.sell(); // sell Note !!! |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | interface Product { |
| 13 | public void sell(); |
nothing calls this directly
no outgoing calls
no test coverage detected