added dev conig

This commit is contained in:
Filip Izydorczyk 2020-12-11 15:27:38 +01:00
parent 0b807e355c
commit d2a679fb22
2 changed files with 3 additions and 8 deletions

View File

@ -48,9 +48,9 @@ public class App {
InputStream inputStream = getClass().getClassLoader().getResourceAsStream("Zajecia.xlsx"); InputStream inputStream = getClass().getClassLoader().getResourceAsStream("Zajecia.xlsx");
ConfigData data = new ConfigData( ConfigData data = new ConfigData(
new TourData(new Date(System.currentTimeMillis()), new TourData(new Date(System.currentTimeMillis()),
new Date(System.currentTimeMillis())), new Date(System.currentTimeMillis() + 86400000)),
new TourData(new Date(System.currentTimeMillis()), new TourData(new Date(System.currentTimeMillis() + 86400000),
new Date(System.currentTimeMillis())), new Date(System.currentTimeMillis() + 2 * 86400000)),
inputStream); inputStream);
this.contrl.config(data); this.contrl.config(data);

View File

@ -7,9 +7,7 @@ import static org.springframework.security.test.web.servlet.setup.SecurityMockMv
import java.io.InputStream; import java.io.InputStream;
import com.plannaplan.entities.AppConfig;
import com.plannaplan.entities.User; import com.plannaplan.entities.User;
import com.plannaplan.services.AppConfigService;
import com.plannaplan.services.UserService; import com.plannaplan.services.UserService;
import com.plannaplan.types.UserRoles; import com.plannaplan.types.UserRoles;
@ -39,9 +37,6 @@ public class ConfigControllerTest extends AbstractControllerTest {
@Autowired @Autowired
private UserService service; private UserService service;
@Autowired
private AppConfigService configService;
@Test @Test
public void shouldReturnNoAuthorized() throws Exception { public void shouldReturnNoAuthorized() throws Exception {
final InputStream inputStream = getClass().getClassLoader().getResourceAsStream(FILE_NAME); final InputStream inputStream = getClass().getClassLoader().getResourceAsStream(FILE_NAME);