Simplify a test

This commit is contained in:
Paul Campbell 2018-06-15 17:54:47 +01:00
parent 55bf71eb69
commit dc932d8b1d

View file

@ -331,9 +331,7 @@ class GitDBTest implements WithAssertions {
@Test
void startAnonymousTransaction_thenReturnGitDBTransaction() throws IOException {
//given
final String key = stringSupplier.get();
final String value = stringSupplier.get();
final GitDBBranch gitDBBranch = gitDBBranchWithKeyValue(key, value);
final GitDBBranch gitDBBranch = gitDBBranch();
//when
final GitDBTransaction transaction = gitDBBranch.transaction();
//then