CSL implements Closeable { public static Bibliography makeAdhocBibliography(String style, CSLItemData... items) throws IOException { return makeAdhocBibliography(style, "html", items); } CSL(ItemDataProvider itemDataProvider, String style);  CSL(ItemDataProvider itemDataProvider, String style,
            boolean experimentalMode);  CSL(ItemDataProvider itemDataProvider, AbbreviationProvider abbreviationProvider,
            String style);  CSL(ItemDataProvider itemDataProvider, String style, String lang);  CSL(ItemDataProvider itemDataProvider, AbbreviationProvider abbreviationProvider,
            String style, String lang);  CSL(ItemDataProvider itemDataProvider, LocaleProvider localeProvider,
            String style, String lang, boolean forceLang);  CSL(ItemDataProvider itemDataProvider, LocaleProvider localeProvider,
            AbbreviationProvider abbreviationProvider, String style,
            String lang, boolean forceLang);  CSL(ItemDataProvider itemDataProvider, LocaleProvider localeProvider,
            AbbreviationProvider abbreviationProvider, VariableWrapper variableWrapper,
            String style, String lang, boolean forceLang);  CSL(ItemDataProvider itemDataProvider, LocaleProvider localeProvider,
            AbbreviationProvider abbreviationProvider, VariableWrapper variableWrapper,
            String style, String lang, boolean forceLang,
            boolean experimentalMode); static List<String> getSupportedOutputFormats(); static Set<String> getSupportedStyles(); static String getCiteprocJsVersion(); static String getJavaScriptEngineName(); static String getJavaScriptEngineVersion(); static boolean supportsStyle(String style); static Set<String> getSupportedLocales(); String getIndependentParentLink(String style); void setOutputFormat(String format); void setConvertLinks(boolean convert); void setAbbreviations(String name); void registerCitationItems(String... ids); void registerCitationItems(String[] ids, boolean unsorted); Collection<CSLItemData> getRegisteredItems(); List<Citation> makeCitation(String... ids); List<Citation> makeCitation(CSLCitation citation); List<Citation> makeCitation(CSLCitation citation,
            List<CitationIDIndexPair> citationsPre,
            List<CitationIDIndexPair> citationsPost); Bibliography makeBibliography(); Bibliography makeBibliography(SelectionMode mode, CSLItemData... selection); Bibliography makeBibliography(SelectionMode mode,
            CSLItemData[] selection, CSLItemData[] quash); Bibliography makeBibliography(Predicate<CSLItemData> filter); void reset(); static Bibliography makeAdhocBibliography(String style, CSLItemData... items); static Bibliography makeAdhocBibliography(String style, String outputFormat,
            CSLItemData... items); static Bibliography makeAdhocBibliography(String style, String outputFormat,
            boolean experimentalMode, CSLItemData... items); @Override void close(); static void removeThreadLocals();  }
@Test @Parameters({"false", "true"}) public void makeAdhocBibliography(boolean experimentalMode) throws Exception { CSLItemData item = new CSLItemDataBuilder() .id("citeproc-java") .type(CSLType.WEBPAGE) .title("citeproc-java: A Citation Style Language (CSL) processor for Java") .author("Michel", "Kr\u00E4mer") .issued(2013, 9, 7) .URL("http: .accessed(2013, 12, 6) .build(); String bibl = CSL.makeAdhocBibliography("ieee", "text", experimentalMode, item).makeString(); assertEquals("[1]M. Kr\u00E4mer, \u201cciteproc-java: A Citation Style " + "Language (CSL) processor for Java,\u201d 07-Sep-2013. [Online]. " + "Available: http: }
@Test @Parameters({"false", "true"}) public void eventPlace(boolean experimentalMode) throws Exception { CSLItemData item = new CSLItemDataBuilder() .type(CSLType.PAPER_CONFERENCE) .title("The Paper") .author("The", "Author") .event("Conference") .eventPlace("The Place") .build(); String bib = CSL.makeAdhocBibliography("ieee", "text", experimentalMode, item).makeString(); assertEquals("[1]T. Author, \u201cThe Paper,\u201d presented at the Conference, The Place.\n", bib); }
@Test @Parameters({"false", "true"}) public void dependentStyle(boolean experimentalMode) throws Exception { String bibl = CSL.makeAdhocBibliography("dependent/proceedings-of-the-ieee.csl", "text", experimentalMode, items[0]).makeString(); assertEquals("[1]S. C. Johnson and B. W. Kernighan, \u201cThe Programming Language B,\u201d " + "Bell Laboratories, Murray Hill, NJ, USA, 8, 1973.\n", bibl); }