-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove public modifier from JUnit 5 tests
- Loading branch information
1 parent
481a9c2
commit 8b8d277
Showing
40 changed files
with
225 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,4 @@ bin | |
*.iml | ||
*.iws | ||
.idea | ||
|
||
|
||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,11 +36,11 @@ | |
* | ||
* @author <a href="mailto:[email protected]">Markus KARG</a> | ||
*/ | ||
public class AbstractUnArchiverTest { | ||
class AbstractUnArchiverTest { | ||
private AbstractUnArchiver abstractUnArchiver; | ||
|
||
@BeforeEach | ||
public void setUp() { | ||
void setUp() { | ||
this.abstractUnArchiver = new AbstractUnArchiver() { | ||
@Override | ||
protected void execute(final String path, final File outputDirectory) throws ArchiverException { | ||
|
@@ -55,13 +55,12 @@ protected void execute() throws ArchiverException { | |
} | ||
|
||
@AfterEach | ||
public void tearDown() { | ||
void tearDown() { | ||
this.abstractUnArchiver = null; | ||
} | ||
|
||
@Test | ||
public void shouldThrowExceptionBecauseRewrittenPathIsOutOfDirectory(@TempDir File targetFolder) | ||
throws ArchiverException { | ||
void shouldThrowExceptionBecauseRewrittenPathIsOutOfDirectory(@TempDir File targetFolder) throws ArchiverException { | ||
// given | ||
|
||
// The prefix includes the target directory name to make sure we catch cases when the paths | ||
|
@@ -82,7 +81,7 @@ public void shouldThrowExceptionBecauseRewrittenPathIsOutOfDirectory(@TempDir Fi | |
} | ||
|
||
@Test | ||
public void shouldExtractWhenFileOnDiskDoesNotExist(@TempDir File temporaryFolder) throws IOException { | ||
void shouldExtractWhenFileOnDiskDoesNotExist(@TempDir File temporaryFolder) throws IOException { | ||
// given | ||
File file = new File(temporaryFolder, "whatever.txt"); // does not create the file! | ||
String entryname = file.getName(); | ||
|
@@ -96,7 +95,7 @@ public void shouldExtractWhenFileOnDiskDoesNotExist(@TempDir File temporaryFolde | |
} | ||
|
||
@Test | ||
public void shouldExtractWhenFileOnDiskIsNewerThanEntryInArchive(@TempDir File temporaryFolder) throws IOException { | ||
void shouldExtractWhenFileOnDiskIsNewerThanEntryInArchive(@TempDir File temporaryFolder) throws IOException { | ||
// given | ||
File file = new File(temporaryFolder, "whatever.txt"); | ||
file.createNewFile(); | ||
|
@@ -112,8 +111,8 @@ public void shouldExtractWhenFileOnDiskIsNewerThanEntryInArchive(@TempDir File t | |
} | ||
|
||
@Test | ||
public void shouldExtractWhenFileOnDiskIsNewerThanEntryInArchive_andWarnAboutDifferentCasing( | ||
@TempDir File temporaryFolder) throws IOException { | ||
void shouldExtractWhenFileOnDiskIsNewerThanEntryInArchive_andWarnAboutDifferentCasing(@TempDir File temporaryFolder) | ||
throws IOException { | ||
// given | ||
File file = new File(temporaryFolder, "whatever.txt"); | ||
file.createNewFile(); | ||
|
@@ -127,7 +126,7 @@ public void shouldExtractWhenFileOnDiskIsNewerThanEntryInArchive_andWarnAboutDif | |
} | ||
|
||
@Test | ||
public void shouldExtractWhenEntryInArchiveIsNewerThanFileOnDisk(@TempDir File temporaryFolder) throws IOException { | ||
void shouldExtractWhenEntryInArchiveIsNewerThanFileOnDisk(@TempDir File temporaryFolder) throws IOException { | ||
// given | ||
File file = new File(temporaryFolder, "whatever.txt"); | ||
file.createNewFile(); | ||
|
@@ -143,8 +142,8 @@ public void shouldExtractWhenEntryInArchiveIsNewerThanFileOnDisk(@TempDir File t | |
} | ||
|
||
@Test | ||
public void shouldExtractWhenEntryInArchiveIsNewerThanFileOnDiskAndWarnAboutDifferentCasing( | ||
@TempDir File temporaryFolder) throws IOException { | ||
void shouldExtractWhenEntryInArchiveIsNewerThanFileOnDiskAndWarnAboutDifferentCasing(@TempDir File temporaryFolder) | ||
throws IOException { | ||
// given | ||
File file = new File(temporaryFolder, "whatever.txt"); | ||
file.createNewFile(); | ||
|
@@ -161,7 +160,7 @@ public void shouldExtractWhenEntryInArchiveIsNewerThanFileOnDiskAndWarnAboutDiff | |
} | ||
|
||
@Test | ||
public void shouldNotWarnAboutDifferentCasingForDirectoryEntries(@TempDir File temporaryFolder) throws IOException { | ||
void shouldNotWarnAboutDifferentCasingForDirectoryEntries(@TempDir File temporaryFolder) throws IOException { | ||
// given | ||
File file = new File(temporaryFolder, "whatever.txt"); | ||
file.createNewFile(); | ||
|
@@ -176,7 +175,7 @@ public void shouldNotWarnAboutDifferentCasingForDirectoryEntries(@TempDir File t | |
} | ||
|
||
@Test | ||
public void shouldExtractWhenCasingDifferOnlyInEntryNamePath(@TempDir File temporaryFolder) throws IOException { | ||
void shouldExtractWhenCasingDifferOnlyInEntryNamePath(@TempDir File temporaryFolder) throws IOException { | ||
// given | ||
String entryName = "directory/whatever.txt"; | ||
File file = new File(temporaryFolder, entryName); // does not create the file! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.