BdnbSqlClientTest

5

tests

0

failures

0

ignored

0.073s

duration

100%

successful

Tests

Test Method name Duration Result
fetchByBanKey — match par clé BAN exacte → Success avec matchConfidence=EXACT fetchByBanKey returns EXACT confidence() 0.009s passed
fetchByBanKey — clé exacte avec un seul résultat garde EXACT même si surfaceM2 diffère un peu (bestMatchFor n'a qu'un choix) fetchByBanKey stays EXACT even when the single row's surface differs from the query() 0.041s passed
fetchByInseeAndSurface — plusieurs candidats, le plus proche en surface est retenu et reste SURFACE_PROXIMITE fetchByInseeAndSurface picks the closest surface among several candidates and still tags it as proximite() 0.007s passed
fetchByInseeAndSurface — repli sans clé BAN, dans la tolérance → Success avec matchConfidence=SURFACE_PROXIMITE, JAMAIS EXACT fetchByInseeAndSurface returns SURFACE_PROXIMITE confidence, never EXACT() 0.009s passed
fetchByInseeAndSurface — la tolérance ±80 m²/±50 % reste appliquée (comportement préservé) : hors tolérance → NotFound fetchByInseeAndSurface still rejects candidates outside the surface tolerance() 0.007s passed

Standard output

22:37:55.127 [Test worker] INFO com.alertimmo.aiscraping.bdnb.BdnbSqlClient -- ✅ [BDNB-SQL] reference-db disponible (bdnb_batiments peuplée)
22:37:55.135 [Test worker] INFO com.alertimmo.aiscraping.bdnb.BdnbSqlClient -- ✅ [BDNB-SQL] reference-db disponible (bdnb_batiments peuplée)
22:37:55.143 [Test worker] INFO com.alertimmo.aiscraping.bdnb.BdnbSqlClient -- ✅ [BDNB-SQL] reference-db disponible (bdnb_batiments peuplée)
22:37:55.150 [Test worker] INFO com.alertimmo.aiscraping.bdnb.BdnbSqlClient -- ✅ [BDNB-SQL] reference-db disponible (bdnb_batiments peuplée)
22:37:55.194 [Test worker] INFO com.alertimmo.aiscraping.bdnb.BdnbSqlClient -- ✅ [BDNB-SQL] reference-db disponible (bdnb_batiments peuplée)