persistence work
This commit is contained in:
parent
c5ba785246
commit
f82c103046
@ -26,8 +26,14 @@ public class FooServicePersistenceIntegrationTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public final void whenEntityisCreated_thenNoExceptions() {
|
public final void whenEntityIsCreated_thenNoExceptions() {
|
||||||
service.create(new Foo(randomAlphabetic(6)));
|
service.create(new Foo(randomAlphabetic(6)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @Test(expected = DataIntegrityViolationException.class)
|
||||||
|
@Test
|
||||||
|
public final void whenInvalidEntityIsCreated_thenDataException() {
|
||||||
|
service.create(new Foo());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user