|  | @@ -0,0 +1,34 @@
 | 
	
		
			
			|  | 1 | +package com.reactnativenavigation.presentation;
 | 
	
		
			
			|  | 2 | +
 | 
	
		
			
			|  | 3 | +import com.reactnativenavigation.BaseTest;
 | 
	
		
			
			|  | 4 | +import com.reactnativenavigation.parse.SideMenuRootOptions;
 | 
	
		
			
			|  | 5 | +import com.reactnativenavigation.parse.params.Bool;
 | 
	
		
			
			|  | 6 | +import com.reactnativenavigation.views.SideMenu;
 | 
	
		
			
			|  | 7 | +
 | 
	
		
			
			|  | 8 | +import org.junit.Test;
 | 
	
		
			
			|  | 9 | +import org.mockito.Mockito;
 | 
	
		
			
			|  | 10 | +
 | 
	
		
			
			|  | 11 | +import static org.junit.Assert.assertFalse;
 | 
	
		
			
			|  | 12 | +
 | 
	
		
			
			|  | 13 | +public class SideMenuPresenterTest extends BaseTest {
 | 
	
		
			
			|  | 14 | +    private SideMenuPresenter uut;
 | 
	
		
			
			|  | 15 | +
 | 
	
		
			
			|  | 16 | +    @Override
 | 
	
		
			
			|  | 17 | +    public void beforeEach() {
 | 
	
		
			
			|  | 18 | +        uut = new SideMenuPresenter();
 | 
	
		
			
			|  | 19 | +        SideMenu sideMenu = Mockito.mock(SideMenu.class);
 | 
	
		
			
			|  | 20 | +        uut.bindView(sideMenu);
 | 
	
		
			
			|  | 21 | +    }
 | 
	
		
			
			|  | 22 | +
 | 
	
		
			
			|  | 23 | +    @Test
 | 
	
		
			
			|  | 24 | +    public void mergeVisibility_visibilityOptionsAreConsumed() {
 | 
	
		
			
			|  | 25 | +        SideMenuRootOptions options = new SideMenuRootOptions();
 | 
	
		
			
			|  | 26 | +        options.left.visible = new Bool(true);
 | 
	
		
			
			|  | 27 | +        options.right.visible = new Bool(true);
 | 
	
		
			
			|  | 28 | +
 | 
	
		
			
			|  | 29 | +        uut.mergeOptions(options);
 | 
	
		
			
			|  | 30 | +
 | 
	
		
			
			|  | 31 | +        assertFalse(options.right.visible.hasValue());
 | 
	
		
			
			|  | 32 | +        assertFalse(options.left.visible.hasValue());
 | 
	
		
			
			|  | 33 | +    }
 | 
	
		
			
			|  | 34 | +}
 |