@@ -273,97 +273,97 @@ void convertWithThinkingTagsAndMarkdownCodeBlock() {
273273 assertThat (testClass .getSomeString ()).isEqualTo ("some value" );
274274 }
275275
276- @ Test
277- void convertWithMultipleThinkingTags () {
278- var converter = new BeanOutputConverter <>(TestClass .class );
279- String textWithThinkingTags = "<thinking>First thought</thinking><thinking>Second thought</thinking>{ \" someString\" : \" some value\" }" ;
280- var testClass = converter .convert (textWithThinkingTags );
281- assertThat (testClass .getSomeString ()).isEqualTo ("some value" );
282- }
276+ @ Test
277+ void convertWithMultipleThinkingTags () {
278+ var converter = new BeanOutputConverter <>(TestClass .class );
279+ String textWithThinkingTags = "<thinking>First thought</thinking><thinking>Second thought</thinking>{ \" someString\" : \" some value\" }" ;
280+ var testClass = converter .convert (textWithThinkingTags );
281+ assertThat (testClass .getSomeString ()).isEqualTo ("some value" );
282+ }
283283
284- @ Test
285- void convertWithQwenThinkTags () {
286- // Test Qwen model format: <think>...</think>
287- var converter = new BeanOutputConverter <>(TestClass .class );
288- String textWithThinkTags = "<think>Let me analyze this...</think>{ \" someString\" : \" qwen test\" }" ;
289- var testClass = converter .convert (textWithThinkTags );
290- assertThat (testClass .getSomeString ()).isEqualTo ("qwen test" );
291- }
284+ @ Test
285+ void convertWithQwenThinkTags () {
286+ // Test Qwen model format: <think>...</think>
287+ var converter = new BeanOutputConverter <>(TestClass .class );
288+ String textWithThinkTags = "<think>Let me analyze this...</think>{ \" someString\" : \" qwen test\" }" ;
289+ var testClass = converter .convert (textWithThinkTags );
290+ assertThat (testClass .getSomeString ()).isEqualTo ("qwen test" );
291+ }
292292
293- @ Test
294- void convertWithQwenThinkTagsMultiline () {
295- var converter = new BeanOutputConverter <>(TestClass .class );
296- String textWithThinkTags = """
297- <think>
298- Analyzing the request step by step
299- First, I need to understand the schema
300- Then generate the JSON
301- </think>
302- { "someString": "qwen multiline" }
303- """ ;
304- var testClass = converter .convert (textWithThinkTags );
305- assertThat (testClass .getSomeString ()).isEqualTo ("qwen multiline" );
306- }
293+ @ Test
294+ void convertWithQwenThinkTagsMultiline () {
295+ var converter = new BeanOutputConverter <>(TestClass .class );
296+ String textWithThinkTags = """
297+ <think>
298+ Analyzing the request step by step
299+ First, I need to understand the schema
300+ Then generate the JSON
301+ </think>
302+ { "someString": "qwen multiline" }
303+ """ ;
304+ var testClass = converter .convert (textWithThinkTags );
305+ assertThat (testClass .getSomeString ()).isEqualTo ("qwen multiline" );
306+ }
307307
308- @ Test
309- void convertWithMixedThinkingAndThinkTags () {
310- // Test mixed format from different models
311- var converter = new BeanOutputConverter <>(TestClass .class );
312- String textWithMixedTags = "<thinking>Nova reasoning</thinking><think>Qwen analysis</think>{ \" someString\" : \" mixed test\" }" ;
313- var testClass = converter .convert (textWithMixedTags );
314- assertThat (testClass .getSomeString ()).isEqualTo ("mixed test" );
315- }
308+ @ Test
309+ void convertWithMixedThinkingAndThinkTags () {
310+ // Test mixed format from different models
311+ var converter = new BeanOutputConverter <>(TestClass .class );
312+ String textWithMixedTags = "<thinking>Nova reasoning</thinking><think>Qwen analysis</think>{ \" someString\" : \" mixed test\" }" ;
313+ var testClass = converter .convert (textWithMixedTags );
314+ assertThat (testClass .getSomeString ()).isEqualTo ("mixed test" );
315+ }
316316
317- @ Test
318- void convertWithReasoningTags () {
319- // Test alternative reasoning tags
320- var converter = new BeanOutputConverter <>(TestClass .class );
321- String textWithReasoningTags = "<reasoning>Internal reasoning process</reasoning>{ \" someString\" : \" reasoning test\" }" ;
322- var testClass = converter .convert (textWithReasoningTags );
323- assertThat (testClass .getSomeString ()).isEqualTo ("reasoning test" );
324- }
317+ @ Test
318+ void convertWithReasoningTags () {
319+ // Test alternative reasoning tags
320+ var converter = new BeanOutputConverter <>(TestClass .class );
321+ String textWithReasoningTags = "<reasoning>Internal reasoning process</reasoning>{ \" someString\" : \" reasoning test\" }" ;
322+ var testClass = converter .convert (textWithReasoningTags );
323+ assertThat (testClass .getSomeString ()).isEqualTo ("reasoning test" );
324+ }
325325
326- @ Test
327- void convertWithMarkdownThinkingBlock () {
328- // Test markdown-style thinking block
329- var converter = new BeanOutputConverter <>(TestClass .class );
330- String textWithMarkdownThinking = """
331- ```thinking
332- This is a markdown-style thinking block
333- Used by some models
334- ```
335- { "someString": "markdown thinking" }
336- """ ;
337- var testClass = converter .convert (textWithMarkdownThinking );
338- assertThat (testClass .getSomeString ()).isEqualTo ("markdown thinking" );
339- }
326+ @ Test
327+ void convertWithMarkdownThinkingBlock () {
328+ // Test markdown-style thinking block
329+ var converter = new BeanOutputConverter <>(TestClass .class );
330+ String textWithMarkdownThinking = """
331+ ```thinking
332+ This is a markdown-style thinking block
333+ Used by some models
334+ ```
335+ { "someString": "markdown thinking" }
336+ """ ;
337+ var testClass = converter .convert (textWithMarkdownThinking );
338+ assertThat (testClass .getSomeString ()).isEqualTo ("markdown thinking" );
339+ }
340340
341- @ Test
342- void convertWithCaseInsensitiveTags () {
343- // Test case insensitive tag matching
344- var converter = new BeanOutputConverter <>(TestClass .class );
345- String textWithUpperCaseTags = "<THINKING>UPPERCASE THINKING</THINKING>{ \" someString\" : \" case test\" }" ;
346- var testClass = converter .convert (textWithUpperCaseTags );
347- assertThat (testClass .getSomeString ()).isEqualTo ("case test" );
348- }
341+ @ Test
342+ void convertWithCaseInsensitiveTags () {
343+ // Test case insensitive tag matching
344+ var converter = new BeanOutputConverter <>(TestClass .class );
345+ String textWithUpperCaseTags = "<THINKING>UPPERCASE THINKING</THINKING>{ \" someString\" : \" case test\" }" ;
346+ var testClass = converter .convert (textWithUpperCaseTags );
347+ assertThat (testClass .getSomeString ()).isEqualTo ("case test" );
348+ }
349349
350- @ Test
351- void convertWithComplexNestedStructure () {
352- // Test complex scenario with multiple formats combined
353- var converter = new BeanOutputConverter <>(TestClass .class );
354- String complexText = """
355- <thinking>Nova model reasoning</thinking>
356- <think>Qwen model analysis</think>
357-
358- ```json
359- { "someString": "complex test" }
360- ```
361- """ ;
362- var testClass = converter .convert (complexText );
363- assertThat (testClass .getSomeString ()).isEqualTo ("complex test" );
364- }
350+ @ Test
351+ void convertWithComplexNestedStructure () {
352+ // Test complex scenario with multiple formats combined
353+ var converter = new BeanOutputConverter <>(TestClass .class );
354+ String complexText = """
355+ <thinking>Nova model reasoning</thinking>
356+ <think>Qwen model analysis</think>
365357
366- }
358+ ```json
359+ { "someString": "complex test" }
360+ ```
361+ """ ;
362+ var testClass = converter .convert (complexText );
363+ assertThat (testClass .getSomeString ()).isEqualTo ("complex test" );
364+ }
365+
366+ }
367367
368368 // @checkstyle:off RegexpSinglelineJavaCheck
369369 @ Nested
0 commit comments