Skip to content

Commit f39e7cb

Browse files
GOODBOY008leijendary
authored andcommitted
fix: Update testNonExistingUrl to testNonExistingHtmlResource, use not exist classpath resource
Signed-off-by: gongzhongqiang <[email protected]>
1 parent cea7d8b commit f39e7cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

document-readers/jsoup-reader/src/test/java/org/springframework/ai/reader/jsoup/JsoupDocumentReaderTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ void testParseBodyFragment() {
177177
}
178178

179179
@Test
180-
void testNonExistingUrl() {
181-
JsoupDocumentReader reader = new JsoupDocumentReader("https://nonexistingurl.com",
180+
void testNonExistingHtmlResource() {
181+
JsoupDocumentReader reader = new JsoupDocumentReader("classpath:/non-existing.html",
182182
JsoupDocumentReaderConfig.builder().build());
183183
assertThatThrownBy(reader::get).isInstanceOf(RuntimeException.class);
184184
}

0 commit comments

Comments
 (0)