You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
432 B
24 lines
432 B
package Application;
|
|
|
|
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"));
|
|
}
|
|
}
|