コード例 #1
0
 @Test
 public void testWriteCellWithNull() throws Exception {
   calendarConverter.writeCell(mockCell, null);
   verify(mockCell, never()).setCellValue(any(Calendar.class));
 }
コード例 #2
0
 @Test
 public void testWriteCell() throws Exception {
   final Calendar calendar = Calendar.getInstance();
   calendarConverter.writeCell(mockCell, calendar);
   verify(mockCell).setCellValue(calendar);
 }