Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save LenarBad/4d63270d85b036ffe4f836e5c3036314 to your computer and use it in GitHub Desktop.
Save LenarBad/4d63270d85b036ffe4f836e5c3036314 to your computer and use it in GitHub Desktop.
Spring Boot and TestNG example - test class
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");
}
}
@RitaLev8webner
Copy link

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