removed main test

This commit is contained in:
2026-04-08 22:31:36 +02:00
parent 680e5f0abd
commit c553735653
@@ -9,10 +9,8 @@ import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.ActiveProfiles;
import org.springframework.context.ApplicationContext;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertNotNull;
@SpringBootTest @SpringBootTest
@ActiveProfiles("test") @ActiveProfiles("test")
@@ -21,9 +19,6 @@ class ApplicationTests {
@Autowired @Autowired
private DataSource dataSource; private DataSource dataSource;
@Autowired
private ApplicationContext context;
@Test @Test
void contextLoads() { void contextLoads() {
} }
@@ -34,10 +29,4 @@ class ApplicationTests {
assertThat(connection.getMetaData().getURL()).contains("vaessl_test"); assertThat(connection.getMetaData().getURL()).contains("vaessl_test");
} }
} }
@Test
void main() {
Application.main(new String[] {});
assertNotNull(context, "The Spring context should not be null");
}
} }