From 566160483587cdc8982044556eaaa6e6b8d0b730 Mon Sep 17 00:00:00 2001 From: marcus6n Date: Tue, 15 Oct 2024 16:26:26 -0300 Subject: [PATCH] change variable name --- .../shareaza/ShareazaDownloadParserTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/iped-parsers/iped-parsers-impl/src/test/java/iped/parsers/shareaza/ShareazaDownloadParserTest.java b/iped-parsers/iped-parsers-impl/src/test/java/iped/parsers/shareaza/ShareazaDownloadParserTest.java index 0d63e2d185..3f503063e4 100644 --- a/iped-parsers/iped-parsers-impl/src/test/java/iped/parsers/shareaza/ShareazaDownloadParserTest.java +++ b/iped-parsers/iped-parsers-impl/src/test/java/iped/parsers/shareaza/ShareazaDownloadParserTest.java @@ -31,14 +31,14 @@ public void testShareazaDownloadParser() throws IOException, SAXException, TikaE try (InputStream stream = getStream("test-files/test_shareazaDownload.sd")) { parser.parse(stream, handler, metadata, context); - String parsedText = handler.toString(); - - assertTrue(parsedText.contains("Komodor - Electrize.mp3")); - assertTrue(parsedText.contains("File Length: 5,613,696 Bytes (5.4 MB)")); - assertTrue(parsedText.contains("Number of Fragments: 1")); - assertTrue(parsedText.contains("SHA1: 6FC0E7F66C3B8059B2C3B485710FA4B09BAA4F86")); - assertTrue(parsedText.contains("Source Address: http://189.60.225.131:6346/uri-res/N2R?urn:sha1:N7AOP5TMHOAFTMWDWSCXCD5EWCN2UT4G")); - assertTrue(parsedText.contains("Server Name: 04 - Artist - Komodor - electrize.mp3")); + String hts = handler.toString(); + + assertTrue(hts.contains("Komodor - Electrize.mp3")); + assertTrue(hts.contains("File Length: 5,613,696 Bytes (5.4 MB)")); + assertTrue(hts.contains("Number of Fragments: 1")); + assertTrue(hts.contains("SHA1: 6FC0E7F66C3B8059B2C3B485710FA4B09BAA4F86")); + assertTrue(hts.contains("Source Address: http://189.60.225.131:6346/uri-res/N2R?urn:sha1:N7AOP5TMHOAFTMWDWSCXCD5EWCN2UT4G")); + assertTrue(hts.contains("Server Name: 04 - Artist - Komodor - electrize.mp3")); } } }