Chcekpoint - needs docs cleaning and tests

This commit is contained in:
Filip Izydorczyk
2021-01-04 18:10:14 +01:00
parent a6e6618202
commit 2141f35e3f
7 changed files with 155 additions and 20 deletions

View File

@ -1,5 +1,6 @@
package com.plannaplan.entities;
import static org.junit.Assert.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.sql.Date;
@ -138,4 +139,24 @@ public class AppConfigTest {
assertTrue(config.getCurrentState() == AppState.SECOND_TOUR);
}
@Test
public void shouldReturnFirstStartDatesCorns() {
assertFalse(false);
}
@Test
public void shouldReturnSecondStartDatesCorns() {
assertFalse(false);
}
@Test
public void shouldReturnFirstEndDatesCorns() {
assertFalse(false);
}
@Test
public void shouldReturnSecondEndDatesCorns() {
assertFalse(false);
}
}

View File

@ -66,20 +66,20 @@ public class ConfiguratorServiceTest {
@Test
@DirtiesContext(methodMode = MethodMode.BEFORE_METHOD)
public void shouldUpdatePreviousImport(){
public void shouldUpdatePreviousImport() {
final InputStream inputStream = getClass().getClassLoader()
.getResourceAsStream(ConfiguratorServiceTest.BEFORE_UPDATE_FILE);
.getResourceAsStream(ConfiguratorServiceTest.BEFORE_UPDATE_FILE);
this.configuratorService.importCoursesStream(inputStream);
int groups_ammount = this.groupService.getGroupsAmmount();
assertTrue(groups_ammount == 2);
final InputStream inputStream2 = getClass().getClassLoader()
.getResourceAsStream(ConfiguratorServiceTest.AFTER_UPDATE_FILE);
.getResourceAsStream(ConfiguratorServiceTest.AFTER_UPDATE_FILE);
this.configuratorService.importCoursesStream(inputStream2);
int groups_ammount2 = this.groupService.getGroupsAmmount();
Optional<Groups> newGroup = this.groupService.find(456458, 3);
Optional<Groups> newGroup = this.groupService.find(456458, 3);
Optional<Groups> updateGroup = this.groupService.find(456457, 2);
assertTrue(groups_ammount2 == 3);
@ -101,4 +101,9 @@ public class ConfiguratorServiceTest {
}
@Test
public void shlouldScheduleTaskWhenSetTourDate() {
assertTrue(false);
}
}