1
2
3
4
5
6
7
8
9
10 package org.eclipse.jgit.transport;
11
12 import org.eclipse.jgit.transport.UploadPack.RequestValidator;
13
14
15
16
17
18 public class ReachableCommitTipRequestValidatorTest
19 extends RequestValidatorTestCase {
20
21 @Override
22 protected RequestValidator createValidator() {
23 return new UploadPack.ReachableCommitTipRequestValidator();
24 }
25
26 @Override
27 protected boolean isReachableCommitValid() {
28 return true;
29 }
30
31 @Override
32 protected boolean isUnreachableCommitValid() {
33 return false;
34 }
35
36 @Override
37 protected boolean isAdvertisedTipValid() {
38 return true;
39 }
40
41 @Override
42 protected boolean isReachableBlobValid_withBitmaps() {
43 return true;
44 }
45
46 @Override
47 protected boolean isReachableBlobValid_withoutBitmaps() {
48 return false;
49 }
50
51 @Override
52 protected boolean isUnreachableBlobValid() {
53 return false;
54 }
55
56 @Override
57 protected boolean isUnadvertisedTipCommitValid() {
58 return true;
59 }
60
61 }