// License: GPL. For details, see LICENSE file.
package org.openstreetmap.josm.gui.dialogs;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Rule;
import org.junit.Test;
import org.openstreetmap.josm.testutils.JOSMTestRules;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
/**
* Unit tests of {@link MinimapDialog} class.
*/
public class MinimapDialogTest {
/**
* Setup tests
*/
@Rule
@SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
public JOSMTestRules test = new JOSMTestRules().commands();
/**
* Unit test of {@link MinimapDialog} class.
*/
@Test
public void testMinimapDialog() {
MinimapDialog dlg = new MinimapDialog();
dlg.showDialog();
assertTrue(dlg.isVisible());
dlg.hideDialog();
assertFalse(dlg.isVisible());
}
}