package org.seasar.extension.jdbc.gen.internal.generator;

import javax.annotation.Generated;
import org.seasar.extension.jdbc.JdbcManager;
import org.seasar.extension.unit.S2TestCase;

import static hoge.entity.AaaNames.*;

/**
 * {@link Aaa}のテストクラスです。
 * 
 */
@Generated(value = {"S2JDBC-Gen test-0.0.1", "org.seasar.extension.jdbc.gen.internal.model.EntityTestModelFactoryImpl"}, date = "2009/04/01 13:12:11")
public class AaaTest extends S2TestCase {

    private JdbcManager jdbcManager;

    /**
     * 事前処理をします。
     * 
     * @throws Exception
     */
    @Override
    protected void setUp() throws Exception {
        super.setUp();
        include("s2jdbc.dicon");
    }

    /**
     * 識別子による取得をテストします。
     * 
     * @throws Exception
     */
    public void testFindById() throws Exception {
        jdbcManager.from(Aaa.class).id(1).getSingleResult();
    }

    /**
     * bbbとの外部結合をテストします。
     * 
     * @throws Exception
     */
    public void testLeftOuterJoin_bbb() throws Exception {
        jdbcManager.from(Aaa.class).leftOuterJoin(bbb()).id(1).getSingleResult();
    }
}