Last active
May 7, 2018 22:19
-
-
Save LenarBad/1e595b7c3d3651a5fe2a793bfd6159d8 to your computer and use it in GitHub Desktop.
BaseIT class for Spring Booot and TestNG tests
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; | |
@SpringBootTest(classes = TestNGWithSpringApplication.class) | |
public class BaseIT extends AbstractTestNGSpringContextTests { | |
// Common methods, variables and constants | |
} |
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.testng.Assert; | |
import org.testng.annotations.Test; | |
public class TestNGTestsWithSpringBootIT extends BaseIT { | |
@Test | |
public void simpleTest() { | |
Assert.assertEquals(2 * 2, 4, "2x2 should be 4"); | |
} | |
} |
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