persistence work

This commit is contained in:
Eugen 2013-05-17 18:54:16 +03:00
parent c5ba785246
commit f82c103046
1 changed files with 7 additions and 1 deletions

View File

@ -26,8 +26,14 @@ public class FooServicePersistenceIntegrationTest {
}
@Test
public final void whenEntityisCreated_thenNoExceptions() {
public final void whenEntityIsCreated_thenNoExceptions() {
service.create(new Foo(randomAlphabetic(6)));
}
// @Test(expected = DataIntegrityViolationException.class)
@Test
public final void whenInvalidEntityIsCreated_thenDataException() {
service.create(new Foo());
}
}