]> source.dussan.org Git - jgit.git/commit
RequestValidatorTestCase: Tests for the request validators 22/141922/4
authorIvan Frade <ifrade@google.com>
Thu, 9 May 2019 23:19:06 +0000 (16:19 -0700)
committerIvan Frade <ifrade@google.com>
Wed, 18 Sep 2019 20:54:50 +0000 (13:54 -0700)
commit208ddab5ab1722269245e643430f0d56cd04233d
tree39c8ebf7e1d21cb89b415210ff6b3f7f0486c0af
parent7c471afe1c23ee7655ad54d7b1df270a5b259c92
RequestValidatorTestCase: Tests for the request validators

Make a general test with all the cases, like request
advertised/unadvertised tips, reachable/unreachable from those tips,
commits/blobs.

Implement specific validator tests as subclasses. Each test provides the
validator instance and tells what cases are valid.

Change-Id: I7f961fcc05f7fabbeae1ba8ff73d99072ce8fc72
Signed-off-by: Ivan Frade <ifrade@google.com>
org.eclipse.jgit.test/BUILD
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReachableCommitRequestValidatorTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReachableCommitTipRequestValidatorTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/RequestValidatorTestCase.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/TipRequestValidatorTest.java [new file with mode: 0644]