Skip to content

Commit

Permalink
fix: DirectoryPath unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Nov 15, 2024
1 parent 46ec627 commit e55f51d
Showing 1 changed file with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,40 @@
public class DirectoryPathTest {

@Test
public void testDirectoryPathIsUtilityClass() throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
public void testDirectoryPathIsUtilityClass()
throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {
PrivateConstructorTest.testConstructorIsPrivate(DirectoryPath.class);
}

@Test
public void directoryReceptionRootTest()
{
assertEquals(new File("/root/ARC_BAS1/RECEPTION").toPath(),new File(DirectoryPath.directoryReceptionRoot("/root","arc_bas1")).toPath());
public void directoryReceptionRootTest() {
assertEquals(new File("/root/ARC_BAS1/RECEPTION").toPath(),
new File(DirectoryPath.directoryReceptionRoot("/root", "arc_bas1")).toPath());
}

@Test
public void s3ReceptionEntrepotArchiveTest()
{
assertEquals(new File("/root/RECEPTION_ENTREPOT_ARCHIVE").toPath(),new File(DirectoryPath.s3ReceptionEntrepotArchive("root","ENTREPOT")).toPath());
public void s3ReceptionEntrepotArchiveTest() {
assertEquals(new File("/ROOT/RECEPTION_ENTREPOT_ARCHIVE").toPath(),
new File(DirectoryPath.s3ReceptionEntrepotArchive("root", "ENTREPOT")).toPath());
}

@Test
public void s3ReceptionEntrepotKOTest()
{
assertEquals(new File("/root/RECEPTION_ENTREPOT_KO").toPath(),new File(DirectoryPath.s3ReceptionEntrepotKO("root","ENTREPOT")).toPath());
public void s3ReceptionEntrepotKOTest() {
assertEquals(new File("/ROOT/RECEPTION_ENTREPOT_KO").toPath(),
new File(DirectoryPath.s3ReceptionEntrepotKO("root", "ENTREPOT")).toPath());
}

@Test
public void directoryReceptionEntrepotArchiveOldTest()
{
assertEquals(new File("/root/ARC_BAS1/RECEPTION_ENTREPOT_ARCHIVE/OLD").toPath(),new File(DirectoryPath.directoryReceptionEntrepotArchiveOld("/root","arc_bas1", "ENTREPOT")).toPath());
public void directoryReceptionEntrepotArchiveOldTest() {
assertEquals(new File("/root/ARC_BAS1/RECEPTION_ENTREPOT_ARCHIVE/OLD").toPath(),
new File(DirectoryPath.directoryReceptionEntrepotArchiveOld("/root", "arc_bas1", "ENTREPOT")).toPath());
}

@Test
public void directoryReceptionEntrepotArchiveOldYearStampedTest()
{
assertEquals(new File(("/root/ARC_BAS1/RECEPTION_ENTREPOT_ARCHIVE/OLD/"+Year.now().getValue())).toPath(),new File(DirectoryPath.directoryReceptionEntrepotArchiveOldYearStamped("/root","arc_bas1", "ENTREPOT")).toPath());
public void directoryReceptionEntrepotArchiveOldYearStampedTest() {
assertEquals(new File(("/root/ARC_BAS1/RECEPTION_ENTREPOT_ARCHIVE/OLD/" + Year.now().getValue())).toPath(),
new File(DirectoryPath.directoryReceptionEntrepotArchiveOldYearStamped("/root", "arc_bas1", "ENTREPOT"))
.toPath());
}




}

0 comments on commit e55f51d

Please sign in to comment.