예제 #1
0
 @Test
 public void shouldNotMatchPre() {
   Assert.assertTrue(
       QuameterDaoHibernate.PRE_POST.matcher("HR04-689_Post_20140806_Y30_QE_PreS1.raw").find(),
       "Should not match Pre file");
   Assert.assertTrue(
       QuameterDaoHibernate.PRE_POST.matcher("HR04-689_Post_20140806_Y30_QE_preS1.raw").find(),
       "Should not match pre file");
 }
예제 #2
0
 @Test
 public void shouldMatchPatientNamedPost() {
   Assert.assertFalse(
       QuameterDaoHibernate.PRE_POST.matcher("HR04-689_Post_20140806_Y30_QE.raw").find(),
       "Should match although the file contains Post as patient name");
 }