avance en los test

This commit is contained in:
Daniel Cortés
2019-04-08 11:41:42 -04:00
parent c8a51cff7f
commit e6b0bfaa27
10 changed files with 337 additions and 31 deletions

View File

@@ -142,6 +142,14 @@ class SQLiteCajaDAOTest {
.containsExactlyInAnyOrder(c1, c2);
}
@Test
void shouldNotInsertCajaEMPTY(){
this.cajaDAO.insert(Caja.EMPTY);
List<Caja> l = this.cajaDAO.getAll();
assertThat(l).hasSize(0);
}
Caja giveRandomCaja() {
Caja caja = new Caja();
caja.setFondo(faker.number().numberBetween(0, 10000000));