use of sonia.scm.repository.Repository in project scm-review-plugin by scm-manager.
the class PullRequestStoreFactoryTest method testCreate.
@Test
public void testCreate() {
Repository repository = RepositoryTestData.createHeartOfGold("git");
repository.setId("42");
when(dataStoreFactory.getStore(any())).thenReturn((DataStore) store);
when(dataStoreFactory.withType(any())).thenCallRealMethod();
PullRequestStore store = storeFactory.create(repository);
assertThat(store).isNotNull();
}
Aggregations