Package restapi
Class RequestEndpointTest
java.lang.Object
restapi.RequestEndpointTest
@SpringBootTest
@AutoConfigureMockMvc
@TestMethodOrder(org.junit.jupiter.api.MethodOrderer.Alphanumeric.class)
public class RequestEndpointTest
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FirebaseService
private org.springframework.test.web.servlet.MockMvc
private com.fasterxml.jackson.databind.ObjectMapper
private static String
private static String
private static String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
AaSetUp()
void
void
void
void
void
void
void
void
void
void
void
-
Field Details
-
mockMvc
@Autowired private org.springframework.test.web.servlet.MockMvc mockMvc -
objectMapper
@Autowired private com.fasterxml.jackson.databind.ObjectMapper objectMapper -
firebaseService
-
token1
-
token2
-
token3
-
-
Constructor Details
-
RequestEndpointTest
public RequestEndpointTest()
-
-
Method Details
-
AaSetUp
- Throws:
Exception
-
aGetRequestsIsEmptyAtFirst
- Throws:
Exception
-
bNewRequestAddedForBothUsers
- Throws:
Exception
-
cNewRequestAddedForBothUsersAlreadyExists
- Throws:
Exception
-
eNewRequestAlreadyFriends
- Throws:
Exception
-
bNewRequestWrongUser
- Throws:
Exception
-
dAcceptRequestAddedForBothUsers
- Throws:
Exception
-
dAcceptRequestNotActive
- Throws:
Exception
-
eRejectRequest
- Throws:
Exception
-
dRejectRequestNotActive
- Throws:
Exception
-
fAcceptRejectCancelRequestNonExistent
- Throws:
Exception
-
fCancelRequest
- Throws:
Exception
-