19 lines
428 B
Java
19 lines
428 B
Java
package com.baeldung;
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
import org.junit.platform.runner.JUnitPlatform;
|
|
import org.junit.runner.RunWith;
|
|
|
|
import com.baeldung.junit5.Greetings;
|
|
|
|
@RunWith(JUnitPlatform.class)
|
|
public class GreetingsUnitTest {
|
|
|
|
@Test
|
|
void whenCallingSayHello_thenReturnHello() {
|
|
assertTrue("Hello".equals(Greetings.sayHello()));
|
|
}
|
|
|
|
} |