1+ /*
2+ * WiFiAnalyzer
3+ * Copyright (C) 2015 - 2025 VREM Software Development <VREMSoftwareDevelopment@gmail.com>
4+ *
5+ * This program is free software: you can redistribute it and/or modify
6+ * it under the terms of the GNU General Public License as published by
7+ * the Free Software Foundation, either version 3 of the License, or
8+ * (at your option) any later version.
9+ *
10+ * This program is distributed in the hope that it will be useful,
11+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+ * GNU General Public License for more details.
14+ *
15+ * You should have received a copy of the GNU General Public License
16+ * along with this program. If not, see <http://www.gnu.org/licenses/>
17+ */
18+ package com.vrem.wifianalyzer.navigation.items
19+
20+ import android.view.MenuItem
21+ import android.view.View
22+ import com.vrem.wifianalyzer.MainActivity
23+ import com.vrem.wifianalyzer.navigation.NavigationMenu
24+ import org.assertj.core.api.Assertions.assertThat
25+ import org.junit.Test
26+
27+ class NavigationItemTest {
28+ private val fixture: NavigationItem = object : NavigationItem {
29+ override fun activate (mainActivity : MainActivity , menuItem : MenuItem , navigationMenu : NavigationMenu ) = Unit
30+ }
31+
32+ @Test
33+ fun registered () {
34+ assertThat(fixture.registered).isFalse()
35+ }
36+
37+ @Test
38+ fun visibility () {
39+ assertThat(fixture.visibility).isEqualTo(View .GONE )
40+ }
41+ }
0 commit comments