underTest.write(SOME_KEY, null);
verify(internalPropertiesDao).saveAsEmpty(dbSession, SOME_KEY);
+ verify(dbSession).commit();
}
@Test
underTest.write(SOME_KEY, EMPTY_STRING);
verify(internalPropertiesDao).saveAsEmpty(dbSession, SOME_KEY);
+ verify(dbSession).commit();
}
@Test
underTest.write(SOME_KEY, SOME_VALUE);
verify(internalPropertiesDao).save(dbSession, SOME_KEY, SOME_VALUE);
+ verify(dbSession).commit();
}
private void expectKeyNullOrEmptyIAE() {