Examples of BibliographyEntry


Examples of br.com.caelum.tubaina.bibliography.BibliographyEntry

        assertEquals(expectedBib, latexBibGenerator.generateTextOf(bibliography));
    }
   
    @Test
    public void shouldGenerateBibliographyWithEmptyHowAuthor() throws Exception {
        BibliographyEntry entry = new BibliographyEntry(null, "title", "1999", null, "article", "label", null);
        Bibliography bibliography = new Bibliography(Arrays.asList(entry));
        latexBibGenerator.generateTextOf(bibliography);
    }
View Full Code Here

Examples of br.com.caelum.tubaina.bibliography.BibliographyEntry

        latexBibGenerator.generateTextOf(bibliography);
    }
   
    @Test
    public void shouldAcceptJournalWhenIsArticle() throws Exception {
        BibliographyEntry entry = new BibliographyEntry("joao", "title", "1999", null, "article", "label", "international conference");
        Bibliography bibliography = new Bibliography(Arrays.asList(entry));
        String bib = latexBibGenerator.generateTextOf(bibliography);
        assertTrue(bib.contains("journal = {international conference}"));
    }
View Full Code Here

Examples of br.com.caelum.tubaina.bibliography.BibliographyEntry

        assertTrue(bib.contains("journal = {international conference}"));
    }
   
    @Test
    public void shouldNotAppearJournalWhenEmpty() throws Exception {
        BibliographyEntry entry = new BibliographyEntry("joao", "title", "1999", null, "article", "label", null);
        Bibliography bibliography = new Bibliography(Arrays.asList(entry));
        String bib = latexBibGenerator.generateTextOf(bibliography);
        assertFalse(bib.contains("journal ="));
    }
View Full Code Here

Examples of br.com.caelum.tubaina.bibliography.BibliographyEntry

        assertTrue(html.contains("2012"));
    }
   
    @Test
    public void shouldGenerateHtmlWithJournal() throws Exception {
        BibliographyEntry bibliographyEntry = new BibliographyEntry("autor", "titulo", "2012", "", "article", "ref", "some journal");
        Bibliography bibliography = new Bibliography(Arrays.asList(bibliographyEntry));
       
        String html = htmlBibGenerator.generateTextOf(bibliography);
        assertTrue(html.contains("some journal"));
    }
View Full Code Here

Examples of br.com.caelum.tubaina.bibliography.BibliographyEntry

        assertTrue(html.contains("some journal"));
    }
   
    @Test
    public void shouldNotGenerateHtmlWithEmptyYear() throws Exception {
        BibliographyEntry bibliographyEntry = new BibliographyEntry("autor", "titulo", "", "", "article", "ref", "some journal");
        Bibliography bibliography = new Bibliography(Arrays.asList(bibliographyEntry));
        String html = htmlBibGenerator.generateTextOf(bibliography);
        System.out.println(html);
        assertFalse(html.contains("()"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.