Package org.drools.guvnor.client.explorer

Examples of org.drools.guvnor.client.explorer.ClientFactory


public class RunTimePerspectiveTest {

    @Test
    public void testAllBuildersExist() throws Exception {
        ClientFactory clientFactory = mock(ClientFactory.class);
        EventBus eventBus = mock(EventBus.class);
        Collection<NavigationItemBuilder> builders = new RunTimePerspective().getBuilders(clientFactory, eventBus);

        assertEquals(4, builders.size());
        assertTrue(builders.toArray()[0] instanceof TasksNavigationItemBuilder);
View Full Code Here


    private PackageServiceAsync packageService;

    @Before
    public void setUp() throws Exception {
        view = mock( GlobalAreaTreeItemView.class );
        ClientFactory clientFactory = mock( ClientFactory.class );
        navigationViewFactory = mock( NavigationViewFactory.class );
        when(
                clientFactory.getNavigationViewFactory()
        ).thenReturn(
                navigationViewFactory
        );
        when(
                navigationViewFactory.getGlobalAreaTreeItemView()
        ).thenReturn(
                view
        );

        packageService = mock( PackageServiceAsync.class );
        when(
                clientFactory.getPackageService()
        ).thenReturn(
                packageService
        );

        presenter = new GlobalAreaTreeItem( clientFactory );
View Full Code Here

    @Test
    public void testSetRootItem() throws Exception {
        treeItem = mock( IsTreeItem.class );
        view = mock( ModuleTreeItemView.class );
        ClientFactory clientFactory = mock( ClientFactory.class );

        AssetEditorFactory assetEditorFactory = mock( AssetEditorFactory.class );
        when(
                clientFactory.getAssetEditorFactory()
        ).thenReturn(
                assetEditorFactory
        );
       
        PerspectiveFactory perspectiveFactory = mock( PerspectiveFactory.class );
        when(
                perspectiveFactory.getRegisteredAssetEditorFormats("package")
        ).thenReturn(
                new String[0]
        );

        NavigationViewFactory navigationViewFactory = mock( NavigationViewFactory.class );
        when(
                clientFactory.getNavigationViewFactory()
        ).thenReturn(
                navigationViewFactory
        );
        when(
                navigationViewFactory.getModuleTreeItemView()
View Full Code Here

    private PlaceController placeController;

    @Before
    public void setUp() {
        summaryTableView = mock(SummaryTableView.class);
        ClientFactory clientFactory = mock(ClientFactory.class);
        placeController = mock(PlaceController.class);
        when(
                clientFactory.getPlaceController()
        ).thenReturn(
                placeController
        );

        summaryTable = new SummaryTable(
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.explorer.ClientFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.