Search in sources :

Example 31 with WorkspaceProjectContextChangeEvent

use of org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent in project kie-wb-common by kiegroup.

the class LibraryPlacesTest method placesAreUpdatedWhenActiveModuleIsRenamedTest.

@Test
public void placesAreUpdatedWhenActiveModuleIsRenamedTest() {
    libraryPlaces.onChange(new WorkspaceProjectContextChangeEvent(mock(WorkspaceProject.class), activeModule), new WorkspaceProjectContextChangeEvent(mock(WorkspaceProject.class), mock(Module.class)));
    verify(breadcrumbs).clearBreadcrumbs(LibraryPlaces.LIBRARY_PERSPECTIVE);
    verify(libraryBreadcrumbs).setupForProject(any());
}
Also used : WorkspaceProjectContextChangeEvent(org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent) Test(org.junit.Test)

Aggregations

WorkspaceProjectContextChangeEvent (org.guvnor.common.services.project.context.WorkspaceProjectContextChangeEvent)31 WorkspaceProject (org.guvnor.common.services.project.model.WorkspaceProject)14 Test (org.junit.Test)14 OrganizationalUnit (org.guvnor.structure.organizationalunit.OrganizationalUnit)10 Path (org.uberfire.backend.vfs.Path)9 DefaultPlaceRequest (org.uberfire.mvp.impl.DefaultPlaceRequest)8 PathPlaceRequest (org.uberfire.mvp.impl.PathPlaceRequest)8 RemoteCallback (org.jboss.errai.common.client.api.RemoteCallback)7 Module (org.guvnor.common.services.project.model.Module)6 Branch (org.guvnor.structure.repositories.Branch)6 GitRepository (org.guvnor.structure.repositories.impl.git.GitRepository)6 ImportProject (org.kie.workbench.common.screens.examples.model.ImportProject)6 PlaceRequest (org.uberfire.mvp.PlaceRequest)6 PartDefinitionImpl (org.uberfire.workbench.model.impl.PartDefinitionImpl)6 Package (org.guvnor.common.services.project.model.Package)5 Repository (org.guvnor.structure.repositories.Repository)5 ExampleOrganizationalUnit (org.kie.workbench.common.screens.examples.model.ExampleOrganizationalUnit)5 List (java.util.List)4 POM (org.guvnor.common.services.project.model.POM)4 ObservablePath (org.uberfire.backend.vfs.ObservablePath)4