File tree Expand file tree Collapse file tree
main/java/com/devnexus/ting/core/dao Expand file tree Collapse file tree Original file line number Diff line number Diff line change 150150 <space >ghillert</space >
151151 <appname >devnexus</appname >
152152 <url >devnexus.cfapps.io</url >
153- <memory >512 </memory >
153+ <memory >1024 </memory >
154154 <diskQuota >1024</diskQuota >
155155 <healthCheckTimeout >180</healthCheckTimeout >
156156 <mergeEnv >true</mergeEnv >
368368 </dependency >
369369
370370 <dependency >
371- <groupId >net.sf.ehcache </groupId >
372- <artifactId >ehcache-web </artifactId >
373- <version >2.0.4 </version >
371+ <groupId >com.github.ziplet </groupId >
372+ <artifactId >ziplet </artifactId >
373+ <version >2.0.0 </version >
374374 <exclusions >
375375 <exclusion >
376- <artifactId >ehcache-core </artifactId >
377- <groupId >net.sf.ehcache </groupId >
376+ <artifactId >servlet-api </artifactId >
377+ <groupId >javax.servlet </groupId >
378378 </exclusion >
379379 </exclusions >
380380 </dependency >
633633 <groupId >org.springframework.integration</groupId >
634634 <artifactId >spring-integration-core</artifactId >
635635 <version >${spring.integration.version} </version >
636+ <exclusions >
637+ <exclusion >
638+ <artifactId >reactor-core</artifactId >
639+ <groupId >org.projectreactor</groupId >
640+ </exclusion >
641+ </exclusions >
636642 </dependency >
637643
638644 <dependency >
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2525import org .springframework .test .context .ActiveProfiles ;
2626import org .springframework .test .context .ContextConfiguration ;
2727import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
28- import org .springframework .transaction .annotation .Transactional ;
2928
3029import com .devnexus .ting .common .IntegrationTestApplicationContextInitializer ;
3130import com .devnexus .ting .common .SpringProfile ;
3231import com .devnexus .ting .core .service .SystemSetupService ;
33- import com .devnexus .ting .web .config .PersistenceConfig ;
3432import com .devnexus .ting .web .config .ServicesConfig ;
3533
3634/**
@@ -54,7 +52,9 @@ public abstract class BaseDaoIntegrationTest {
5452
5553 @ Before
5654 public void setup () {
57- systemSetupService .setupDatabase ();
55+ if (!systemSetupService .isDatabaseSetup ()) {
56+ systemSetupService .setupDatabase ();
57+ }
5858 }
5959
6060}
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 .transaction .annotation .Transactional ;
2324
2425import com .devnexus .ting .model .PresentationTag ;
2526import com .devnexus .ting .repository .PresentationTagRepository ;
2829 * @author Gunnar Hillert
2930 *
3031 */
32+ @ Transactional
3133public class PresentationTagDaoTest extends BaseDaoIntegrationTest {
3234
3335 @ Autowired private PresentationTagRepository presentationTagDao ;
Original file line number Diff line number Diff line change @@ -50,7 +50,10 @@ public class SecurityServicesTest {
5050
5151 @ Before
5252 public void setup () {
53- systemSetupService .setupDatabase ();
53+ if (!systemSetupService .isDatabaseSetup ()) {
54+ LOGGER .info ("Setting up database..." );
55+ systemSetupService .setupDatabase ();
56+ }
5457 }
5558
5659 private static final Logger LOGGER = LoggerFactory .getLogger (SecurityServicesTest .class );
Original file line number Diff line number Diff line change 1515 */
1616package com .devnexus .ting .core .dao ;
1717
18+ import org .junit .Ignore ;
1819import org .junit .Test ;
1920import org .springframework .beans .factory .annotation .Autowired ;
2021
@@ -30,7 +31,7 @@ public class SystemDaoTest extends BaseDaoIntegrationTest {
3031 *
3132 */
3233 @ Test
33- // @Ignore
34+ @ Ignore
3435 public void testGenerateSchema () {
3536 //systemDao.createDatabase(true, "org.hibernate.dialect.MySQLDialect");
3637 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 .transaction .annotation .Transactional ;
2324
2425import com .devnexus .ting .model .Track ;
2526import com .devnexus .ting .repository .TrackRepository ;
2829 * @author Gunnar Hillert
2930 *
3031 */
32+ @ Transactional
3133public class TrackDaoTest extends BaseDaoIntegrationTest {
3234
3335 @ Autowired private TrackRepository trackDao ;
Original file line number Diff line number Diff line change 2828import com .devnexus .ting .model .CfpSubmissionSpeaker ;
2929import com .devnexus .ting .model .PresentationType ;
3030import com .devnexus .ting .model .SkillLevel ;
31- import com .devnexus .ting .web .config .MainConfig ;
3231import com .devnexus .ting .web .config .ServicesConfig ;
3332
3433/**
Original file line number Diff line number Diff line change 3333import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
3434import org .springframework .transaction .annotation .Transactional ;
3535
36- import com .devnexus .ting .common .SpringProfile ;
3736import com .devnexus .ting .common .IntegrationTestApplicationContextInitializer ;
37+ import com .devnexus .ting .common .SpringProfile ;
3838import com .devnexus .ting .core .service .SystemSetupService ;
3939import com .devnexus .ting .core .service .UserService ;
4040import com .devnexus .ting .web .config .ServicesConfig ;
@@ -61,7 +61,9 @@ public class UserServiceIntegrationTest {
6161
6262 @ Before
6363 public void setup () {
64- systemSetupService .setupDatabase ();
64+ if (!systemSetupService .isDatabaseSetup ()) {
65+ systemSetupService .setupDatabase ();
66+ }
6567 }
6668
6769 @ Test
You can’t perform that action at this time.
0 commit comments