25 lines
476 B
Java
25 lines
476 B
Java
|
|
import hhn.temp.project.Main;
|
|
import org.junit.jupiter.api.BeforeEach;
|
|
import org.junit.jupiter.api.DisplayName;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
import static org.junit.jupiter.api.Assertions.*;
|
|
|
|
public class GoodCaseTaskTest {
|
|
|
|
private Main main;
|
|
|
|
@BeforeEach
|
|
public void setup() {
|
|
main = new Main();
|
|
|
|
}
|
|
|
|
@Test
|
|
@DisplayName("Assert stores initial values")
|
|
public void assertStringInitialized() {
|
|
assertTrue(main.loadString().equals("test"));
|
|
}
|
|
}
|