use of com.google.gerrit.extensions.validators.CommentValidator in project gerrit by GerritCodeReview.
the class PostReviewIT method createModule.
@Override
public Module createModule() {
return new FactoryModule() {
@Override
public void configure() {
CommentValidator mockCommentValidator = mock(CommentValidator.class);
bind(CommentValidator.class).annotatedWith(Exports.named(mockCommentValidator.getClass())).toInstance(mockCommentValidator);
bind(CommentValidator.class).toInstance(mockCommentValidator);
}
};
}
use of com.google.gerrit.extensions.validators.CommentValidator in project gerrit by GerritCodeReview.
the class ReceiveCommitsCommentValidationIT method createModule.
@Override
public Module createModule() {
return new FactoryModule() {
@Override
public void configure() {
CommentValidator mockCommentValidator = mock(CommentValidator.class);
bind(CommentValidator.class).annotatedWith(Exports.named(mockCommentValidator.getClass())).toInstance(mockCommentValidator);
bind(CommentValidator.class).toInstance(mockCommentValidator);
}
};
}
Aggregations