SPB Git

Repository Public

Fixtures.kt 4.2 KB 103 lines kotlin

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * PROJECT METADATA8 * -----------------------------------------------------------------------------9 * Project          : Vrai-Prix Android10 * File             : app/src/test/kotlin/com/spboucher/vraiprix/Fixtures.kt11 * Description      : lecture des réponses réelles enregistrées (`fixtures/` :12 *                    API v3 de développement et API 2 relevées par l'app iOS ;13 *                    `fixtures/prod/` : production du 2026-11-29).14 * Module           : test15 * Repository       : https://git.spboucher.ai/vrai-prix-android16 * Project Website  : https://www.vrai-prix.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: dev@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.vraiprix9495import com.spboucher.vraiprix.core.json.J9697object Fixtures {98    fun text(name: String): String =99        requireNotNull(Fixtures::class.java.getResource("/fixtures/$name.json")) { "échantillon $name.json absent" }.readText()100101    fun json(name: String): J = requireNotNull(J.parse(text(name))) { "échantillon $name.json illisible" }102}103
Files main
Menu

Theme