Skip to content

Commit de2e5ee

Browse files
committed
Merge branch '3.2.x' into 3.3.x
2 parents e210444 + 54c3ccb commit de2e5ee

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-testng/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id "java"
3+
id "org.springframework.boot.conventions"
34
}
45

56
description = "Spring Boot TestNG smoke test"

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-testng/src/main/java/smoketest/testng/SampleTestNGApplication.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616

1717
package smoketest.testng;
1818

19+
import jakarta.servlet.ServletContextEvent;
20+
import jakarta.servlet.ServletContextListener;
1921
import org.apache.commons.logging.Log;
2022
import org.apache.commons.logging.LogFactory;
23+
2124
import org.springframework.boot.SpringApplication;
2225
import org.springframework.boot.autoconfigure.SpringBootApplication;
2326
import org.springframework.context.annotation.Bean;
2427

25-
import jakarta.servlet.ServletContextEvent;
26-
import jakarta.servlet.ServletContextListener;
27-
2828
@SpringBootApplication
2929
public class SampleTestNGApplication {
3030

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-testng/src/main/java/smoketest/testng/web/SampleController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616

1717
package smoketest.testng.web;
1818

19+
import smoketest.testng.service.HelloWorldService;
20+
1921
import org.springframework.beans.factory.annotation.Autowired;
2022
import org.springframework.stereotype.Controller;
2123
import org.springframework.web.bind.annotation.GetMapping;
2224
import org.springframework.web.bind.annotation.ResponseBody;
2325

24-
import smoketest.testng.service.HelloWorldService;
25-
2626
@Controller
2727
public class SampleController {
2828

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-testng/src/test/java/smoketest/testng/SampleTestNGApplicationTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package smoketest.testng;
1818

19-
import static org.assertj.core.api.Assertions.assertThat;
19+
import org.testng.annotations.Test;
2020

2121
import org.springframework.beans.factory.annotation.Autowired;
2222
import org.springframework.boot.test.context.SpringBootTest;
@@ -25,7 +25,8 @@
2525
import org.springframework.http.HttpStatus;
2626
import org.springframework.http.ResponseEntity;
2727
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
28-
import org.testng.annotations.Test;
28+
29+
import static org.assertj.core.api.Assertions.assertThat;
2930

3031
/**
3132
* Basic integration tests for demo application.

0 commit comments

Comments
 (0)