Select Git revision
TestGradleApplicationTests.java
TestGradleApplicationTests.java 588 B
package com.example.demo;
import com.example.demo.controller.TestGradleController;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import static org.junit.jupiter.api.Assertions.assertNotNull;
@SpringBootTest
class TestGradleApplicationTests {
@Autowired
private TestGradleController testGradleController;
@Test
void contextLoads() {
// to ensure that controller is getting created inside the application context
assertNotNull(testGradleController);
}
}