mil.dod.th.ose.lexicon.doc/test/mil/dod/th/ose/lexicon/doc/markup/TestMarkupGenerator.java
@Test
    public void testGenerateMarkup() throws IOException
    {
        final List<LexiconBase> types = createLexiconData();
        
        m_SUT.generateMarkup(m_OutputFile, types);
        
        verify(m_PrintSream).format("h2. +%s+", "ExtendsOnly");
        verify(m_PrintSream).format("*Extends*: _%s_",  "WorthlessClass");
        verify(m_PrintSream).println("Some description that no one will ever read.");
        verify(m_PrintSream, times(8)).println("----");
        
        verify(m_PrintSream).format("h2. +%s+", "ComplexType1");
        verify(m_PrintSream).println("BLAH");
        verify(m_PrintSream).println("h4. *Attributes*");
        verify(m_PrintSream).println("||Name||Type||Use||Description||");
        verify(m_PrintSream).format("|%s|%s|%s|%s|", "attr1", "string", "optional", " ");
        verify(m_PrintSream).format("|%s|%s|%s|%s|", "attr2", "SomeEnum", "required", "Woohoo! An enum111!!111!");
        verify(m_PrintSream).println("h4. *Elements*");
        verify(m_PrintSream).println("||Name||Type||Min Occurs||Max Occurs||Description||");
        verify(m_PrintSream).format("|%s|%s|%s|%s|%s|", "element1", "foo", "0", "1", 
                    "Insert a description here.");
        verify(m_PrintSream).format("|%s|%s|%s|%s|%s|", "element2", "ImportantStuffz", "1", "unbounded", " ");
        
        verify(m_PrintSream).format("h2. +%s+", "SomethingSimple");
        verify(m_PrintSream).format("*Type*: _%s_", "double");
        verify(m_PrintSream).println("Not so simple sounding description!");
        verify(m_PrintSream).format("*Min Inclusive*: %s", "0.0");
        verify(m_PrintSream).format("*Max Inclusive*: %s", "360.0");
        
        verify(m_PrintSream).format("h2. +%s+", "AwesomeEnum");
        verify(m_PrintSream).format("*Type*: _%s_", "string");
        verify(m_PrintSream).println("||Value||Description||");
        verify(m_PrintSream).format("|%s|%s|", "def", " ");
        verify(m_PrintSream).format("|%s|%s|", "abc", "uuggghhhh");
    }
/**
     * Verify that the appropriate data is printed to the print stream.
     */
Verify that the appropriate data is printed to the print stream.
Verify that the appropriate data is printed to the print stream .
@Test
    public void testGenerateMarkup() throws IOException
    {
        final List<LexiconBase> types = createLexiconData();
        m_SUT.generateMarkup(m_OutputFile, types);
        verify(m_PrintSream).format("h2. +%s+", "ExtendsOnly");
        verify(m_PrintSream).format("*Extends*: _%s_",  "WorthlessClass");
        verify(m_PrintSream).println("Some description that no one will ever read.");
        verify(m_PrintSream, times(8)).println("----");
        verify(m_PrintSream).format("h2. +%s+", "ComplexType1");
        verify(m_PrintSream).println("BLAH");
        verify(m_PrintSream).println("h4. *Attributes*");
        verify(m_PrintSream).println("||Name||Type||Use||Description||");
        verify(m_PrintSream).format("|%s|%s|%s|%s|", "attr1", "string", "optional", " ");
        verify(m_PrintSream).format("|%s|%s|%s|%s|", "attr2", "SomeEnum", "required", "Woohoo! An enum111!!111!");
        verify(m_PrintSream).println("h4. *Elements*");
        verify(m_PrintSream).println("||Name||Type||Min Occurs||Max Occurs||Description||");
        verify(m_PrintSream).format("|%s|%s|%s|%s|%s|", "element1", "foo", "0", "1", 
                    "Insert a description here.");
        verify(m_PrintSream).format("|%s|%s|%s|%s|%s|", "element2", "ImportantStuffz", "1", "unbounded", " ");
        verify(m_PrintSream).format("h2. +%s+", "SomethingSimple");
        verify(m_PrintSream).format("*Type*: _%s_", "double");
        verify(m_PrintSream).println("Not so simple sounding description!");
        verify(m_PrintSream).format("*Min Inclusive*: %s", "0.0");
        verify(m_PrintSream).format("*Max Inclusive*: %s", "360.0");
        verify(m_PrintSream).format("h2. +%s+", "AwesomeEnum");
        verify(m_PrintSream).format("*Type*: _%s_", "string");
        verify(m_PrintSream).println("||Value||Description||");
        verify(m_PrintSream).format("|%s|%s|", "def", " ");
        verify(m_PrintSream).format("|%s|%s|", "abc", "uuggghhhh");
    }
@ Test public void testGenerateMarkup ( ) throws IOException { final List < LexiconBase > types = createLexiconData ( ) ; m_SUT . generateMarkup ( m_OutputFile , types ) ; verify ( m_PrintSream ) . format ( "h2. +%s+" , "ExtendsOnly" ) ; verify ( m_PrintSream ) . format ( "*Extends*: _%s_" , "WorthlessClass" ) ; verify ( m_PrintSream ) . println ( "Some description that no one will ever read." ) ; verify ( m_PrintSream , times ( 8 ) ) . println ( "----" ) ; verify ( m_PrintSream ) . format ( "h2. +%s+" , "ComplexType1" ) ; verify ( m_PrintSream ) . println ( "BLAH" ) ; verify ( m_PrintSream ) . println ( "h4. *Attributes*" ) ; verify ( m_PrintSream ) . println ( "||Name||Type||Use||Description||" ) ; verify ( m_PrintSream ) . format ( "|%s|%s|%s|%s|" , "attr1" , "string" , "optional" , " " ) ; verify ( m_PrintSream ) . format ( "|%s|%s|%s|%s|" , "attr2" , "SomeEnum" , "required" , "Woohoo! An enum111!!111!" ) ; verify ( m_PrintSream ) . println ( "h4. *Elements*" ) ; verify ( m_PrintSream ) . println ( "||Name||Type||Min Occurs||Max Occurs||Description||" ) ; verify ( m_PrintSream ) . format ( "|%s|%s|%s|%s|%s|" , "element1" , "foo" , "0" , "1" , "Insert a description here." ) ; verify ( m_PrintSream ) . format ( "|%s|%s|%s|%s|%s|" , "element2" , "ImportantStuffz" , "1" , "unbounded" , " " ) ; verify ( m_PrintSream ) . format ( "h2. +%s+" , "SomethingSimple" ) ; verify ( m_PrintSream ) . format ( "*Type*: _%s_" , "double" ) ; verify ( m_PrintSream ) . println ( "Not so simple sounding description!" ) ; verify ( m_PrintSream ) . format ( "*Min Inclusive*: %s" , "0.0" ) ; verify ( m_PrintSream ) . format ( "*Max Inclusive*: %s" , "360.0" ) ; verify ( m_PrintSream ) . format ( "h2. +%s+" , "AwesomeEnum" ) ; verify ( m_PrintSream ) . format ( "*Type*: _%s_" , "string" ) ; verify ( m_PrintSream ) . println ( "||Value||Description||" ) ; verify ( m_PrintSream ) . format ( "|%s|%s|" , "def" , " " ) ; verify ( m_PrintSream ) . format ( "|%s|%s|" , "abc" , "uuggghhhh" ) ; }
Verify that the appropriate data is printed to the print stream.
Verify that the appropriate data is printed to the print stream .