Skip to content

Commit

Permalink
chore: Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
VicenteVigueras committed Apr 10, 2024
1 parent 56f4307 commit 04a2882
Showing 1 changed file with 4 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
package com.codedifferently.lesson16.web;

import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

import java.util.Set;

import static org.assertj.core.api.Assertions.assertThat;

import com.codedifferently.lesson16.Lesson16;
import com.codedifferently.lesson16.library.Library;

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
Expand All @@ -21,22 +18,6 @@
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.web.context.WebApplicationContext;

import com.codedifferently.lesson16.library.LibraryGuest;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;

import com.codedifferently.lesson16.library.Library;
import com.codedifferently.lesson16.library.LibraryGuest;
import java.util.Collections;
import java.util.Set;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.http.MediaType;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;

@SpringBootTest
@ContextConfiguration(classes = Lesson16.class)
class PatronsControllerTest {
Expand Down Expand Up @@ -65,8 +46,7 @@ void testController_getsPatron() throws Exception {
.contentType(MediaType.APPLICATION_JSON))
.andExpect(status().isOk());
}


}
// @Test
// void testController_addsItem() throws Exception {
// String json =
Expand All @@ -79,7 +59,7 @@ void testController_getsPatron() throws Exception {
// }
// }
// """;

// mockMvc
// .perform(post("/patrons").contentType(MediaType.APPLICATION_JSON).content(json))
// .andExpect(status().isOk())
Expand Down

0 comments on commit 04a2882

Please sign in to comment.