@Test public void update() throws Exception { assertNotNull(fooServiceCore.update(new FooBean())); }
@Test public void disable() throws Exception { fooServiceCore.disable(1L); }
@Test public void getAll() throws Exception { assertEquals(2, fooServiceCore.getAll().size()); }
@Test public void getAllEnabledDisabled() throws Exception { assertEquals(2, fooServiceCore.getAll(EnabledState.All).size()); assertEquals(1, fooServiceCore.getAll(EnabledState.Enabled).size()); assertEquals(1, fooServiceCore.getAll(EnabledState.Disabled).size()); }
@Test public void getById() throws Exception { assertEquals(1L, fooServiceCore.getById(1L).get().getId().longValue()); }