Skip to content

Instantly share code, notes, and snippets.

@nuboat
Created March 5, 2020 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuboat/e9127fe403265983e207d3a1ea794612 to your computer and use it in GitHub Desktop.
Save nuboat/e9127fe403265983e207d3a1ea794612 to your computer and use it in GitHub Desktop.
spbbook
package link.colon.component;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class HelloWorldTest {
@Autowired
private HelloWorld h;
@Test
void testSayHi() {
assert "Hello World".equals(h.sayHi());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment