Skip to content

Commit 6fd696c

Browse files
committed
migrate spring-boot
1 parent bc02d8c commit 6fd696c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/main/java/org/woehlke/simpleworklist/testdata/TestController.java renamed to src/main/java/org/woehlke/simpleworklist/testdata/TestDataController.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@
1010

1111
@Controller
1212
@RequestMapping(value = "/test")
13-
public class TestController {
13+
public class TestDataController {
1414

15-
private final TestService testService;
15+
private final TestDataService testDataService;
1616

1717
private final UserAccountLoginSuccessService userAccountLoginSuccessService;
1818

1919
@Autowired
20-
public TestController(TestService testService, UserAccountLoginSuccessService userAccountLoginSuccessService) {
21-
this.testService = testService;
20+
public TestDataController(TestDataService testDataService, UserAccountLoginSuccessService userAccountLoginSuccessService) {
21+
this.testDataService = testDataService;
2222
this.userAccountLoginSuccessService = userAccountLoginSuccessService;
2323
}
2424

2525
@RequestMapping(value = "/helper/project/createTree", method = RequestMethod.GET)
2626
public String createTestCategoryTree() {
2727
UserAccount user = userAccountLoginSuccessService.retrieveCurrentUser();
28-
testService.createTestCategoryTreeForUserAccount(user);
28+
testDataService.createTestCategoryTreeForUserAccount(user);
2929
return "redirect:/";
3030
}
3131

src/main/java/org/woehlke/simpleworklist/testdata/TestService.java renamed to src/main/java/org/woehlke/simpleworklist/testdata/TestDataService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import org.woehlke.simpleworklist.user.account.UserAccount;
44

5-
public interface TestService {
5+
public interface TestDataService {
66

77
void createTestCategoryTreeForUserAccount(UserAccount userAccount);
88
}

src/main/java/org/woehlke/simpleworklist/testdata/TestServiceImpl.java renamed to src/main/java/org/woehlke/simpleworklist/testdata/TestDataServiceImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424

2525
@Service
26-
public class TestServiceImpl implements TestService {
26+
public class TestDataServiceImpl implements TestDataService {
2727

28-
private static final Logger LOGGER = LoggerFactory.getLogger(TestServiceImpl.class);
28+
private static final Logger LOGGER = LoggerFactory.getLogger(TestDataServiceImpl.class);
2929

3030
private final ProjectRepository projectRepository;
3131

@@ -34,7 +34,7 @@ public class TestServiceImpl implements TestService {
3434
private final ContextRepository contextRepository;
3535

3636
@Autowired
37-
public TestServiceImpl(ProjectRepository projectRepository, TaskRepository taskRepository, ContextRepository contextRepository) {
37+
public TestDataServiceImpl(ProjectRepository projectRepository, TaskRepository taskRepository, ContextRepository contextRepository) {
3838
this.projectRepository = projectRepository;
3939
this.taskRepository = taskRepository;
4040
this.contextRepository = contextRepository;

0 commit comments

Comments
 (0)