Checkpoint: ownedGroups.contains(groupId) and tests

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
2021-01-10 10:57:33 +01:00
parent e24938dfce
commit c7feb10997
2 changed files with 72 additions and 6 deletions

View File

@ -0,0 +1,65 @@
package com.plannaplan.controllers;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import static org.junit.Assert.assertTrue;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import javax.validation.constraints.AssertTrue;
@RunWith(SpringRunner.class)
@SpringBootTest
@ContextConfiguration
public class ExchangeControllerTest extends AbstractControllerTest{
@Test
public void shouldGetAllUsersExchanges(){
assertTrue(false);
}
@Test
public void shouldFailGettingExchange(){
assertTrue(false);
}
@Test
public void shouldFailPostDueToExchangeNoFound(){
assertTrue(false);
}
@Test
public void shouldInsertExchange(){
assertTrue(false);
}
@Test
public void shouldDenyExchangeDueToAssigmentOverlapping(){
assertTrue(false);
}
@Test
public void shouldDenyPostDueToAssignmentNotAccepted(){
assertTrue(false);
}
@Test
public void shouldFailDeleteDueToWrongPermissions(){
assertTrue(false);
}
@Test
public void shouldFailDeleteDueToExchangeNoFound(){
assertTrue(false);
}
@Test
public void shouldFailPostDueToGroupAlreadyAccepted(){
assertTrue(false);
}
}