Skip to content

Commit

Permalink
works in travis?
Browse files Browse the repository at this point in the history
  • Loading branch information
abuttaro committed Feb 27, 2018
1 parent b87e301 commit 47351a1
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package com.github.restup.spring.boot;

import javax.persistence.EntityManager;
import org.mockito.Mockito;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EntityScan(basePackages = {"com.university"})
Expand All @@ -15,12 +12,4 @@ public static void main(String[] args) {
SpringApplication.run(SpringBootStarterTestApplication.class, args);
}

@Bean
public EntityManager entityManager() {
// XXX it seems spring boot is not loading everything correctly when
// starters are added as test dependencies???
// this is a hack just to test the Up! starters
return Mockito.mock(EntityManager.class);
}

}

0 comments on commit 47351a1

Please sign in to comment.