SPB Git

Repository Public

Fixtures.kt 4.2 KB 104 lines kotlin

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * PROJECT METADATA8 * -----------------------------------------------------------------------------9 * Project          : Immo-Ka Android10 * File             : app/src/test/kotlin/com/spboucher/immoka/Fixtures.kt11 * Description      : lecture des échantillons de test — réponses réelles de la12 *                    production (2026-11-25 et 2026-11-28), raccourcies ; les13 *                    mêmes que ceux de l'app iOS.14 * Module           : test15 * Repository       : https://git.spboucher.ai/immo-ka-android16 * Project Website  : https://www.immo-ka.com17 * Created          : 2026-11-2918 * Last Modified    : 2026-11-2919 *20 * =============================================================================21 * AUTHOR & PROFESSIONAL AFFILIATION22 * =============================================================================23 *24 * Author           : Simon-Pierre Boucher25 * Position         : Professor of Finance26 * Institution      : Université du Québec en Outaouais (UQO)27 * Department       : Département des sciences administratives28 * Organization     : SP Boucher29 *30 * Website          : https://spboucher.ai31 * Git              : https://git.spboucher.ai32 *33 * =============================================================================34 * OFFICIAL CONTACT DIRECTORY35 * =============================================================================36 *37 * General          : info@spboucher.ai38 * Professional     : contact@spboucher.ai39 * Direct           : simon@spboucher.ai40 * Research         : research@spboucher.ai41 * Development      : dev@spboucher.ai42 * Support          : support@spboucher.ai43 * Security/Admin   : admin@spboucher.ai44 * Notifications    : notifications@spboucher.ai45 *46 * Preferred Contact: contact@spboucher.ai47 *48 * =============================================================================49 * COPYRIGHT & INTELLECTUAL PROPERTY50 * =============================================================================51 *52 * Copyright (c) 202653 * Simon-Pierre Boucher54 *55 * All rights reserved where applicable.56 *57 * This file is governed by the applicable project license,58 * copyright notices, institutional agreements and relevant law.59 *60 * Unless expressly authorized by the applicable license or61 * rights holder, copying, redistribution, sublicensing,62 * publication and commercial exploitation are not permitted.63 *64 * Existing third-party rights and notices remain unaffected.65 *66 * =============================================================================67 * CONFIDENTIALITY & SECURITY68 * =============================================================================69 *70 * Classification   : Public71 * Distribution     : Public repository; use is governed by the project license72 * Security Contact : admin@spboucher.ai73 *74 * Access to this source does not independently grant permission75 * to redistribute or disclose confidential materials.76 *77 * Do not embed credentials, private keys, access tokens,78 * certificates or confidential personal information.79 *80 * =============================================================================81 * LICENSE & MAINTENANCE82 * =============================================================================83 *84 * License          : None specified (no license file in this repository)85 * Maintainer       : Simon-Pierre Boucher86 * Technical Contact: dev@spboucher.ai87 *88 * =============================================================================89 * END OF SP BOUCHER SOURCE HEADER90 * =============================================================================91 */9293package com.spboucher.immoka9495import com.spboucher.immoka.core.util.parseObject96import kotlinx.serialization.json.JsonObject9798object Fixtures {99    fun text(name: String): String =100        checkNotNull(javaClass.classLoader?.getResourceAsStream("fixtures/$name.json")) { "échantillon absent : $name" }.bufferedReader().use { it.readText() }101102    fun obj(name: String): JsonObject = checkNotNull(parseObject(text(name))) { "échantillon illisible : $name" }103}104
Files main
Menu

Theme