Skip to content

Commit 0bb37f6

Browse files
committed
feat: added class and dependencies to run the tests
1 parent 3660997 commit 0bb37f6

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

pom.xml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@
6666
<artifactId>vaadin-core</artifactId>
6767
<scope>test</scope>
6868
</dependency>
69+
70+
<dependency>
71+
<groupId>com.vaadin</groupId>
72+
<artifactId>vaadin-spring-boot-starter</artifactId>
73+
<!--version>24.3.0</!version-->
74+
<scope>test</scope>
75+
</dependency>
6976

7077
<dependency>
7178
<groupId>com.vaadin</groupId>
@@ -82,7 +89,7 @@
8289
<dependency>
8390
<groupId>jakarta.servlet</groupId>
8491
<artifactId>jakarta.servlet-api</artifactId>
85-
<version>6.1.0</version>
92+
<!--version>6.1.0</!version-->
8693
<scope>provided</scope>
8794
</dependency>
8895
<dependency>
@@ -132,6 +139,11 @@
132139
<artifactId>formatter-maven-plugin</artifactId>
133140
<version>2.12.2</version>
134141
</plugin>
142+
<plugin>
143+
<groupId>org.springframework.boot</groupId>
144+
<artifactId>spring-boot-maven-plugin</artifactId>
145+
<!--version>3.2.0</version-->
146+
</plugin>
135147
<plugin>
136148
<groupId>org.apache.maven.plugins</groupId>
137149
<artifactId>maven-jar-plugin</artifactId>
@@ -340,4 +352,3 @@
340352
</profile>
341353
</profiles>
342354
</project>
343-
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package firitin;
2+
import java.util.Collections;
3+
4+
import org.springframework.boot.SpringApplication;
5+
import org.springframework.boot.autoconfigure.SpringBootApplication;
6+
7+
// This annotation tells Spring to start up and look for Views and AppShell
8+
@SpringBootApplication
9+
public class TestRunner {
10+
11+
public static void main(String[] args) {
12+
// This launches the web server on localhost:9998
13+
SpringApplication app = new SpringApplication(TestRunner.class);
14+
15+
// Force port 9998
16+
app.setDefaultProperties(Collections.singletonMap("server.port", "9998"));
17+
18+
app.run(args);
19+
20+
System.out.println("----------------------------------------------");
21+
System.out.println(" Test Server Running at http://localhost:9998");
22+
System.out.println("----------------------------------------------");
23+
}
24+
}

0 commit comments

Comments
 (0)