2727import org .jetbrains .annotations .NotNull ;
2828import org .junit .Test ;
2929import pl .project13 .maven .git .AvailableGitTestRepo ;
30- import pl .project13 .maven .git .FileSystemMavenSandbox ;
3130import pl .project13 .maven .git .GitIntegrationTest ;
3231
3332import static java .util .Collections .singletonList ;
@@ -54,7 +53,7 @@ public void shouldGiveTheCommitIdAndDirtyMarkerWhenNothingElseCanBeFound() throw
5453 .withParentProject (PROJECT_NAME , "jar" )
5554 .withNoChildProject ()
5655 .withGitRepoInParent (AvailableGitTestRepo .WITH_ONE_COMMIT_DIRTY )
57- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
56+ .create ();
5857
5958 Repository repo = git ().getRepository ();
6059
@@ -78,7 +77,7 @@ public void shouldGiveTheCommitIdWhenNothingElseCanBeFound() throws Exception {
7877 .withParentProject (PROJECT_NAME , "jar" )
7978 .withNoChildProject ()
8079 .withGitRepoInParent (AvailableGitTestRepo .WITH_ONE_COMMIT )
81- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
80+ .create ();
8281
8382 Repository repo = git ().getRepository ();
8483
@@ -102,7 +101,7 @@ public void shouldGiveTheCommitIdWhenTagIsOnOtherBranch() throws Exception {
102101 .withParentProject (PROJECT_NAME , "jar" )
103102 .withNoChildProject ()
104103 .withGitRepoInParent (AvailableGitTestRepo .WITH_TAG_ON_DIFFERENT_BRANCH )
105- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
104+ .create ();
106105
107106 Repository repo = git ().getRepository ();
108107
@@ -126,7 +125,7 @@ public void shouldGiveTheCommitIdWhenNothingElseCanBeFoundAndUseAbbrevVersionOfI
126125 .withParentProject (PROJECT_NAME , "jar" )
127126 .withNoChildProject ()
128127 .withGitRepoInParent (AvailableGitTestRepo .WITH_ONE_COMMIT )
129- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
128+ .create ();
130129
131130 int abbrevLength = 10 ;
132131 Repository repo = git ().getRepository ();
@@ -153,7 +152,7 @@ public void shouldGiveTagWithDistanceToCurrentCommitAndItsIdAndDirtyMarker() thr
153152 .withParentProject (PROJECT_NAME , "jar" )
154153 .withNoChildProject ()
155154 .withGitRepoInParent (AvailableGitTestRepo .GIT_COMMIT_ID )
156- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
155+ .create ();
157156
158157 Repository repo = git ().getRepository ();
159158
@@ -175,7 +174,7 @@ public void shouldGiveTagWithDistanceToCurrentCommitAndItsIdAndCustomDirtyMarker
175174 .withParentProject (PROJECT_NAME , "jar" )
176175 .withNoChildProject ()
177176 .withGitRepoInParent (AvailableGitTestRepo .GIT_COMMIT_ID )
178- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
177+ .create ();
179178
180179 String customDirtySuffix = "-DEV" ;
181180
@@ -201,7 +200,7 @@ public void shouldGiveTagWithDistanceToCurrentCommitAndItsId() throws Exception
201200 .withParentProject (PROJECT_NAME , "jar" )
202201 .withNoChildProject ()
203202 .withGitRepoInParent (AvailableGitTestRepo .GIT_COMMIT_ID )
204- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
203+ .create ();
205204
206205 Repository repo = git ().getRepository ();
207206 Git .wrap (repo ).reset ().setMode (ResetCommand .ResetType .HARD ).call ();
@@ -223,7 +222,7 @@ public void shouldGiveTag() throws Exception {
223222 .withParentProject (PROJECT_NAME , "jar" )
224223 .withNoChildProject ()
225224 .withGitRepoInParent (AvailableGitTestRepo .ON_A_TAG )
226- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
225+ .create ();
227226
228227 Repository repo = git ().getRepository ();
229228 git ().reset ().setMode (ResetCommand .ResetType .HARD ).call ();
@@ -248,7 +247,7 @@ public void shouldNotGiveDirtyMarkerWhenOnATagAndDirtyButNoDirtyOptionConfigured
248247 .withParentProject (PROJECT_NAME , "jar" )
249248 .withNoChildProject ()
250249 .withGitRepoInParent (AvailableGitTestRepo .ON_A_TAG )
251- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
250+ .create ();
252251
253252 Repository repo = git ().getRepository ();
254253 git ().checkout ().setName ("v1.0.0" ).call ();
@@ -275,7 +274,7 @@ public void shouldGiveTagWithCustomDirtyMarker() throws Exception {
275274 .withParentProject (PROJECT_NAME , "jar" )
276275 .withNoChildProject ()
277276 .withGitRepoInParent (AvailableGitTestRepo .ON_A_TAG )
278- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
277+ .create ();
279278
280279 Repository repo = git ().getRepository ();
281280 git ().checkout ().setName ("v1.0.0" ).call ();
@@ -301,7 +300,7 @@ public void shouldNotGiveDirtyTagByDefault() throws Exception {
301300 .withParentProject (PROJECT_NAME , "jar" )
302301 .withNoChildProject ()
303302 .withGitRepoInParent (AvailableGitTestRepo .ON_A_TAG )
304- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
303+ .create ();
305304
306305 Repository repo = git ().getRepository ();
307306
@@ -323,7 +322,7 @@ public void shouldGiveAnnotatedTagWithDirtyMarker() throws Exception {
323322 .withParentProject (PROJECT_NAME , "jar" )
324323 .withNoChildProject ()
325324 .withGitRepoInParent (AvailableGitTestRepo .WITH_LIGHTWEIGHT_TAG_BEFORE_ANNOTATED_TAG )
326- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
325+ .create ();
327326
328327 Repository repo = git ().getRepository ();
329328
@@ -348,7 +347,7 @@ public void shouldGiveLightweightTagWithDirtyMarker() throws Exception {
348347 .withParentProject (PROJECT_NAME , "jar" )
349348 .withNoChildProject ()
350349 .withGitRepoInParent (AvailableGitTestRepo .ON_A_TAG_DIRTY )
351- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
350+ .create ();
352351
353352 Repository repo = git ().getRepository ();
354353
@@ -407,7 +406,7 @@ public void shouldReturnJustTheNearestTagWhenAbbrevIsZero() throws Exception {
407406 .withParentProject (PROJECT_NAME , "jar" )
408407 .withNoChildProject ()
409408 .withGitRepoInParent (AvailableGitTestRepo .WITH_LIGHTWEIGHT_TAG_BEFORE_ANNOTATED_TAG )
410- .create (FileSystemMavenSandbox . CleanUp . CLEANUP_FIRST );
409+ .create ();
411410
412411 Repository repo = git ().getRepository ();
413412 Git .wrap (repo ).reset ().setMode (ResetCommand .ResetType .HARD ).call ();
0 commit comments