From f1cdeb6d15ec1b0029d526a1119c6fd486932d71 Mon Sep 17 00:00:00 2001 From: mueller-ma Date: Sun, 5 Nov 2023 12:02:50 +0100 Subject: [PATCH] Ignore service message of Vodafone Closes #249 --- .../prepaidbalance/parser/concrete/NoBalanceParser.kt | 3 ++- .../com/github/muellerma/prepaidbalance/ResponseParserTest.kt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/muellerma/prepaidbalance/parser/concrete/NoBalanceParser.kt b/app/src/main/java/com/github/muellerma/prepaidbalance/parser/concrete/NoBalanceParser.kt index f6b56a03..05f99ac7 100644 --- a/app/src/main/java/com/github/muellerma/prepaidbalance/parser/concrete/NoBalanceParser.kt +++ b/app/src/main/java/com/github/muellerma/prepaidbalance/parser/concrete/NoBalanceParser.kt @@ -13,7 +13,8 @@ class NoBalanceParser : AbstractParser("Response without balance") { companion object { private val NO_BALANCE_START = listOf( - "Tu solicitud no puede ser tramitada en este momento" + "Tu solicitud no puede ser tramitada en este momento", + "Dieser Service steht auf Grund von Wartungsarbeiten leider erst" ) } } \ No newline at end of file diff --git a/app/src/test/java/com/github/muellerma/prepaidbalance/ResponseParserTest.kt b/app/src/test/java/com/github/muellerma/prepaidbalance/ResponseParserTest.kt index 288bb749..24857e39 100644 --- a/app/src/test/java/com/github/muellerma/prepaidbalance/ResponseParserTest.kt +++ b/app/src/test/java/com/github/muellerma/prepaidbalance/ResponseParserTest.kt @@ -12,7 +12,8 @@ class ResponseParserTest { null, "", "foobar", - "Tu solicitud no puede ser tramitada en este momento. Por favor vuelve a ingresar llamando al *888#" + "Tu solicitud no puede ser tramitada en este momento. Por favor vuelve a ingresar llamando al *888#", + "Dieser Service steht auf Grund von Wartungsarbeiten leider erst ab 9 Uhr wieder zur Verfügung." ).forEach { message -> assertNull(ResponseParser.getBalance(message)) }