@Test public void testSetContactActive() throws Exception { Transaction txn = new Transaction(null, false); context.checking(new Expectations() {{ oneOf(db).setContactActive(txn, contactId, active); }}); contactManager.setContactActive(txn, contactId, active); }
@Override public void setContactActive(Transaction txn, ContactId c, boolean active) throws DbException { db.setContactActive(txn, c, active); }
ContactManagerImpl implements ContactManager { @Override public void setContactActive(Transaction txn, ContactId c, boolean active) throws DbException { db.setContactActive(txn, c, active); } }
ContactManagerImpl implements ContactManager { @Override public void setContactActive(Transaction txn, ContactId c, boolean active) throws DbException { db.setContactActive(txn, c, active); } @Inject  ContactManagerImpl(DatabaseComponent db, KeyManager keyManager); }
ContactManagerImpl implements ContactManager { @Override public void setContactActive(Transaction txn, ContactId c, boolean active) throws DbException { db.setContactActive(txn, c, active); } @Inject  ContactManagerImpl(DatabaseComponent db, KeyManager keyManager); @Override void registerContactHook(ContactHook hook); @Override ContactId addContact(Transaction txn, Author remote, AuthorId local,
			SecretKey master, long timestamp, boolean alice, boolean verified,
			boolean active); @Override ContactId addContact(Transaction txn, Author remote, AuthorId local,
			boolean verified, boolean active); @Override ContactId addContact(Author remote, AuthorId local, SecretKey master,
			long timestamp, boolean alice, boolean verified, boolean active); @Override Contact getContact(ContactId c); @Override Contact getContact(AuthorId remoteAuthorId, AuthorId localAuthorId); @Override Contact getContact(Transaction txn, AuthorId remoteAuthorId,
			AuthorId localAuthorId); @Override Collection<Contact> getActiveContacts(); @Override void removeContact(ContactId c); @Override void setContactActive(Transaction txn, ContactId c, boolean active); @Override boolean contactExists(Transaction txn, AuthorId remoteAuthorId,
			AuthorId localAuthorId); @Override boolean contactExists(AuthorId remoteAuthorId,
			AuthorId localAuthorId); @Override void removeContact(Transaction txn, ContactId c); }
ContactManagerImpl implements ContactManager { @Override public void setContactActive(Transaction txn, ContactId c, boolean active) throws DbException { db.setContactActive(txn, c, active); } @Inject  ContactManagerImpl(DatabaseComponent db, KeyManager keyManager); @Override void registerContactHook(ContactHook hook); @Override ContactId addContact(Transaction txn, Author remote, AuthorId local,
			SecretKey master, long timestamp, boolean alice, boolean verified,
			boolean active); @Override ContactId addContact(Transaction txn, Author remote, AuthorId local,
			boolean verified, boolean active); @Override ContactId addContact(Author remote, AuthorId local, SecretKey master,
			long timestamp, boolean alice, boolean verified, boolean active); @Override Contact getContact(ContactId c); @Override Contact getContact(AuthorId remoteAuthorId, AuthorId localAuthorId); @Override Contact getContact(Transaction txn, AuthorId remoteAuthorId,
			AuthorId localAuthorId); @Override Collection<Contact> getActiveContacts(); @Override void removeContact(ContactId c); @Override void setContactActive(Transaction txn, ContactId c, boolean active); @Override boolean contactExists(Transaction txn, AuthorId remoteAuthorId,
			AuthorId localAuthorId); @Override boolean contactExists(AuthorId remoteAuthorId,
			AuthorId localAuthorId); @Override void removeContact(Transaction txn, ContactId c);  }