-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #513 from bounswe/lab-7/pr
- Loading branch information
Showing
19 changed files
with
1,260 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 31 additions & 31 deletions
62
.../java/com/group1/programminglanguagesforum/ProgrammingLanguagesForumApplicationTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
package com.group1.programminglanguagesforum; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.web.servlet.MockMvc; | ||
|
||
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; | ||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; | ||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; | ||
|
||
@SpringBootTest | ||
@AutoConfigureMockMvc | ||
class ProgrammingLanguagesForumApplicationTests { | ||
|
||
@Autowired | ||
private MockMvc mockMvc; | ||
|
||
@Test | ||
void contextLoads() { | ||
} | ||
|
||
@Test | ||
void testSetUp() throws Exception { | ||
mockMvc.perform(get("/api/v1/test")) | ||
.andExpect(status().isOk()) | ||
.andExpect(content().string("test")); | ||
} | ||
|
||
} | ||
//package com.group1.programminglanguagesforum; | ||
// | ||
//import org.junit.jupiter.api.Test; | ||
//import org.springframework.beans.factory.annotation.Autowired; | ||
//import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; | ||
//import org.springframework.boot.test.context.SpringBootTest; | ||
//import org.springframework.test.web.servlet.MockMvc; | ||
// | ||
//import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; | ||
//import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; | ||
//import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; | ||
// | ||
//@SpringBootTest | ||
//@AutoConfigureMockMvc | ||
//class ProgrammingLanguagesForumApplicationTests { | ||
// | ||
// @Autowired | ||
// private MockMvc mockMvc; | ||
// | ||
// @Test | ||
// void contextLoads() { | ||
// } | ||
// | ||
// @Test | ||
// void testSetUp() throws Exception { | ||
// mockMvc.perform(get("/api/v1/test")) | ||
// .andExpect(status().isOk()) | ||
// .andExpect(content().string("test")); | ||
// } | ||
// | ||
//} |
Oops, something went wrong.