@Test public void testCreateFontRemotePack_hasValidUrls() throws Exception { FontPackage fontPackage = new FontPackage(FONT_NAME); Set<String> fontNames = from(fontPackage.getFontSet()) .map(Font::getUrl) .toList() .map(HashSet<String>::new) .toBlocking() .single(); assertTrue(fontNames.containsAll(EXPECTED_URLS)); }
public Set<Font> getFontSet() { return mFontSet; }
FontPackage { public Set<Font> getFontSet() { return mFontSet; } }
FontPackage { public Set<Font> getFontSet() { return mFontSet; } FontPackage(String name); private  FontPackage(File folder); }
FontPackage { public Set<Font> getFontSet() { return mFontSet; } FontPackage(String name); private  FontPackage(File folder); static FontPackage fromFolder(File folder); String getName(); Set<Font> getFontSet(); Typeface getTypeface(Style style); Font getFont(Style style); static boolean validFontPackFolder(String path); }
FontPackage { public Set<Font> getFontSet() { return mFontSet; } FontPackage(String name); private  FontPackage(File folder); static FontPackage fromFolder(File folder); String getName(); Set<Font> getFontSet(); Typeface getTypeface(Style style); Font getFont(Style style); static boolean validFontPackFolder(String path);  }