Modify test to test base, not specific class

This was necessary after extracting base class.
This commit is contained in:
René Pfeuffer
2019-03-05 13:47:46 +01:00
parent 0c46d639da
commit ebb21ee308
2 changed files with 17 additions and 18 deletions

View File

@@ -35,7 +35,6 @@ package sonia.scm.web;
//~--- non-JDK imports --------------------------------------------------------
import com.google.common.annotations.VisibleForTesting;
import com.google.inject.Inject;
import org.eclipse.jgit.http.server.resolver.DefaultReceivePackFactory;
import org.eclipse.jgit.lib.Repository;
@@ -73,9 +72,4 @@ public class GitReceivePackFactory extends BaseReceivePackFactory<HttpServletReq
throws ServiceNotEnabledException, ServiceNotAuthorizedException {
return wrapped.create(request, repository);
}
@VisibleForTesting
void setWrapped(ReceivePackFactory wrapped) {
this.wrapped = wrapped;
}
}