MomentAdCampaign implements AdCampaign { @Override public Attributes getAttributes() { return mFactory.toAttributes(mMoment); } MomentAdCampaign(Moment moment, MomentFactory factory); @Override AdId getId(); @Override String getInterfaceName(); @Override Attributes getAttributes(); @Override Attachments getAttachments(); @Override String getMountName(); @Override Object makeService(); @Override List<BlessingPattern> getVisibility(); static final String INTERFACE_NAME; static final String QUERY; static final List<BlessingPattern> NO_PATTERNS; }
@Test public void factoryMakesAttributes() throws Exception { assertSame(mAttributes, mCampaign.getAttributes()); }