1 /* 2 * Copyright (C) 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic 3 * 4 * This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation, either version 3 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 package nl.tudelft.goal.visualizer.ut3.util; 18 19 import cz.cuni.amis.pogamut.unreal.communication.worldview.map.IUnrealWaypoint; 20 import java.awt.Menu; 21 import java.awt.Point; 22 import org.junit.After; 23 import org.junit.AfterClass; 24 import org.junit.Before; 25 import org.junit.BeforeClass; 26 import org.junit.Test; 27 import static org.junit.Assert.*; 28 29 /** 30 * TODO: JUnit does not run. 31 * 32 * @author Michiel Hegemans 33 */ 34 public class MenuBuilderTest { 35 private static final Point POINT = new Point(0,0); 36 37 private Menu menu; 38 39 public MenuBuilderTest() { 40 } 41 42 @BeforeClass 43 public static void setUpClass() { 44 } 45 46 @AfterClass 47 public static void tearDownClass() { 48 } 49 50 @Before 51 public void setUp() { 52 menu = UT3MenuBuilder.buildUT3NavPointMenu(null, POINT); 53 } 54 55 @After 56 public void tearDown() { 57 } 58 /* 59 @Test 60 public void nameTest() { 61 assertEquals("UT3", menu.getName()); 62 } 63 64 @Test 65 public void itemCountTest() { 66 assertEquals(6, menu.getItemCount()); 67 } 68 * */ 69 }