From 889c5cc75ef8a5b9313cf9300e35b5d68925f0bf Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Mon, 10 Jun 2019 21:32:02 +0200 Subject: [PATCH] Create unit tests for special characters in path names Create a regression test for issue #999. Add directories with '[]' ans '()' in the name to the hello-world repository, so that they can be used in unit tests for repository paths with special characters. --- src/test/data/hello-world.git.zip | Bin 55129 -> 76158 bytes src/test/data/hello-world.properties | 8 ++++++-- .../java/com/gitblit/tests/JGitUtilsTest.java | 14 +++++++++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/test/data/hello-world.git.zip b/src/test/data/hello-world.git.zip index e1057a6b5c0aa562d9cbe431d55096d007f2819c..ef378f236bc6d762835c1e1563105297701a71e5 100644 GIT binary patch delta 31252 zcmeHwXIvD?^Y?NnDvEN7fnWedK}2?UHUa_yf&>vnjHqlR$O?ieqOyuP3j=0?2%aJa z1Ti3b7y%Ikb2xK6P6hKBpYGXRn9*5w_IG~%uO9rg;l+IG+f~)o)uGxOdv(9nwUYb$ z=(f_Q!5@pfNtf-hs@!-(#8FoRV+tGCQ=YI=+vF}@OTzq?) zPOJAiG+HYo@C`(Qf3~HWY&h<>Z`0R_qrtzzK4n_@HK;L;=osQ2TE7do#yY?+>h=M0T5sts`wu5 z$hI=W7(fKre&CNfuxE5(Z6|6K3J263`AmiMoGi77V76+W=KICOxkZ1r1nn+Ho$zP+ib zGmc8?lUY74d2aOt{^C15UZh43%sO`?bjhLPm-Tud5?LPh|2+AFZpK=NW5?<`t*`e8 z%zrHLEe_^6$97s998<05;1u_1%I4C*&u$iN4L%(H^ZA#ei^W&EjX-_WD9izsSV zXQ!#R>iq9H7EIaFL!962-sFZbaS&-?hn`5EC>F2*YzjM=$VGM%zEs5J@#%afpU05$ zg-i*T%aZVTY$=byk_gxmjs)1F$qZk%{p9KKIyTncBZBB037ti!BaDFZ;TI|@uK7r< zZkHZ%;2po=5j4f?@iN!S3sD+Y~#ut*cBq7QM*qTC2KTuRZ5( zb}L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WclTOz#EG*x!wDt$A}a)}iYmM!Kr9@6o_Vj{>7 zrtqR!9?HG%WQaE)CWeU>IldyqSwa_1vPeoq#4Zv-vc zJLJWNevg4cmz>oR;M+o%rFWyigWU#+Iw4yOY&^$2*i8eb#W-XCBryk+Ed~Z%avn&4 zp9ozRmq&r0t{g0cWs8B0Q(|Fv4VVrNITiGK3=F#D+>rnu6S~YhkpjQ`ZMH}W*bBLyW#Ty)7~Y}egqZ*@6uNA|D+-*OI#meC77GI~Igcj7E5?Yf+d7j9zqWG}qgl3Z zABk~MS|sS;&|5BB3=EMVN8SW@qtG>ZxT%zQ|L_qa6tcy{#%r*h(Hb$W@bc5C1_iE=HD2VJY%#F$+Td)g0OlVd;F+tQTe8K#pi4egAi(cT5GldGS|Ah5-QKKbjjBb1bC&;W&A@30$kj{Bxc02#lXg+d1;&mY&@Fv z(T#yYmwaDAfKLcr#y_8;J6nNR_ zxnkigTMTTx`ij}00n-AnZ_CIQ1A{L4bcFzC3SCoCE$QW4u>Pv(JK17l`6B^$t1=u? zP2UK_L*DpGKtE`g?b|Ew)0D->GPoGaiu%2ga!tZqw9%w`t8S!D$X_$)_gK}qur files = JGitUtils.getFilesInPath2(repository, null, null); + assertEquals(GitBlitSuite.helloworldSettings.getInteger(HelloworldKeys.files.top, 15), files.size()); + + files = JGitUtils.getFilesInPath2(repository, "C", null); + assertEquals(GitBlitSuite.helloworldSettings.getInteger(HelloworldKeys.files.C.top, 1), files.size()); + + files = JGitUtils.getFilesInPath2(repository, "[C++]", null); + assertEquals(GitBlitSuite.helloworldSettings.getInteger(HelloworldKeys.files.Cpp, 1), files.size()); + + files = JGitUtils.getFilesInPath2(repository, "C/C (K&R)", null); + assertEquals(GitBlitSuite.helloworldSettings.getInteger(HelloworldKeys.files.C.KnR, 1), files.size()); + repository.close(); - assertTrue(files.size() > 10); } @Test -- 2.39.5