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