@@ -0,0 +1,1490 @@
+package uk.ac.ebi.phenotype.dao;%0A%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0Aimport org.springframework.test.context.transaction.TransactionConfiguration;%0Aimport org.springframework.transaction.annotation.Transactional;%0A%0Aimport uk.ac.ebi.phenotype.bean.StatisticalResultBean;%0A%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@ContextConfiguration(locations = %7B %22classpath:test-config.xml%22 %7D)%0A@TransactionConfiguration%0A@Transactional%0Apublic class StatisticalResultDAOTest %7B%0A%09%0A%09@Autowired%0A%09StatisticalResultDAO statisticalResultDAO;%0A%09%0A%09@Test%0A%09public void testGetPvaluesByAlleleAndPhenotypingCenterAndPipeline() %7B%0A%09%09%0A%09%09// MGI:4432021?phenotyping_center=HMGU&pipeline_stable_id=ESLIM_001%0A%09%09String alleleAccession = %22MGI:4432021%22;%0A%09%09String phenotypingCenter = %22HMGU%22;%0A%09%09String pipelineStableId = %22ESLIM_001%22;%0A%09%09%0A%09%09Map%3CString, List%3CStatisticalResultBean%3E%3E results = statisticalResultDAO.getPvaluesByAlleleAndPhenotypingCenterAndPipeline(%0A%09%09%09%09alleleAccession, phenotypingCenter, pipelineStableId);%0A%09%09%0A%09%09for (String key: results.keySet()) %7B%0A%09%09%09System.out.println(key);%0A%09%09%09for (StatisticalResultBean bean: results.get(key)) %7B%0A%09%09%09%09System.out.println(bean.getStatisticalMethod() + %22%5Ct%22 + bean.getpValue() + %22%5Ct%22 + bean.getEffectSize());%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Test to get all p-values from a line