PageRenderTime 22ms CodeModel.GetById 13ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/web/DRCP/test/com/bluesky/drcp/persistence/dao/ModuleDaoTest.java

http://drcp.googlecode.com/
Java | 23 lines | 17 code | 6 blank | 0 comment | 0 complexity | 58c6e21eb2c64ce9a39383d35b0c9cff MD5 | raw file
 1package com.bluesky.drcp.persistence.dao;
 2
 3import junit.framework.TestCase;
 4import util.ApplicationContextUtil;
 5
 6import com.bluesky.drcp.business.Module;
 7
 8public class ModuleDaoTest extends TestCase {
 9private ModuleDao dao;
10	protected void setUp() throws Exception {
11		super.setUp();
12		
13		dao = (ModuleDao) ApplicationContextUtil.getFactory().getBean(
14		"moduleDao");
15	}
16
17	public void testGet() {
18		String id="UserMgr";
19		Module o = dao.get(id);
20		assertNotNull(o);
21	}
22
23}