package org.dbflute.intro.app.logic.document;

import org.dbflute.intro.unit.UnitIntroTestCase;

/**
 * @author cabos (at sumida jazz festival)
 */
public class DocumentAuthorLogicTest extends UnitIntroTestCase {

    public void test_getAuthor() throws Exception {
        // ## Arrange ##

        // ## Act ##

        // ## Assert ##
    }
}

@@ -215,127 +215,1939 @@
     
-public void test_getAuthor() throws Exception %7B%0A        // ## Arrange ##%0A%0A        // ## Act ##%0A%0A        // ## Assert ##
+// ===================================================================================%0A    //                                                             Pre and Post Processing%0A    //                                                             =======================%0A    // -----------------------------------------------------%0A    //                                             Attribute%0A    //                                             ---------%0A    private String userName;%0A%0A    // -----------------------------------------------------%0A    //                                            Processing%0A    //                                            ----------%0A    @Override%0A    public void setUp() throws Exception %7B%0A        super.setUp();%0A        this.userName = System.getProperty(DocumentAuthorLogic.USER_NAME_KEY);%0A    %7D%0A%0A    @Override%0A    public void tearDown() throws Exception %7B%0A        recoverSystemProperty(DocumentAuthorLogic.USER_NAME_KEY, userName);%0A        super.tearDown();%0A    %7D%0A%0A    private void recoverSystemProperty(String key, String cachedProperty) %7B%0A        if (cachedProperty != null) %7B%0A            System.setProperty(key, cachedProperty);%0A        %7D else %7B%0A            System.clearProperty(key);%0A        %7D%0A    %7D%0A%0A    // ===================================================================================%0A    //                                                                                Test%0A    //                                                                                ====%0A    public void test_getAuthor() throws Exception %7B%0A        // ## Arrange ##%0A        final DocumentAuthorLogic logic = new DocumentAuthorLogic();%0A        inject(logic);%0A        final String userName = %22nanako.kono%22;%0A        System.setProperty(DocumentAuthorLogic.USER_NAME_KEY, userName);%0A%0A        // ## Act ##%0A        String author = logic.getAuthor();%0A%0A        // ## Assert ##%0A        assertEquals(userName, author);
 %0A   

add get author test