Skip to content

Commit

Permalink
no wildcard imports
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Feb 1, 2025
1 parent 6fed120 commit f28591c
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;

import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assumptions.assumeFalse;
import static org.junit.jupiter.api.Assumptions.assumeTrue;

/**
* Test the "require files don't exist" rule.
Expand Down Expand Up @@ -107,7 +112,7 @@ void testFileDoesNotExist() throws EnforcerRuleException, IOException {
File f = File.createTempFile("junit", null, temporaryFolder);
f.delete();

assertFalse(f.exists());
assumeFalse(f.exists());

rule.setFilesList(Collections.singletonList(f));

Expand All @@ -119,11 +124,11 @@ void testFileDoesNotExistSatisfyAny() throws EnforcerRuleException, IOException
File f = File.createTempFile("junit", null, temporaryFolder);
f.delete();

assertFalse(f.exists());
assumeTrue(f.exists());

File g = File.createTempFile("junit", null, temporaryFolder);

assertTrue(g.exists());
assumeTrue(g.exists());

rule.setFilesList(Arrays.asList(f, g.getCanonicalFile()));
rule.setSatisfyAny(true);
Expand Down

0 comments on commit f28591c

Please sign in to comment.