Skip to content

Commit

Permalink
fixed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
st235 committed Mar 28, 2021
1 parent 435c5cc commit 591cfe1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package github.com.st235.expandablebottombar

import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.verify
import github.com.st235.lib_expandablebottombar.ExpandableBottomBar
import github.com.st235.lib_expandablebottombar.MenuItemDescriptor
import github.com.st235.lib_expandablebottombar.MenuItemImpl
import github.com.st235.lib_expandablebottombar.components.MenuItemView
Expand All @@ -14,13 +15,14 @@ import org.junit.runners.JUnit4
class MenuItemImplTest {

private val menuItem = MenuItemDescriptor(0, 0, "", 0, null, null)
private val rootView = mock<ExpandableBottomBar>()
private val itemView = mock<MenuItemView>()

private lateinit var menuItemImpl: MenuItemImpl

@Before
fun setUp() {
menuItemImpl = MenuItemImpl(menuItem, itemView)
menuItemImpl = MenuItemImpl(menuItem, rootView, itemView)
}

@Test
Expand Down

0 comments on commit 591cfe1

Please sign in to comment.