use of com.google.gerrit.pgm.http.jetty.JettyServer in project gerrit by GerritCodeReview.
the class AbstractGitOverHttpServlet method beforeEach.
@Before
public void beforeEach() throws Exception {
jettyServer = server.getHttpdInjector().getInstance(JettyServer.class);
CredentialsProvider.setDefault(new UsernamePasswordCredentialsProvider(admin.username(), admin.httpPassword()));
selectProtocol(AbstractPushForReview.Protocol.HTTP);
// Don't clear audit events here, since we can't guarantee all test setup has run yet.
}
Aggregations