MomentAdCampaign implements AdCampaign { @Override public Object makeService() { return new MomentServer(); } 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 checkService() throws Exception { MomentIfcServer server = (MomentIfcServer) mCampaign.makeService(); assertNotNull(server); MomentWireData data = server.getBasics(mCtx, mCall).get(); assertEquals(AUTHOR, data.getAuthor()); assertEquals(CAPTION, data.getCaption()); assertEquals(CREATION_TIME.getMillis(), data.getCreationTime()); }