add
This commit is contained in:
24
test/java/GoodCaseTaskTest.java
Normal file
24
test/java/GoodCaseTaskTest.java
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
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"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user