public class GitServletResponseTests
extends org.eclipse.jgit.junit.http.HttpTestCase
GitServlet. Especially error
situations where the GitServlet faces exceptions during request
processing are tested| 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, toURIishpublic 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 org.eclipse.jgit.junit.http.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 © 2015 Eclipse JGit Project. All rights reserved.