public class GitServletResponseTests extends HttpTestCase
GitServlet. Especially error
situations where the GitServlet faces exceptions during request
processing are testedmaster, serverASSUME_UNCHANGED, author, committer, CONTENT, CONTENT_ID, LENGTH, mockSystemReader, MOD_TIME, SMUDGE| 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, toURIishaddRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tick, write, writepublic 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 HttpTestCaseExceptionpublic 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.Exceptionpublic void testObjectCheckerException()
throws Exception
GitServlet that faces a IllegalStateException
during executing objectChecking.Exceptionpublic 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.ExceptionCopyright © 2016 Eclipse JGit Project. All rights reserved.