@Test public void testRemovesGroupWhenRemovingContact() throws Exception { context.checking(new Expectations() {{ oneOf(contactGroupFactory).createContactGroup(CLIENT_ID, MAJOR_VERSION, contact); will(returnValue(contactGroup)); oneOf(db).removeGroup(txn, contactGroup); }}); ClientVersioningManagerImpl c = createInstance(); c.removingContact(txn, contact); }
@Override public void removingContact(Transaction txn, Contact c) throws DbException { db.removeGroup(txn, getContactGroup(c)); }
ClientVersioningManagerImpl implements ClientVersioningManager, Client,
		Service, ContactHook, IncomingMessageHook { @Override public void removingContact(Transaction txn, Contact c) throws DbException { db.removeGroup(txn, getContactGroup(c)); } }
ClientVersioningManagerImpl implements ClientVersioningManager, Client,
		Service, ContactHook, IncomingMessageHook { @Override public void removingContact(Transaction txn, Contact c) throws DbException { db.removeGroup(txn, getContactGroup(c)); } @Inject  ClientVersioningManagerImpl(DatabaseComponent db, ClientHelper clientHelper,
			ContactGroupFactory contactGroupFactory, Clock clock); }
ClientVersioningManagerImpl implements ClientVersioningManager, Client,
		Service, ContactHook, IncomingMessageHook { @Override public void removingContact(Transaction txn, Contact c) throws DbException { db.removeGroup(txn, getContactGroup(c)); } @Inject  ClientVersioningManagerImpl(DatabaseComponent db, ClientHelper clientHelper,
			ContactGroupFactory contactGroupFactory, Clock clock); @Override void registerClient(ClientId clientId, int majorVersion,
			int minorVersion, ClientVersioningHook hook); @Override Visibility getClientVisibility(Transaction txn, ContactId contactId,
			ClientId clientId, int majorVersion); @Override void createLocalState(Transaction txn); @Override void startService(); @Override void stopService(); @Override void addingContact(Transaction txn, Contact c); @Override void removingContact(Transaction txn, Contact c); @Override boolean incomingMessage(Transaction txn, Message m, Metadata meta); }
ClientVersioningManagerImpl implements ClientVersioningManager, Client,
		Service, ContactHook, IncomingMessageHook { @Override public void removingContact(Transaction txn, Contact c) throws DbException { db.removeGroup(txn, getContactGroup(c)); } @Inject  ClientVersioningManagerImpl(DatabaseComponent db, ClientHelper clientHelper,
			ContactGroupFactory contactGroupFactory, Clock clock); @Override void registerClient(ClientId clientId, int majorVersion,
			int minorVersion, ClientVersioningHook hook); @Override Visibility getClientVisibility(Transaction txn, ContactId contactId,
			ClientId clientId, int majorVersion); @Override void createLocalState(Transaction txn); @Override void startService(); @Override void stopService(); @Override void addingContact(Transaction txn, Contact c); @Override void removingContact(Transaction txn, Contact c); @Override boolean incomingMessage(Transaction txn, Message m, Metadata meta);  }