@Test public void newWiresManager() { WiresManager wiresManager = wiresManagerFactory.newWiresManager(layer); assertEquals(wiresManager.getControlFactory(), wiresControlFactory); assertEquals(wiresManager.getWiresHandlerFactory(), wiresHandlerFactory); MagnetDecorator magnetDecorator = (MagnetDecorator) Whitebox.getInternalState(wiresManager.getMagnetManager(), "m_magnetDecorator"); assertTrue(magnetDecorator instanceof StunnerMagnetDecorator); }
@Override public WiresManager newWiresManager(final Layer layer) { WiresManager wiresManager = WiresManager.get(layer); wiresManager.setWiresHandlerFactory(wiresHandlerFactory); wiresManager.setWiresControlFactory(wiresControlFactory); wiresManager.getMagnetManager().setMagnetDecorator(new StunnerMagnetDecorator()); return wiresManager; }
WiresManagerFactoryImpl implements WiresManagerFactory { @Override public WiresManager newWiresManager(final Layer layer) { WiresManager wiresManager = WiresManager.get(layer); wiresManager.setWiresHandlerFactory(wiresHandlerFactory); wiresManager.setWiresControlFactory(wiresControlFactory); wiresManager.getMagnetManager().setMagnetDecorator(new StunnerMagnetDecorator()); return wiresManager; } }
WiresManagerFactoryImpl implements WiresManagerFactory { @Override public WiresManager newWiresManager(final Layer layer) { WiresManager wiresManager = WiresManager.get(layer); wiresManager.setWiresHandlerFactory(wiresHandlerFactory); wiresManager.setWiresControlFactory(wiresControlFactory); wiresManager.getMagnetManager().setMagnetDecorator(new StunnerMagnetDecorator()); return wiresManager; } protected  WiresManagerFactoryImpl(); @Inject  WiresManagerFactoryImpl(final WiresControlFactory wiresControlFactory,
                                   final WiresHandlerFactory wiresHandlerFactory); }
WiresManagerFactoryImpl implements WiresManagerFactory { @Override public WiresManager newWiresManager(final Layer layer) { WiresManager wiresManager = WiresManager.get(layer); wiresManager.setWiresHandlerFactory(wiresHandlerFactory); wiresManager.setWiresControlFactory(wiresControlFactory); wiresManager.getMagnetManager().setMagnetDecorator(new StunnerMagnetDecorator()); return wiresManager; } protected  WiresManagerFactoryImpl(); @Inject  WiresManagerFactoryImpl(final WiresControlFactory wiresControlFactory,
                                   final WiresHandlerFactory wiresHandlerFactory); @Override WiresManager newWiresManager(final Layer layer); }
WiresManagerFactoryImpl implements WiresManagerFactory { @Override public WiresManager newWiresManager(final Layer layer) { WiresManager wiresManager = WiresManager.get(layer); wiresManager.setWiresHandlerFactory(wiresHandlerFactory); wiresManager.setWiresControlFactory(wiresControlFactory); wiresManager.getMagnetManager().setMagnetDecorator(new StunnerMagnetDecorator()); return wiresManager; } protected  WiresManagerFactoryImpl(); @Inject  WiresManagerFactoryImpl(final WiresControlFactory wiresControlFactory,
                                   final WiresHandlerFactory wiresHandlerFactory); @Override WiresManager newWiresManager(final Layer layer);  }