Package restapi
Class MatchEndpointTest
java.lang.Object
restapi.MatchEndpointTest
@SpringBootTest
@AutoConfigureMockMvc
@TestMethodOrder(org.junit.jupiter.api.MethodOrderer.Alphanumeric.class)
public class MatchEndpointTest
extends Object
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FirebaseService
private static long
private static long
private static long
private org.springframework.test.web.servlet.MockMvc
private com.fasterxml.jackson.databind.ObjectMapper
private static final String
private static String
private static String
private static String
private static final String
private static final String
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
AaSetUp()
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
-
username1
- See Also:
-
username2
- See Also:
-
username3
- See Also:
-
password
- See Also:
-
token1
-
token2
-
token3
-
matchId12
private static long matchId12 -
matchId23
private static long matchId23 -
matchId13
private static long matchId13
-
-
Constructor Details
-
MatchEndpointTest
public MatchEndpointTest()
-
-
Method Details
-
AaSetUp
- Throws:
Exception
-
aGetMatchesFulfilledIsEmptyAtFirst
- Throws:
Exception
-
aGetMatchesActiveIsEmptyAtFirst
- Throws:
Exception
-
bGetMatchesActive
- Throws:
Exception
-
cSendMatchRequestSent
- Throws:
Exception
-
cSendMatchRequestWrongMatchId
- Throws:
Exception
-
cSendMatchRequestIdNotFound
- Throws:
Exception
-
dSendMatchRequestAlreadyARequest
- Throws:
Exception
-
dCancelNotSender
- Throws:
Exception
-
eAcceptMatchRequestOnFulfilled
- Throws:
Exception
-
fCancelAcceptedMatchRequest
- Throws:
Exception
-