@Test public void test_AddressEndpointWrite_NoNE_NoOverwrite() throws Exception { AddressEndpoint endpoint = writeBaseAddrEndpoint(); List<AddressEndpoint> endpoints = neProvider.getEndpoints(); assertEquals(1, endpoints.size()); assertEquals(endpoint, endpoints.get(0)); verifyEmptyLocations(); }
@VisibleForTesting synchronized List<AddressEndpoint> getEndpoints() { return endpoints; }
NeLocationProvider implements ClusteredDataTreeChangeListener<NetworkElements>, AutoCloseable { @VisibleForTesting synchronized List<AddressEndpoint> getEndpoints() { return endpoints; } }
NeLocationProvider implements ClusteredDataTreeChangeListener<NetworkElements>, AutoCloseable { @VisibleForTesting synchronized List<AddressEndpoint> getEndpoints() { return endpoints; } NeLocationProvider(DataBroker dataBroker); }
NeLocationProvider implements ClusteredDataTreeChangeListener<NetworkElements>, AutoCloseable { @VisibleForTesting synchronized List<AddressEndpoint> getEndpoints() { return endpoints; } NeLocationProvider(DataBroker dataBroker); @Override void close(); synchronized void onEndpointsChange(Collection<DataTreeModification<AddressEndpoint>> changes); @Override synchronized void onDataTreeChanged(Collection<DataTreeModification<NetworkElements>> changes); }
NeLocationProvider implements ClusteredDataTreeChangeListener<NetworkElements>, AutoCloseable { @VisibleForTesting synchronized List<AddressEndpoint> getEndpoints() { return endpoints; } NeLocationProvider(DataBroker dataBroker); @Override void close(); synchronized void onEndpointsChange(Collection<DataTreeModification<AddressEndpoint>> changes); @Override synchronized void onDataTreeChanged(Collection<DataTreeModification<NetworkElements>> changes); static final String NE_LOCATION_PROVIDER_NAME; }