package me.chyxion.tigon.codegen.service.support;

import java.util.Map;
import me.chyxion.tigon.codegen.model.CodeGenArgs;

/**
 * @version 0.0.1
 * @since 0.0.1
 * @author Shaun Chyxion <br>
 * chyxion@163.com <br>
 * Oct 7, 2014 7:57:07 PM
 */
public class ControllerTestCodeGen extends ControllerCodeGen {

    /**
     * {@inheritDoc}
     */
    @Override
    public String process(Map<String, Object> dataModel, String module, String model) {
        return render(new CodeGenArgs(
                    CodeGenArgs.TARGET_CONTROLLER_TEST, 
                    "/codegen/controller-test.ftl", 
                    dataModel,
                    testDir + dataModel.get("pkgDir") + 
                    "/controller/" + model + "ControllerTest.java"));
    }
}
