package org.robobinding.binder; /* import static org.junit.Assert.assertNotNull; import mockit.Cascading; import mockit.Injectable; import mockit.integration.junit4.JMockit; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.robobinding.MenuBinder; import org.robobinding.ViewBinder; import org.robobinding.viewattribute.RandomValues; import android.content.Context; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; */ /** * * @since 1.0 * @version $Revision: 1.0 $ * @author Cheng Wei */ /* @RunWith(JMockit.class) public class BinderFactoryTest { private BinderFactory binderFactory; @Injectable Context context; @Cascading final LayoutInflater call_to_LayoutInflater_from_cloneInContext = null; @Before public void setUp() { binderFactory = new BinderFactory(null, null); } @Test public void viewBinderShouldBeWiredSuccessfully() { ViewBinder viewBinder = binderFactory.createViewBinder(context, RandomValues.trueOrFalse()); assertNotNull(viewBinder); } @Test public void menuBinderShouldBeWiredSuccessfully(@Injectable Menu menu, @Injectable MenuInflater menuInflater) { MenuBinder menuBinder = binderFactory.createMenuBinder( menu, menuInflater, context, RandomValues.trueOrFalse()); assertNotNull(menuBinder); } }*/