@@ -784,7 +784,7 @@ void whenChatResponseContentIsNull() {
784784 ChatModel chatModel = mock (ChatModel .class );
785785 ArgumentCaptor <Prompt > promptCaptor = ArgumentCaptor .forClass (Prompt .class );
786786 given (chatModel .call (promptCaptor .capture ()))
787- .willReturn (new ChatResponse (List .of (new Generation (new AssistantMessage (null )))));
787+ .willReturn (new ChatResponse (List .of (new Generation (new AssistantMessage (( String ) null )))));
788788
789789 ChatClient chatClient = new DefaultChatClientBuilder (chatModel ).build ();
790790 DefaultChatClient .DefaultChatClientRequestSpec chatClientRequestSpec = (DefaultChatClient .DefaultChatClientRequestSpec ) chatClient
@@ -814,7 +814,7 @@ void whenResponseEntityWithParameterizedTypeAndChatResponseContentNull() {
814814 ChatModel chatModel = mock (ChatModel .class );
815815 ArgumentCaptor <Prompt > promptCaptor = ArgumentCaptor .forClass (Prompt .class );
816816 given (chatModel .call (promptCaptor .capture ()))
817- .willReturn (new ChatResponse (List .of (new Generation (new AssistantMessage (null )))));
817+ .willReturn (new ChatResponse (List .of (new Generation (new AssistantMessage (( String ) null )))));
818818
819819 ChatClient chatClient = new DefaultChatClientBuilder (chatModel ).build ();
820820 DefaultChatClient .DefaultChatClientRequestSpec chatClientRequestSpec = (DefaultChatClient .DefaultChatClientRequestSpec ) chatClient
@@ -874,7 +874,7 @@ void whenResponseEntityWithConverterAndChatResponseContentNull() {
874874 ChatModel chatModel = mock (ChatModel .class );
875875 ArgumentCaptor <Prompt > promptCaptor = ArgumentCaptor .forClass (Prompt .class );
876876 given (chatModel .call (promptCaptor .capture ()))
877- .willReturn (new ChatResponse (List .of (new Generation (new AssistantMessage (null )))));
877+ .willReturn (new ChatResponse (List .of (new Generation (new AssistantMessage (( String ) null )))));
878878
879879 ChatClient chatClient = new DefaultChatClientBuilder (chatModel ).build ();
880880 DefaultChatClient .DefaultChatClientRequestSpec chatClientRequestSpec = (DefaultChatClient .DefaultChatClientRequestSpec ) chatClient
@@ -926,7 +926,7 @@ void whenResponseEntityWithTypeAndChatResponseContentNull() {
926926 ChatModel chatModel = mock (ChatModel .class );
927927 ArgumentCaptor <Prompt > promptCaptor = ArgumentCaptor .forClass (Prompt .class );
928928 given (chatModel .call (promptCaptor .capture ()))
929- .willReturn (new ChatResponse (List .of (new Generation (new AssistantMessage (null )))));
929+ .willReturn (new ChatResponse (List .of (new Generation (new AssistantMessage (( String ) null )))));
930930
931931 ChatClient chatClient = new DefaultChatClientBuilder (chatModel ).build ();
932932 DefaultChatClient .DefaultChatClientRequestSpec chatClientRequestSpec = (DefaultChatClient .DefaultChatClientRequestSpec ) chatClient
@@ -978,7 +978,7 @@ void whenEntityWithParameterizedTypeAndChatResponseContentNull() {
978978 ChatModel chatModel = mock (ChatModel .class );
979979 ArgumentCaptor <Prompt > promptCaptor = ArgumentCaptor .forClass (Prompt .class );
980980 given (chatModel .call (promptCaptor .capture ()))
981- .willReturn (new ChatResponse (List .of (new Generation (new AssistantMessage (null )))));
981+ .willReturn (new ChatResponse (List .of (new Generation (new AssistantMessage (( String ) null )))));
982982
983983 ChatClient chatClient = new DefaultChatClientBuilder (chatModel ).build ();
984984 DefaultChatClient .DefaultChatClientRequestSpec chatClientRequestSpec = (DefaultChatClient .DefaultChatClientRequestSpec ) chatClient
@@ -1076,7 +1076,7 @@ void whenEntityWithTypeAndChatResponseContentNull() {
10761076 ChatModel chatModel = mock (ChatModel .class );
10771077 ArgumentCaptor <Prompt > promptCaptor = ArgumentCaptor .forClass (Prompt .class );
10781078 given (chatModel .call (promptCaptor .capture ()))
1079- .willReturn (new ChatResponse (List .of (new Generation (new AssistantMessage (null )))));
1079+ .willReturn (new ChatResponse (List .of (new Generation (new AssistantMessage (( String ) null )))));
10801080
10811081 ChatClient chatClient = new DefaultChatClientBuilder (chatModel ).build ();
10821082 DefaultChatClient .DefaultChatClientRequestSpec chatClientRequestSpec = (DefaultChatClient .DefaultChatClientRequestSpec ) chatClient
@@ -1282,7 +1282,7 @@ void whenChatResponseContentIsNullThenReturnFlux() {
12821282 ChatModel chatModel = mock (ChatModel .class );
12831283 ArgumentCaptor <Prompt > promptCaptor = ArgumentCaptor .forClass (Prompt .class );
12841284 given (chatModel .stream (promptCaptor .capture ()))
1285- .willReturn (Flux .just (new ChatResponse (List .of (new Generation (new AssistantMessage (null ))))));
1285+ .willReturn (Flux .just (new ChatResponse (List .of (new Generation (new AssistantMessage (( String ) null ))))));
12861286
12871287 ChatClient chatClient = new DefaultChatClientBuilder (chatModel ).build ();
12881288 DefaultChatClient .DefaultChatClientRequestSpec chatClientRequestSpec = (DefaultChatClient .DefaultChatClientRequestSpec ) chatClient
0 commit comments