Skip to content

Commit 14a1e7e

Browse files
add test
1 parent 151a877 commit 14a1e7e

3 files changed

Lines changed: 45 additions & 3 deletions

File tree

app/build.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Build Properties
2-
#Sat Jun 28 07:35:54 EDT 2025
3-
version_build=1
2+
#Sat Jun 28 08:06:18 EDT 2025
3+
version_build=2
44
version_major=3
55
version_minor=2
66
version_patch=1

app/jacoco.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def fileFilter = [
3131
'**/*Test*.*',
3232
'android/**/*.*',
3333
'**/com/jjoe64/*',
34-
'**/com/vrem/wifianalyzer/settings/SharedPreferences*'
34+
'**/com/vrem/wifianalyzer/settings/SharedPreferences*',
35+
'**/*$DefaultImpls.class'
3536
]
3637

3738
def classJavaDir = project.file("build/intermediates/javac/debug/compileDebugJavaWithJavac/classes")
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

Comments
 (0)