package org.docksidestage.mysql.dbflute.whitebox.dfprop;

import java.io.File;
import java.io.FileInputStream;
import java.util.Map;
import java.util.Map.Entry;

import org.dbflute.helper.mapstring.MapListFile;
import org.dbflute.utflute.core.PlainTestCase;

/**
 * @author jflute
 */
public class WxLReverseTableNameMapTest extends PlainTestCase {

    public void test_getMessage_noArg() throws Exception {
        // ## Arrange ##
        String mapFile = getProjectDir().getCanonicalPath() + "/dbflute_maihamadb/output/doc/data/tableNameMap.dataprop";
        if (!new File(mapFile).exists()) {
            return;
        }

        // ## Act ##
        Map<String, Object> map = new MapListFile().readMap(new FileInputStream(mapFile));

        // ## Assert ##
        assertFalse(map.isEmpty());
        for (Entry<String, Object> entry : map.entrySet()) {
            log(entry.getKey(), entry.getValue());
        }
    }
}
@@ -192,25 +192,19 @@
 per.
+df
 map
-string.MapList
+.DfMap
 File
@@ -703,15 +703,13 @@
 new 
+Df
 Map
-List
 File

use DfMapFile