Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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 {
public void simpleTest() {
Assert.assertEquals(2 * 2, 4, "2x2 should be 4");

This comment has been minimized.

Copy link

@RitaLev8webner RitaLev8webner commented Dec 15, 2018

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