Skip to content

Commit f167fd8

Browse files
GOODBOY008ilayaperumalg
authored andcommitted
fix: Update testNonExistingUrl to testNonExistingHtmlResource, use not exist classpath resource
Signed-off-by: gongzhongqiang <gongzhongqiang@apache.org>
1 parent 4c0813d commit f167fd8

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)