Last active
December 15, 2018 02:05
-
-
Save LenarBad/4d63270d85b036ffe4f836e5c3036314 to your computer and use it in GitHub Desktop.
Spring Boot and TestNG example - test class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.lenar.examples.spring.start; | |
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests; | |
import org.springframework.boot.test.context.SpringBootTest; | |
import org.testng.Assert; | |
import org.testng.annotations.Test; | |
@SpringBootTest(classes = TestNGWithSpringApplication.class) | |
public class TestNGTestsWithSpringBootIT extends AbstractTestNGSpringContextTests { | |
@Test | |
public void simpleTest() { | |
Assert.assertEquals(2 * 2, 4, "2x2 should be 4"); | |
} | |
} |
Hi there,
I have wrote the Integration tests in spring boot which is loading config properties from cloud server. But it is not working for me. Kindly help.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Spring Boot + TestNG. How to get started
See also gists:
Spring Boot + TestNG pom.xml - minimal Maven dpendencies
Spring Boot + TestNG - main method class