PppoeClientManager { public void removeClient(PppoeDeviceInfo deviceInfo) { log.info("removeClient(): Device {}", deviceInfo.deviceId()); if ((deviceInfo != null) && deviceInfo.type().equals(PppoeDeviceType.CLIENT)) { PppoeClientInfo clientInfo = (PppoeClientInfo) deviceInfo; if ((clientInfo != null) && (!isNullOrEmpty(clientInfo.serviceSpecificId()))) { if (clientInfo.configured()) { log.info("removeClient(): configured SSID {}", clientInfo.serviceSpecificId()); clientInfo.clear(); } else { log.info("removeClient(): auto SSID {} VLAN {}:{}", clientInfo.serviceSpecificId(), clientInfo.sVlan(), clientInfo.cVlan()); clients.remove(clientInfo.serviceSpecificId()); } } } } PppoeClientManager(DeviceService deviceService, DriverService driverService,
                              MastershipService mastershipService, AccessDeviceService accessDeviceService); boolean configClient(String ssid, String paramName, String paramValue); Collection<PppoeClientInfo> getClients(String ssid); Collection<PppoeSessionInfo> getSessions(); void addClient(PppoeDeviceInfo deviceInfo); void removeClient(PppoeDeviceInfo deviceInfo);  }
@Test public void testremoveClientDeviceTypeClient() throws Exception { PppoeDeviceInfo pppoeDeviceInfo = new PppoeClientInfo(PppoeAdminState.ENABLE); try { clientManager.removeClient(pppoeDeviceInfo); } catch (Exception e) { fail(); } }
@Test public void testremoveClientDeviceTypeNotClient() throws Exception { PppoeDeviceInfo pppoeDeviceInfo = new PppoeServerInfo(RADIUSSERVER, RADIUSKEY); try { clientManager.removeClient(pppoeDeviceInfo); } catch (Exception e) { fail(); } }