From 2a4ba2706fa37283012f5848522cbad07aa6516b Mon Sep 17 00:00:00 2001 From: Nicolas Rol Date: Fri, 19 Jul 2024 10:21:21 +0200 Subject: [PATCH] change test to show that files in every subfolder is reached Signed-off-by: Nicolas Rol --- .../AbstractArchiveDataSourceTest.java | 3 ++- commons/src/test/resources/foo.iidm.tar.gz | Bin 230 -> 276 bytes commons/src/test/resources/foo.iidm.zip | Bin 654 -> 1029 bytes 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commons/src/test/java/com/powsybl/commons/datasource/AbstractArchiveDataSourceTest.java b/commons/src/test/java/com/powsybl/commons/datasource/AbstractArchiveDataSourceTest.java index 2fb92472f35..f8f51372932 100644 --- a/commons/src/test/java/com/powsybl/commons/datasource/AbstractArchiveDataSourceTest.java +++ b/commons/src/test/java/com/powsybl/commons/datasource/AbstractArchiveDataSourceTest.java @@ -71,11 +71,12 @@ void testFileInSubfolder() throws IOException { // All the files are listed, no filter is applied Set files = dataSource.listNames(".*"); - assertEquals(3, files.size()); + assertEquals(4, files.size()); assertTrue(files.contains("foo.iidm")); assertTrue(files.contains("foo_bar.iidm")); assertFalse(files.contains("foo_baz.iidm")); assertTrue(files.contains("subfolder/foo_baz.iidm")); + assertTrue(files.contains("subfolder/subsubfolder/foo.v3.iidm")); } @Test diff --git a/commons/src/test/resources/foo.iidm.tar.gz b/commons/src/test/resources/foo.iidm.tar.gz index fdfd41babfb26c45bc978c1c2bdae2411bdc58fe..12f886ea42b160f5f3e7261381b19a5a8fb35380 100644 GIT binary patch literal 276 zcmV+v0qg!BiwFP!000001MSvbs=_c31>ij2Rdfa3nY5EENBk=k)IeK(@aZn*F2#j8 zK_pN9fvITE*M}BbXrMi3Qim{Un&rl1M9R6!{ONUb{HMz~5yO=u^5WUCAud_GDJbWn zE_Pi%Ym36PVZCh@*Ppw0|3mewuK#)WBH(T65T^54o3#V(=ijCLd#CxYh%NFzgqVMe z0vN4sH?PBbxoUs&y(1>vd%2N+iuu>W>Vp*LzpyifoZ^8IxfO!noAX2H|_ufKtA1JM5i aK>q^(0000000000e5VsU6=GfhC;$Mi)QdF$ literal 230 zcmb2|=3oE==C{`Zxta`Qj(@Z*=kgEu|MK7MLZ#ru1m0!)zFbMP@?!UHjnGfk4?cDO zxocum^T)ekmfO$s*JbAx3QY{~&sJUcclX}=FMjfDncyWXX?7{YF=(QXtJ6lcFRQX| zHTw%ajIG^v{QG_1-v2AM<=iUS{6!~0b82zmZF!&X=NH!N{{CltlI`#L#24~E*N0zz zI(2pTrT35iCTrZ0_;pj!07Q&z6aWAK diff --git a/commons/src/test/resources/foo.iidm.zip b/commons/src/test/resources/foo.iidm.zip index 37c5709db71d0266eb19fff06e8bbb197e0c96fa..acc26ee76a4ad694b63619980a07aa701fffe39e 100644 GIT binary patch literal 1029 zcmWIWW@h1H0D;AR)e*-`cUrRo*&xipAj6QBpRbphnUWhC!pXo~c#k=)SYcLLX$3a} zBa6Y3Bbi{LB(=DND*$fHN}w?}QcA+vfJT5Y55$=Gq{JeGQFXYDGD0$ITj1vipb>Du z1vIO;G$}1VCndE=AM7X#po45N9ffdDdqpjZx5QA)0D2JUvMPkj;!d%pxnr7#=E);y z4iiT)6zD`WR|Wu0#1eG4U8#iIKv0~N8Kb%wi`h^YGcw6B0^r3<3;)9VY`#L=IG-d7!ArV;*M2 zBfIcAig~EX0BANS8Q?J+Gyaj?ssjvCgj>;41JH0#YQSSSy2F(ikR4u&+i;YWfy)!D UpiBwOnQRP#ObiV7K(WsN0Bkz@Hvj+t delta 153 zcmZqW=wsy#@MdP=VgLcA>e`756xf;1v!$_|XPcbMs5SAUGIQK1w#nj*@)NmKng7m& zFatF~%!#!Uyo^k8%y7+(Pi>aCfmuc j808pePUd9tWqdF>oJmuJl?|kY1qgi@85necn1KNRdy6At