1919 */
2020package org .sonarsource .scanner .lib .internal ;
2121
22- import static org .assertj .core .api .Assertions .assertThat ;
23- import static org .mockito .Mockito .mock ;
24-
2522import java .nio .charset .StandardCharsets ;
2623import java .nio .file .Files ;
2724import java .nio .file .Path ;
2825import java .nio .file .attribute .FileTime ;
29-
3026import org .junit .Rule ;
3127import org .junit .Test ;
3228import org .junit .rules .TemporaryFolder ;
3329import org .sonarsource .scanner .lib .internal .cache .Logger ;
3430
31+ import static org .assertj .core .api .Assertions .assertThat ;
32+ import static org .mockito .Mockito .mock ;
33+
3534public class TempCleaningTest {
3635
3736 @ Rule
@@ -46,12 +45,12 @@ public void should_clean_jvm_tmp_dir() {
4645 @ Test
4746 public void should_clean () throws Exception {
4847 Path dir = temp .newFolder ().toPath ();
49- Path oldBatch = dir .resolve ("sonar-scanner-api -batch656.jar" );
48+ Path oldBatch = dir .resolve ("sonar-scanner-java-library -batch656.jar" );
5049 Files .write (oldBatch , "foo" .getBytes (StandardCharsets .UTF_8 ));
5150 FileTime fTime = FileTime .fromMillis (System .currentTimeMillis () - 3 * TempCleaning .ONE_DAY_IN_MILLISECONDS );
5251 Files .setLastModifiedTime (oldBatch , fTime );
5352
54- Path youngBatch = dir .resolve ("sonar-scanner-api -batch123.jar" );
53+ Path youngBatch = dir .resolve ("sonar-scanner-java-library -batch123.jar" );
5554 Files .write (youngBatch , "foo" .getBytes (StandardCharsets .UTF_8 ));
5655
5756 Path doNotDelete = dir .resolve ("jacoco.txt" );
0 commit comments