test: update TypeObjetIntentionPaiementTest for LCB-FT values
Mise à jour suite à T004 (Spec 001):
- Nouvelles valeurs: RETRAIT_EPARGNE, CREDIT_REMBOURSEMENT
- hasSize(5) → hasSize(7)
- Tests valueOf et getLibelle pour nouvelles valeurs
Tests: 1809/1809 réussis ✅
Signed-off-by: lions dev Team
This commit is contained in:
@@ -27,13 +27,15 @@ class TypeObjetIntentionPaiementTest {
|
||||
@DisplayName("Test toutes les valeurs enum")
|
||||
void testToutesValeurs() {
|
||||
TypeObjetIntentionPaiement[] values = TypeObjetIntentionPaiement.values();
|
||||
assertThat(values).hasSize(5);
|
||||
assertThat(values).hasSize(7);
|
||||
assertThat(values).containsExactly(
|
||||
TypeObjetIntentionPaiement.COTISATION,
|
||||
TypeObjetIntentionPaiement.ADHESION,
|
||||
TypeObjetIntentionPaiement.EVENEMENT,
|
||||
TypeObjetIntentionPaiement.ABONNEMENT_UNIONFLOW,
|
||||
TypeObjetIntentionPaiement.DEPOT_EPARGNE);
|
||||
TypeObjetIntentionPaiement.DEPOT_EPARGNE,
|
||||
TypeObjetIntentionPaiement.RETRAIT_EPARGNE,
|
||||
TypeObjetIntentionPaiement.CREDIT_REMBOURSEMENT);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -44,6 +46,8 @@ class TypeObjetIntentionPaiementTest {
|
||||
assertThat(TypeObjetIntentionPaiement.valueOf("EVENEMENT")).isEqualTo(TypeObjetIntentionPaiement.EVENEMENT);
|
||||
assertThat(TypeObjetIntentionPaiement.valueOf("ABONNEMENT_UNIONFLOW")).isEqualTo(TypeObjetIntentionPaiement.ABONNEMENT_UNIONFLOW);
|
||||
assertThat(TypeObjetIntentionPaiement.valueOf("DEPOT_EPARGNE")).isEqualTo(TypeObjetIntentionPaiement.DEPOT_EPARGNE);
|
||||
assertThat(TypeObjetIntentionPaiement.valueOf("RETRAIT_EPARGNE")).isEqualTo(TypeObjetIntentionPaiement.RETRAIT_EPARGNE);
|
||||
assertThat(TypeObjetIntentionPaiement.valueOf("CREDIT_REMBOURSEMENT")).isEqualTo(TypeObjetIntentionPaiement.CREDIT_REMBOURSEMENT);
|
||||
|
||||
assertThatThrownBy(() -> TypeObjetIntentionPaiement.valueOf("INEXISTANT"))
|
||||
.isInstanceOf(IllegalArgumentException.class);
|
||||
@@ -64,6 +68,8 @@ class TypeObjetIntentionPaiementTest {
|
||||
assertThat(TypeObjetIntentionPaiement.EVENEMENT.getLibelle()).isEqualTo("Participation événement");
|
||||
assertThat(TypeObjetIntentionPaiement.ABONNEMENT_UNIONFLOW.getLibelle()).isEqualTo("Abonnement forfait UnionFlow");
|
||||
assertThat(TypeObjetIntentionPaiement.DEPOT_EPARGNE.getLibelle()).isEqualTo("Dépôt compte épargne");
|
||||
assertThat(TypeObjetIntentionPaiement.RETRAIT_EPARGNE.getLibelle()).isEqualTo("Retrait compte épargne");
|
||||
assertThat(TypeObjetIntentionPaiement.CREDIT_REMBOURSEMENT.getLibelle()).isEqualTo("Remboursement crédit");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user