File tree Expand file tree Collapse file tree
main/java/com/devnexus/ting/core/service/impl
java/com/devnexus/ting/core/dao Expand file tree Collapse file tree Original file line number Diff line number Diff line change 376376 <artifactId >servlet-api</artifactId >
377377 <groupId >javax.servlet</groupId >
378378 </exclusion >
379+ <exclusion >
380+ <artifactId >slf4j-nop</artifactId >
381+ <groupId >org.slf4j</groupId >
382+ </exclusion >
379383 </exclusions >
380384 </dependency >
381385
707711 <dependency >
708712 <groupId >org.springframework.cloud</groupId >
709713 <artifactId >spring-cloud-spring-service-connector</artifactId >
710- <version >1.1.1.RELEASE </version >
714+ <version >1.2.0.RC1 </version >
711715 </dependency >
712716 <dependency >
713717 <groupId >org.springframework.cloud</groupId >
714718 <artifactId >spring-cloud-cloudfoundry-connector</artifactId >
715- <version >1.1.1.RELEASE </version >
719+ <version >1.2.0.RC1 </version >
716720 </dependency >
717721 </dependencies >
718722
Original file line number Diff line number Diff line change 6161 * @since 1.0
6262 */
6363@ Service ("systemSetupService" )
64- @ Transactional
6564public class SystemSetupServiceImpl implements SystemSetupService {
6665
6766 private static final Logger LOGGER = LoggerFactory .getLogger (SystemSetupServiceImpl .class );
@@ -149,6 +148,7 @@ private void createDatabase() {
149148 systemDao .createDatabase (false , null );
150149 }
151150
151+ @ Transactional
152152 @ Override
153153 public void updateDatabase () {
154154 systemDao .updateDatabase ();
@@ -192,6 +192,7 @@ public void setupDatabase() {
192192 }
193193 }
194194
195+ @ Transactional
195196 @ Override
196197 public void setupDemoData () {
197198 LOGGER .info ("Ting Database is not setup, yet. Populating Demo Data..." );
Original file line number Diff line number Diff line change 2323import org .junit .Assert ;
2424import org .junit .Test ;
2525import org .springframework .beans .factory .annotation .Autowired ;
26+ import org .springframework .test .annotation .DirtiesContext ;
27+ import org .springframework .test .annotation .DirtiesContext .ClassMode ;
2628import org .springframework .transaction .annotation .Transactional ;
2729
2830import com .devnexus .ting .model .FileData ;
3234 * @author Gunnar Hillert
3335 */
3436@ Transactional
37+ @ DirtiesContext (classMode =ClassMode .AFTER_EACH_TEST_METHOD )
3538public class DocumentDaoTest extends BaseDaoIntegrationTest {
3639
3740 @ Autowired private FileDataRepository documentDao ;
Original file line number Diff line number Diff line change 2020import org .junit .Assert ;
2121import org .junit .Test ;
2222import org .springframework .beans .factory .annotation .Autowired ;
23+ import org .springframework .test .annotation .DirtiesContext ;
24+ import org .springframework .test .annotation .DirtiesContext .ClassMode ;
2325import org .springframework .transaction .annotation .Transactional ;
2426
2527import com .devnexus .ting .model .PresentationTag ;
3032 *
3133 */
3234@ Transactional
35+ @ DirtiesContext (classMode =ClassMode .AFTER_EACH_TEST_METHOD )
3336public class PresentationTagDaoTest extends BaseDaoIntegrationTest {
3437
3538 @ Autowired private PresentationTagRepository presentationTagDao ;
Original file line number Diff line number Diff line change 2020import org .junit .Assert ;
2121import org .junit .Test ;
2222import org .springframework .beans .factory .annotation .Autowired ;
23+ import org .springframework .test .annotation .DirtiesContext ;
24+ import org .springframework .test .annotation .DirtiesContext .ClassMode ;
2325import org .springframework .transaction .annotation .Transactional ;
2426
2527import com .devnexus .ting .model .Speaker ;
3032 *
3133 */
3234@ Transactional
35+ @ DirtiesContext (classMode =ClassMode .AFTER_EACH_TEST_METHOD )
3336public class SpeakerDaoTest extends BaseDaoIntegrationTest {
3437
3538 @ Autowired private SpeakerRepository speakerDao ;
Original file line number Diff line number Diff line change 1515 */
1616package com .devnexus .ting .core .dao ;
1717
18- import org .junit .Ignore ;
1918import org .junit .Test ;
2019import org .springframework .beans .factory .annotation .Autowired ;
20+ import org .springframework .test .annotation .DirtiesContext ;
21+ import org .springframework .test .annotation .DirtiesContext .ClassMode ;
2122
2223/**
2324 * @author Gunnar Hillert
2425 *
2526 */
27+ @ DirtiesContext (classMode =ClassMode .AFTER_EACH_TEST_METHOD )
2628public class SystemDaoTest extends BaseDaoIntegrationTest {
2729
2830 @ Autowired private SystemDao systemDao ;
@@ -31,7 +33,6 @@ public class SystemDaoTest extends BaseDaoIntegrationTest {
3133 *
3234 */
3335 @ Test
34- @ Ignore
3536 public void testGenerateSchema () {
3637 //systemDao.createDatabase(true, "org.hibernate.dialect.MySQLDialect");
3738 systemDao .createDatabase (true , "org.hibernate.dialect.PostgreSQLDialect" );
Original file line number Diff line number Diff line change 2020import org .junit .Assert ;
2121import org .junit .Test ;
2222import org .springframework .beans .factory .annotation .Autowired ;
23+ import org .springframework .test .annotation .DirtiesContext ;
2324import org .springframework .transaction .annotation .Transactional ;
2425
2526import com .devnexus .ting .model .Track ;
3031 *
3132 */
3233@ Transactional
34+ @ DirtiesContext
3335public class TrackDaoTest extends BaseDaoIntegrationTest {
3436
3537 @ Autowired private TrackRepository trackDao ;
Original file line number Diff line number Diff line change 2525 <level value =" WARN" />
2626 </logger >
2727 <logger name =" org.hibernate" >
28- <level value =" WARN " />
28+ <level value =" INFO " />
2929 </logger >
3030 <logger name =" org.hibernate.tool.hbm2ddl" >
31- <level value =" WARN " />
31+ <level value =" INFO " />
3232 </logger >
3333 <logger name =" com.hillert.apptools.spring" >
3434 <level value =" INFO" />
4141 </logger >
4242
4343 <root >
44- <level value =" WARN " />
44+ <level value =" INFO " />
4545 <appender-ref ref =" CONSOLE" />
4646 </root >
4747</configuration >
You can’t perform that action at this time.
0 commit comments