Skip to content

Commit

Permalink
Move devtools to test scope
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyer committed Apr 10, 2024
1 parent 39da58d commit 5f93ecf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>test</scope>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.boot.test.web.server.LocalServerPort;
Expand All @@ -42,6 +43,10 @@ class PetClinicIntegrationTests {
@Autowired
private RestTemplateBuilder builder;

public static void main(String[] args) {
SpringApplication.run(PetClinicApplication.class, args);
}

@Test
void testFindAll() throws Exception {
vets.findAll();
Expand Down

0 comments on commit 5f93ecf

Please sign in to comment.