Chcekpoint - needs docs cleaning and tests
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user