package com.yoda.yodao.test;

import java.util.Arrays;

import com.yoda.yodao.test.dao.UserDao;
import com.yoda.yodao.test.dao.impl.UserDaoImpl;
import com.yoda.yodao.test.model.User;
import com.yodao.YoDaoFactory;

public class App {

	public static void main(String[] args) {
		/*
		 * UserDao userDao = YoDaoFactory.create(UserDao.class); User user =
		 * userDao.findOne(1); user.getAge();
		 */

		String[] arr = new String[] { "a", "b" };
		System.out.println(Arrays.toString(arr));
	}

}

package com.yoda.yodao.test;

import com.yoda.yodao.DaoFactory;
import com.yoda.yodao.test.dao.UserDao;
import com.yoda.yodao.test.model.User;

public class App {

	public static void main(String[] args) {
		UserDao userDao = DaoFactory.create(UserDao.class);
		User user = userDao.findOne(1);
		user.getAge();
	}

}

update testing