Package restapi

Class MatchEndpointTest

java.lang.Object
restapi.MatchEndpointTest

@SpringBootTest @AutoConfigureMockMvc @TestMethodOrder(org.junit.jupiter.api.MethodOrderer.Alphanumeric.class) public class MatchEndpointTest extends Object
  • Field Details

    • mockMvc

      @Autowired private org.springframework.test.web.servlet.MockMvc mockMvc
    • objectMapper

      @Autowired private com.fasterxml.jackson.databind.ObjectMapper objectMapper
    • firebaseService

      @MockBean private FirebaseService firebaseService
    • username1

      private static final String username1
      See Also:
    • username2

      private static final String username2
      See Also:
    • username3

      private static final String username3
      See Also:
    • password

      private static final String password
      See Also:
    • token1

      private static String token1
    • token2

      private static String token2
    • token3

      private static String token3
    • matchId12

      private static long matchId12
    • matchId23

      private static long matchId23
    • matchId13

      private static long matchId13
  • Constructor Details

    • MatchEndpointTest

      public MatchEndpointTest()
  • Method Details

    • AaSetUp

      @Test public void AaSetUp() throws Exception
      Throws:
      Exception
    • aGetMatchesFulfilledIsEmptyAtFirst

      @Test public void aGetMatchesFulfilledIsEmptyAtFirst() throws Exception
      Throws:
      Exception
    • aGetMatchesActiveIsEmptyAtFirst

      @Test public void aGetMatchesActiveIsEmptyAtFirst() throws Exception
      Throws:
      Exception
    • bGetMatchesActive

      @Test public void bGetMatchesActive() throws Exception
      Throws:
      Exception
    • cSendMatchRequestSent

      @Test public void cSendMatchRequestSent() throws Exception
      Throws:
      Exception
    • cSendMatchRequestWrongMatchId

      @Test public void cSendMatchRequestWrongMatchId() throws Exception
      Throws:
      Exception
    • cSendMatchRequestIdNotFound

      @Test public void cSendMatchRequestIdNotFound() throws Exception
      Throws:
      Exception
    • dSendMatchRequestAlreadyARequest

      @Test public void dSendMatchRequestAlreadyARequest() throws Exception
      Throws:
      Exception
    • dCancelNotSender

      @Test public void dCancelNotSender() throws Exception
      Throws:
      Exception
    • eAcceptMatchRequestOnFulfilled

      @Test public void eAcceptMatchRequestOnFulfilled() throws Exception
      Throws:
      Exception
    • fCancelAcceptedMatchRequest

      @Test public void fCancelAcceptedMatchRequest() throws Exception
      Throws:
      Exception