@Test public void authorizeRemoteServiceTest() throws DSPException { OpenRTBAPIDummyTest bidder = new OpenRTBAPIDummyTest(); DemandSideDAODummyTest dao = new DemandSideDAODummyTest(); URL url = this.getClass().getResource("/properties.json"); dao.loadData(url.getPath()); DemandSideServer server = new DemandSideServer(bidder, dao); boolean authorize = server.authorizeRemoteService("BigAdExchange"); assertTrue("Not valid Authorize Service", authorize); }
public boolean authorizeRemoteService(String sspOrgName) { if (dspDAO.getExchanges().get(sspOrgName) != null) { return true; } return false; }
DemandSideServer { public boolean authorizeRemoteService(String sspOrgName) { if (dspDAO.getExchanges().get(sspOrgName) != null) { return true; } return false; } }
DemandSideServer { public boolean authorizeRemoteService(String sspOrgName) { if (dspDAO.getExchanges().get(sspOrgName) != null) { return true; } return false; } DemandSideServer();  DemandSideServer(OpenRTBAPI bidder, DemandSideDAO dao); }
DemandSideServer { public boolean authorizeRemoteService(String sspOrgName) { if (dspDAO.getExchanges().get(sspOrgName) != null) { return true; } return false; } DemandSideServer();  DemandSideServer(OpenRTBAPI bidder, DemandSideDAO dao); void init(String dbLocation); boolean authorizeRemoteService(String sspOrgName); synchronized boolean verifyContentType(String sspName,
			String contentType); byte[] respond(String sspName, InputStream inStream,
			String requestContentType); BidRequest readRequest(InputStream is, String contentType); }
DemandSideServer { public boolean authorizeRemoteService(String sspOrgName) { if (dspDAO.getExchanges().get(sspOrgName) != null) { return true; } return false; } DemandSideServer();  DemandSideServer(OpenRTBAPI bidder, DemandSideDAO dao); void init(String dbLocation); boolean authorizeRemoteService(String sspOrgName); synchronized boolean verifyContentType(String sspName,
			String contentType); byte[] respond(String sspName, InputStream inStream,
			String requestContentType); BidRequest readRequest(InputStream is, String contentType);  }