コード例 #1
0
 @Test
 public void deletesSome() throws Exception {
   final JobId jobId = new JobId(UUID.randomUUID());
   repository.put(aJobHistoryItemWith(jobId));
   repository.put(aJobHistoryItem());
   repository.remove(format("jobId:\"%s\"", jobId.value().toString()));
   assertThat(repository.find("").right().size(), is(1));
 }
コード例 #2
0
 @Test
 public void deletesEverything() throws Exception {
   repository.put(aJobHistoryItemFrom(new Date()));
   repository.remove("");
   assertThat(repository.find("").right().size(), is(0));
 }