-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure XML parser uses response encoding (#672)
- Loading branch information
Showing
5 changed files
with
136 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
rssparser/src/test/kotlin/com/jocmp/rssparser/rss/XmlParserAccentsTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.jocmp.rssparser.rss | ||
|
||
import com.jocmp.rssparser.BaseParserTest | ||
import com.jocmp.rssparser.model.RssImage | ||
import java.nio.charset.Charset | ||
|
||
class XmlParserAccentsTest : BaseParserTest( | ||
charset = Charset.forName("ISO-8859-1"), | ||
feedPath = "feed-test-accents.xml", | ||
channelTitle = "UOL Noticias", | ||
channelLink = "http://noticias.uol.com.br/", | ||
channelImage = RssImage( | ||
url = "http://rss.i.uol.com.br/uol_rss.gif" | ||
), | ||
channelDescription = "Últimas Notícias", | ||
articleTitle = "Artur Jorge não é mais técnico do Botafogo", | ||
articleLink = "https://noticias.uol.com.br/ultimas-noticias/afp/2025/01/03/artur-jorge-nao-e-mais-tecnico-do-botafogo.htm", | ||
articlePubDate = "Sex, 03 Jan 2025 23:47:02 -0300", | ||
articleDescription = "O português Artur Jorge não continuará como treinador do Botafogo, anunciou nesta sexta-feira (3) o atual campeão brasileiro e da Copa Libertadores.", | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.