@Component @Profile(value="unitTest") public class MockURIBuilder extends java.lang.Object implements URIBuilder
| Constructor and Description |
|---|
MockURIBuilder() |
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
build(java.lang.Object invocationInfo) |
java.net.URI |
getEntityPage(net.nemerosa.ontrack.model.structure.ProjectEntity entity)
Returns the page URI for an entity
|
java.net.URI |
getEntityURI(net.nemerosa.ontrack.model.structure.ProjectEntity entity)
Returns the access URI for an entity
|
java.net.URI |
page(java.lang.String path,
java.lang.Object... arguments)
Builds the URI to a page.
|
java.net.URI |
url(java.lang.String relativeUri)
Builds an absolute URL from a relative URI.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveActionWithExtensionpublic java.net.URI build(java.lang.Object invocationInfo)
build in interface URIBuilderpublic java.net.URI url(java.lang.String relativeUri)
URIBuilderurl in interface URIBuilderrelativeUri - Relative URIpublic java.net.URI page(java.lang.String path,
java.lang.Object... arguments)
URIBuilderpage in interface URIBuilderpath - Path to the page, as a patternarguments - Arguments for the path patternpublic java.net.URI getEntityURI(net.nemerosa.ontrack.model.structure.ProjectEntity entity)
URIBuildergetEntityURI in interface URIBuilderpublic java.net.URI getEntityPage(net.nemerosa.ontrack.model.structure.ProjectEntity entity)
URIBuildergetEntityPage in interface URIBuilder