@ -1 +1,2 @@
.idea/
target/
@ -0,0 +1,18 @@
package Application;
public class Menu {
private String name;
public Menu(String name){
setName(name);
}
public String getName() {
return name;
public void setName(String name) {
this.name = name;
@ -0,0 +1,24 @@
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class MenuTest {
@BeforeEach
void setUp() {
@AfterEach
void tearDown() {
@Test
void testCorrectName(){
Menu menu = new Menu("Item 1");
assertTrue(menu.getName().equals("Item 1"));