@@ -0,0 +1,826 @@
+package com.example.fn;%0A%0Aimport static org.junit.jupiter.api.Assertions.*;%0A%0Aimport org.junit.jupiter.api.Test;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.boot.test.context.SpringBootTest.WebEnvironment;%0Aimport org.springframework.boot.test.web.client.TestRestTemplate;%0Aimport org.springframework.http.RequestEntity;%0Aimport org.springframework.http.ResponseEntity;%0A%0A@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)%0Apublic class FnApplicationTest %7B%0A%0A%09@Autowired%0A%09private TestRestTemplate rest;%0A%0A%09@Test%0A%09void hello() throws Exception %7B%0A%09%09ResponseEntity%3CString%3E response = rest.exchange(RequestEntity.post(%22/hello%22).body(%22foobar%22),%0A%09%09%09%09String.class);%0A%09%09assertEquals(%22Hello, foobar!%22, response.getBody());%0A%09%7D%0A%7D%0A

Add test