mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-16 12:45:48 +00:00
Cleanup Java Classes
Signed-off-by: Patrick Baumgartner <contact@patbaumgartner.com>
This commit is contained in:
parent
142321aa3e
commit
47dfd4f388
4 changed files with 7 additions and 9 deletions
|
@ -24,7 +24,6 @@ import org.springframework.context.annotation.ImportRuntimeHints;
|
||||||
* PetClinic Spring Boot Application.
|
* PetClinic Spring Boot Application.
|
||||||
*
|
*
|
||||||
* @author Dave Syer
|
* @author Dave Syer
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
@ImportRuntimeHints(PetClinicRuntimeHints.class)
|
@ImportRuntimeHints(PetClinicRuntimeHints.class)
|
||||||
|
|
|
@ -40,4 +40,4 @@ public interface PetTypeRepository extends JpaRepository<PetType, Integer> {
|
||||||
@Query("SELECT ptype FROM PetType ptype ORDER BY ptype.name")
|
@Query("SELECT ptype FROM PetType ptype ORDER BY ptype.name")
|
||||||
List<PetType> findPetTypes();
|
List<PetType> findPetTypes();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,6 @@ import org.testcontainers.containers.MySQLContainer;
|
||||||
* PetClinic Spring Boot Application.
|
* PetClinic Spring Boot Application.
|
||||||
*
|
*
|
||||||
* @author Dave Syer
|
* @author Dave Syer
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
public class MysqlTestApplication {
|
public class MysqlTestApplication {
|
||||||
|
|
|
@ -50,12 +50,6 @@ import org.springframework.http.ResponseEntity;
|
||||||
properties = { "server.error.include-message=ALWAYS", "management.endpoints.enabled-by-default=false" })
|
properties = { "server.error.include-message=ALWAYS", "management.endpoints.enabled-by-default=false" })
|
||||||
class CrashControllerIntegrationTests {
|
class CrashControllerIntegrationTests {
|
||||||
|
|
||||||
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class,
|
|
||||||
DataSourceTransactionManagerAutoConfiguration.class, HibernateJpaAutoConfiguration.class })
|
|
||||||
static class TestConfiguration {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Value(value = "${local.server.port}")
|
@Value(value = "${local.server.port}")
|
||||||
private int port;
|
private int port;
|
||||||
|
|
||||||
|
@ -96,4 +90,10 @@ class CrashControllerIntegrationTests {
|
||||||
"This application has no explicit mapping for");
|
"This application has no explicit mapping for");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class,
|
||||||
|
DataSourceTransactionManagerAutoConfiguration.class, HibernateJpaAutoConfiguration.class })
|
||||||
|
static class TestConfiguration {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue