diff --git a/src/test/java/com/safetypin/authentication/AuthenticationApplicationTests.java b/src/test/java/com/safetypin/authentication/AuthenticationApplicationTests.java index 599099f38578d629b37983ce7119b66c97b2915b..a528070135724a4e7a25ed890042dfd3bcf6b5cc 100644 --- a/src/test/java/com/safetypin/authentication/AuthenticationApplicationTests.java +++ b/src/test/java/com/safetypin/authentication/AuthenticationApplicationTests.java @@ -1,13 +1,13 @@ package com.safetypin.authentication; import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; -@SpringBootTest -class AuthenticationApplicationTests { +class AuthenticationApplicationTest { @Test - void contextLoads() { + void testMainDoesNotThrowException() { + // Calling the main method should load the context without throwing an exception. + assertDoesNotThrow(() -> AuthenticationApplication.main(new String[] {})); } - }