@Test public void testRemovePersistentLogin() { final PersistentLoginMapper loginMapper = context.mock(PersistentLoginMapper.class); context.checking(new Expectations() { { oneOf(loginMapper).deletePersistentLogin(with("theuser")); } }); PersistentLoginRepositoryImpl sut = new PersistentLoginRepositoryImpl(loginMapper); sut.removePersistentLogin("theuser"); context.assertIsSatisfied(); }
@Transactional public void removePersistentLogin(final String username) { loginMapper.deletePersistentLogin(username); }
PersistentLoginRepositoryImpl implements PersistentLoginRepository { @Transactional public void removePersistentLogin(final String username) { loginMapper.deletePersistentLogin(username); } }
PersistentLoginRepositoryImpl implements PersistentLoginRepository { @Transactional public void removePersistentLogin(final String username) { loginMapper.deletePersistentLogin(username); } PersistentLoginRepositoryImpl(final PersistentLoginMapper inLoginMapper); }
PersistentLoginRepositoryImpl implements PersistentLoginRepository { @Transactional public void removePersistentLogin(final String username) { loginMapper.deletePersistentLogin(username); } PersistentLoginRepositoryImpl(final PersistentLoginMapper inLoginMapper); @Transactional void createOrUpdatePersistentLogin(final PersistentLogin persistentLogin); PersistentLogin getPersistentLogin(final String username); @Transactional void removePersistentLogin(final String username); }
PersistentLoginRepositoryImpl implements PersistentLoginRepository { @Transactional public void removePersistentLogin(final String username) { loginMapper.deletePersistentLogin(username); } PersistentLoginRepositoryImpl(final PersistentLoginMapper inLoginMapper); @Transactional void createOrUpdatePersistentLogin(final PersistentLogin persistentLogin); PersistentLogin getPersistentLogin(final String username); @Transactional void removePersistentLogin(final String username);  }