use of sonia.scm.repository.RepositoryImportEvent in project scm-review-plugin by scm-manager.
the class CommentIndexerTest method shouldNotCreateIndexAfterFailedImport.
@Test
void shouldNotCreateIndexAfterFailedImport() {
indexer.handleEvent(new RepositoryImportEvent(repository, true));
verify(forType, never()).update(any(SerializableIndexTask.class));
}
use of sonia.scm.repository.RepositoryImportEvent in project scm-review-plugin by scm-manager.
the class PullRequestIndexerTest method shouldNotCreateIndexAfterFailedImport.
@Test
void shouldNotCreateIndexAfterFailedImport() {
indexer.handleEvent(new RepositoryImportEvent(repository, true));
verify(forType, never()).update(any(SerializableIndexTask.class));
}
use of sonia.scm.repository.RepositoryImportEvent in project scm-review-plugin by scm-manager.
the class PullRequestIndexerTest method shouldCreateIndexAfterSuccessfulImport.
@Test
void shouldCreateIndexAfterSuccessfulImport() {
indexer.handleEvent(new RepositoryImportEvent(repository, false));
verify(forType).update(any(SerializableIndexTask.class));
}
use of sonia.scm.repository.RepositoryImportEvent in project scm-review-plugin by scm-manager.
the class CommentIndexerTest method shouldCreateIndexAfterSuccessfulImport.
@Test
void shouldCreateIndexAfterSuccessfulImport() {
indexer.handleEvent(new RepositoryImportEvent(repository, false));
verify(forType).update(any(SerializableIndexTask.class));
}
Aggregations