Skip to content
Snippets Groups Projects
Select Git revision
  • 4401502c5d34921245fca4581ebcf3c5f7cb6326
  • master default protected
  • devops
  • deeksha
4 results

TestGradleApplicationTests.java

Blame
  • 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);
    	}
    
    }