public class GitServletResponseTests extends HttpTestCase
GitServlet
. Especially error
situations where the GitServlet
faces exceptions during request
processing are testedmaster, server
author, committer
Constructor and Description |
---|
GitServletResponseTests() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Setup a http server using
GitServlet . |
void |
testObjectCheckerException()
Configure a
GitServlet that faces a IllegalStateException
during executing objectChecking. |
void |
testRuntimeExceptionInPreReceiveHook()
Configure a
GitServlet that faces a IllegalStateException
during executing preReceiveHooks. |
void |
testUnpackErrorWithSubsequentExceptionInPostReceiveHook()
Configure a
GitServlet that faces a TooLargePackException
during persisting the pack and a IllegalStateException during
executing postReceiveHooks. |
createTestRepository, fsck, getRequests, getRequests, getRequests, join, loose, mirror, push, tearDown, toURIish, toURIish
addRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, read, recursiveDelete, runHook, tick, write, write
public void setUp() throws Exception
GitServlet
. Tests should be able to
configure the maximum pack file size, the object checker and custom hooks
just before they talk to the server.setUp
in class HttpTestCase
Exception
public void testRuntimeExceptionInPreReceiveHook() throws Exception
GitServlet
that faces a IllegalStateException
during executing preReceiveHooks. This used to lead to exceptions with a
description of "invalid channel 101" on the client side. Make sure
clients receive the correct response on the correct sideband.Exception
public void testObjectCheckerException() throws Exception
GitServlet
that faces a IllegalStateException
during executing objectChecking.Exception
public void testUnpackErrorWithSubsequentExceptionInPostReceiveHook() throws Exception
GitServlet
that faces a TooLargePackException
during persisting the pack and a IllegalStateException
during
executing postReceiveHooks. This used to lead to exceptions with a
description of "invalid channel 101" on the client side. Make sure
clients receive the correct response about the too large pack on the
correct sideband.Exception
Copyright © 2015 Eclipse JGit Project. All rights reserved.