Commit eab0cb56 authored by Jonathan Cavia's avatar Jonathan Cavia

tests

parent 4de34ff6
...@@ -35,7 +35,6 @@ class ApplicationTest1Test2 { ...@@ -35,7 +35,6 @@ class ApplicationTest1Test2 {
@BeforeEach @BeforeEach
void setUp() { void setUp() {
System.out.println("antes de la prueba");
this.mvc = MockMvcBuilders.webAppContextSetup(this.webApplicationContext).build(); this.mvc = MockMvcBuilders.webAppContextSetup(this.webApplicationContext).build();
} }
...@@ -92,12 +91,10 @@ class ApplicationTest1Test2 { ...@@ -92,12 +91,10 @@ class ApplicationTest1Test2 {
.andExpect(MockMvcResultMatchers.content().contentType(org.springframework.http.MediaType.APPLICATION_JSON)) .andExpect(MockMvcResultMatchers.content().contentType(org.springframework.http.MediaType.APPLICATION_JSON))
.andExpect(MockMvcResultMatchers.jsonPath("$.saldo").value(2100)); .andExpect(MockMvcResultMatchers.jsonPath("$.saldo").value(2100));
System.out.println("durante la prueba");
} }
@AfterEach @AfterEach
void tearDown() { void tearDown() {
System.out.println("prueba terminada");
} }
......
...@@ -35,7 +35,6 @@ class ApplicationTest1Tests { ...@@ -35,7 +35,6 @@ class ApplicationTest1Tests {
@BeforeEach @BeforeEach
void setUp() { void setUp() {
System.out.println("antes de la prueba");
this.mvc = MockMvcBuilders.webAppContextSetup(this.webApplicationContext).build(); this.mvc = MockMvcBuilders.webAppContextSetup(this.webApplicationContext).build();
} }
...@@ -96,7 +95,6 @@ class ApplicationTest1Tests { ...@@ -96,7 +95,6 @@ class ApplicationTest1Tests {
@AfterEach @AfterEach
void tearDown() { void tearDown() {
System.out.println("prueba terminada");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment