Exemplo n.º 1
0
 public void testNaturalKeyWithoutName() throws Exception {
   a0.setDate(DateTools.createDate(2009, Calendar.NOVEMBER, 6));
   a0.setName(null);
   assertEquals("2009-11-06", a0.getNaturalKey());
 }
Exemplo n.º 2
0
 public void testNaturalKeyWithBlankName() throws Exception {
   a0.setDate(DateTools.createDate(2022, Calendar.MARCH, 6));
   a0.setName(" ");
   assertEquals("2022-03-06", a0.getNaturalKey());
 }
Exemplo n.º 3
0
 public void testNaturalKeyWithName() throws Exception {
   a0.setDate(DateTools.createDate(2005, Calendar.MAY, 4));
   a0.setName("4");
   assertEquals("2005-05-04~4", a0.getNaturalKey());
 }