CHECKPOINT: Made configuyrator as a service. Test and java access modifier correction needs to be done before pull request

This commit is contained in:
Filip Izydorczyk
2020-09-23 19:12:25 +02:00
parent 9599d58543
commit 694fe74690
13 changed files with 44 additions and 103 deletions

View File

@ -0,0 +1,26 @@
package com.plannaplan.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(SpringRunner.class)
@SpringBootTest
@ContextConfiguration
public class ConfiguratorServiceTest {
@Autowired
ConfiguratorService configuratorService;
@Test
public void shouldImportDataToDataBase() {
}
}

View File

@ -12,6 +12,7 @@ import com.plannaplan.exceptions.UserNotFoundException;
import com.plannaplan.types.UserRoles;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.TestMethodOrder;
import org.junit.jupiter.api.MethodOrderer.OrderAnnotation;
@ -40,6 +41,7 @@ public class UserServiceTest {
}
@Test
@Ignore
public void shouldReturnToken() {
try {
String token = this.userService.login(TEST_USER_MAIL);