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 FirebaseServiceprivate org.springframework.test.web.servlet.MockMvcprivate com.fasterxml.jackson.databind.ObjectMapperprivate static Stringprivate static Stringprivate static String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAaSetUp()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
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
-