@@ -0,0 +1,1285 @@
+package gov.nih.nci.ncicb.cadsr.common.persistence.dao.jdbc;%0D%0A%0D%0Aimport static org.junit.Assert.*;%0D%0Aimport gov.nih.nci.ncicb.cadsr.common.dto.DesignationTransferObjectExt;%0D%0A%0D%0Aimport org.junit.Before;%0D%0Aimport org.junit.Test;%0D%0Aimport org.junit.runner.RunWith;%0D%0Aimport org.springframework.beans.factory.annotation.Autowired;%0D%0Aimport org.springframework.test.context.ContextConfiguration;%0D%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0D%0A%0D%0A@RunWith(SpringJUnit4ClassRunner.class)%0D%0A@ContextConfiguration(locations = %7B%22classpath:/applicationContext.xml%22%7D)%0D%0Apublic class JDBCDesignationDAOTest %7B%0D%0A%09%0D%0A%09@Autowired%0D%0A%09JDBCDesignationDAO designationV2Dao;%0D%0A%0D%0A%09@Before%0D%0A%09public void setUp() throws Exception %7B%0D%0A%09%7D%0D%0A%0D%0A%09@Test%0D%0A%09public void testCreateDesignationForComponent() %7B%0D%0A%09%09String formSeqid = %22F4E8EEE7-2DDB-0476-E040-BB8921B676BA%22;%0D%0A%09%09String createdBy = %22FORMLOADER%22;%0D%0A%09%09String contextSeqid = %2229A8FB18-0AB1-11D6-A42F-0010A4C1E842%22; //%22test%22 context%0D%0A%09%09DesignationTransferObjectExt desig = new DesignationTransferObjectExt();%0D%0A%09%09desig.setLanguage(%22ENGLISH%22);%0D%0A%09%09desig.setName(%22SY Testing%22);%0D%0A%09%09desig.setType(%22ABBREVIATION%22);%0D%0A%09%09%0D%0A%09%09int res = designationV2Dao.createDesignationForComponent(formSeqid, contextSeqid, createdBy, desig);%0D%0A%09%09assertTrue(res == 1);%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

Test class for the new JDBCDesignationDAO