@Test public void getRegisteredVersions_returnsEmptySet_whenNoVersionsAreRegistered() { GlobalLibraryVersionRegistrar globalLibraryVersionRegistrar = new GlobalLibraryVersionRegistrar(); assertThat(globalLibraryVersionRegistrar.getRegisteredVersions()).isEmpty(); }
Set<LibraryVersion> getRegisteredVersions() { synchronized (infos) { return Collections.unmodifiableSet(infos); } }
GlobalLibraryVersionRegistrar { Set<LibraryVersion> getRegisteredVersions() { synchronized (infos) { return Collections.unmodifiableSet(infos); } } }
GlobalLibraryVersionRegistrar { Set<LibraryVersion> getRegisteredVersions() { synchronized (infos) { return Collections.unmodifiableSet(infos); } } GlobalLibraryVersionRegistrar(); }
GlobalLibraryVersionRegistrar { Set<LibraryVersion> getRegisteredVersions() { synchronized (infos) { return Collections.unmodifiableSet(infos); } } GlobalLibraryVersionRegistrar(); void registerVersion(String sdkName, String version); static GlobalLibraryVersionRegistrar getInstance(); }
GlobalLibraryVersionRegistrar { Set<LibraryVersion> getRegisteredVersions() { synchronized (infos) { return Collections.unmodifiableSet(infos); } } GlobalLibraryVersionRegistrar(); void registerVersion(String sdkName, String version); static GlobalLibraryVersionRegistrar getInstance();  }