public class MockApplicationManager extends Object implements com.atlassian.application.api.ApplicationManager
Constructor and Description |
---|
MockApplicationManager() |
Modifier and Type | Method and Description |
---|---|
MockApplication |
addApplication(com.atlassian.application.api.ApplicationKey key) |
io.atlassian.fugue.Option<com.atlassian.application.api.ApplicationAccess> |
getAccess(com.atlassian.application.api.ApplicationKey key) |
io.atlassian.fugue.Option<com.atlassian.application.api.Application> |
getApplication(com.atlassian.application.api.ApplicationKey key) |
<A extends com.atlassian.application.api.Application> |
getApplication(com.atlassian.application.api.ApplicationKey key,
Class<A> type) |
Iterable<com.atlassian.application.api.Application> |
getApplications() |
com.atlassian.application.api.PlatformApplication |
getPlatform() |
void |
removeApplication(com.atlassian.application.api.ApplicationKey key)
Remove the
MockApplication identified by the specified application key. |
public com.atlassian.application.api.PlatformApplication getPlatform()
getPlatform
in interface com.atlassian.application.api.ApplicationManager
public Iterable<com.atlassian.application.api.Application> getApplications()
getApplications
in interface com.atlassian.application.api.ApplicationManager
public io.atlassian.fugue.Option<com.atlassian.application.api.Application> getApplication(com.atlassian.application.api.ApplicationKey key)
getApplication
in interface com.atlassian.application.api.ApplicationManager
public <A extends com.atlassian.application.api.Application> io.atlassian.fugue.Option<A> getApplication(com.atlassian.application.api.ApplicationKey key, Class<A> type)
getApplication
in interface com.atlassian.application.api.ApplicationManager
public io.atlassian.fugue.Option<com.atlassian.application.api.ApplicationAccess> getAccess(com.atlassian.application.api.ApplicationKey key)
getAccess
in interface com.atlassian.application.api.ApplicationManager
public MockApplication addApplication(com.atlassian.application.api.ApplicationKey key)
public void removeApplication(com.atlassian.application.api.ApplicationKey key)
MockApplication
identified by the specified application key.key
- key used to identify the MockApplication
.Copyright © 2002-2019 Atlassian. All Rights Reserved.