11package org .woehlke .simpleworklist .common .testdata ;
22
3- import lombok .extern .slf4j . Slf4j ;
3+ import lombok .extern .java . Log ;
44import org .springframework .stereotype .Service ;
55import org .springframework .transaction .annotation .Propagation ;
66import org .springframework .transaction .annotation .Transactional ;
1919import java .util .Date ;
2020import java .util .UUID ;
2121
22- @ Slf4j
22+ @ Log
2323@ Service
2424public class TestDataServiceImpl implements TestDataService {
2525
@@ -36,14 +36,14 @@ public TestDataServiceImpl(ProjectRepository projectRepository, TaskRepository t
3636
3737 @ Transactional (propagation = Propagation .REQUIRES_NEW , readOnly = false )
3838 public void createTestCategoryTreeForUserAccount (UserAccount userAccount ) {
39- log .debug ("----------------------------------------------" );
40- log .debug ("createTestCategoryTreeForUserAccount" );
41- log .debug ("----------------------------------------------" );
42- log .debug ("userAccount: " +userAccount .toString ());
43- log .debug ("----------------------------------------------" );
39+ log .info ("----------------------------------------------" );
40+ log .info ("createTestCategoryTreeForUserAccount" );
41+ log .info ("----------------------------------------------" );
42+ log .info ("userAccount: " +userAccount .toString ());
43+ log .info ("----------------------------------------------" );
4444 Context contextWork = userAccount .getDefaultContext ();
45- log .debug ("contextWork: " +contextWork .toString ());
46- log .debug ("----------------------------------------------" );
45+ log .info ("contextWork: " +contextWork .toString ());
46+ log .info ("----------------------------------------------" );
4747 Date nowDate = new Date ();
4848 long now = nowDate .getTime ();
4949 String name01 = "test01_" + now ;
@@ -68,10 +68,10 @@ public void createTestCategoryTreeForUserAccount(UserAccount userAccount) {
6868 c02 .setDescription ("description02 for " + name02 + " " + loremIpsumProject );
6969 c01 = projectRepository .saveAndFlush (c01 );
7070 c02 = projectRepository .saveAndFlush (c02 );
71- log .debug ("----------------------------------------------" );
72- log .debug ("persisted: " + c01 .toString ());
73- log .debug ("persisted: " + c02 .toString ());
74- log .debug ("----------------------------------------------" );
71+ log .info ("----------------------------------------------" );
72+ log .info ("persisted: " + c01 .toString ());
73+ log .info ("persisted: " + c02 .toString ());
74+ log .info ("----------------------------------------------" );
7575 Project c0101 = Project .newProjectFactoryForParentProject (c01 );
7676 Project c0102 = Project .newProjectFactoryForParentProject (c01 );
7777 Project c0201 = Project .newProjectFactoryForParentProject (c02 );
@@ -96,12 +96,12 @@ public void createTestCategoryTreeForUserAccount(UserAccount userAccount) {
9696 c0102 = projectRepository .saveAndFlush (c0102 );
9797 c0201 = projectRepository .saveAndFlush (c0201 );
9898 c0202 = projectRepository .saveAndFlush (c0202 );
99- log .debug ("----------------------------------------------" );
100- log .debug ("persisted: " + c0101 .toString ());
101- log .debug ("persisted: " + c0102 .toString ());
102- log .debug ("persisted: " + c0201 .toString ());
103- log .debug ("persisted: " + c0202 .toString ());
104- log .debug ("----------------------------------------------" );
99+ log .info ("----------------------------------------------" );
100+ log .info ("persisted: " + c0101 .toString ());
101+ log .info ("persisted: " + c0102 .toString ());
102+ log .info ("persisted: " + c0201 .toString ());
103+ log .info ("persisted: " + c0202 .toString ());
104+ log .info ("----------------------------------------------" );
105105 Project c020201 = Project .newProjectFactoryForParentProject (c0202 );
106106 Project c020202 = Project .newProjectFactoryForParentProject (c0202 );
107107 Project c020203 = Project .newProjectFactoryForParentProject (c0202 );
@@ -120,12 +120,12 @@ public void createTestCategoryTreeForUserAccount(UserAccount userAccount) {
120120 c020201 = projectRepository .saveAndFlush (c020201 );
121121 c020202 = projectRepository .saveAndFlush (c020202 );
122122 c020203 = projectRepository .saveAndFlush (c020203 );
123- log .debug ("----------------------------------------------" );
124- log .debug ("persisted: " + c020201 .toString ());
125- log .debug ("persisted: " + c020202 .toString ());
126- log .debug ("persisted: " + c020202 .toString ());
127- log .debug ("persisted: " + c020203 .toString ());
128- log .debug ("----------------------------------------------" );
123+ log .info ("----------------------------------------------" );
124+ log .info ("persisted: " + c020201 .toString ());
125+ log .info ("persisted: " + c020202 .toString ());
126+ log .info ("persisted: " + c020202 .toString ());
127+ log .info ("persisted: " + c020203 .toString ());
128+ log .info ("----------------------------------------------" );
129129 Project c02020301 = Project .newProjectFactoryForParentProject (c020203 );
130130 Project c02020302 = Project .newProjectFactoryForParentProject (c020203 );
131131 Project c02020303 = Project .newProjectFactoryForParentProject (c020203 );
@@ -144,11 +144,11 @@ public void createTestCategoryTreeForUserAccount(UserAccount userAccount) {
144144 c02020301 = projectRepository .saveAndFlush (c02020301 );
145145 c02020302 = projectRepository .saveAndFlush (c02020302 );
146146 c02020303 = projectRepository .saveAndFlush (c02020303 );
147- log .debug ("----------------------------------------------" );
148- log .debug ("persisted: " + c02020301 .toString ());
149- log .debug ("persisted: " + c02020302 .toString ());
150- log .debug ("persisted: " + c02020303 .toString ());
151- log .debug ("----------------------------------------------" );
147+ log .info ("----------------------------------------------" );
148+ log .info ("persisted: " + c02020301 .toString ());
149+ log .info ("persisted: " + c02020302 .toString ());
150+ log .info ("persisted: " + c02020303 .toString ());
151+ log .info ("----------------------------------------------" );
152152 /* add 100 Tasks with Project c02020303 */
153153 for (int i = 10 ; i < 111 ; i ++) {
154154 String title = "title_" + i ;
@@ -166,11 +166,11 @@ public void createTestCategoryTreeForUserAccount(UserAccount userAccount) {
166166 task .setOrderIdProject (i );
167167 task .setOrderIdTaskState (i );
168168 taskRepository .saveAndFlush (task );
169- log .debug ("----------------------------------------------" );
170- log .debug ("persisted: " + task .toString ());
171- log .debug ("----------------------------------------------" );
169+ log .info ("----------------------------------------------" );
170+ log .info ("persisted: " + task .toString ());
171+ log .info ("----------------------------------------------" );
172172 }
173- log .debug ("----------------------------------------------" );
173+ log .info ("----------------------------------------------" );
174174 /* add 20 Tasks with Project Root */
175175 for (int i = 10 ; i <30 ; i ++) {
176176 String title = "title_" + i ;
@@ -188,9 +188,9 @@ public void createTestCategoryTreeForUserAccount(UserAccount userAccount) {
188188 task .setOrderIdProject (i );
189189 task .setOrderIdTaskState (i +111 );
190190 taskRepository .saveAndFlush (task );
191- log .debug ("----------------------------------------------" );
192- log .debug ("persisted: " + task .toString ());
193- log .debug ("----------------------------------------------" );
191+ log .info ("----------------------------------------------" );
192+ log .info ("persisted: " + task .toString ());
193+ log .info ("----------------------------------------------" );
194194 }
195195 }
196196
0 commit comments