https://github.com/dvsa/vol-uri-constructor
https://github.com/dvsa/vol-uri-constructor
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dvsa/vol-uri-constructor
- Owner: dvsa
- License: other
- Created: 2018-06-15T00:13:23.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2025-08-05T09:16:34.000Z (10 months ago)
- Last Synced: 2025-08-15T11:42:26.789Z (10 months ago)
- Language: Java
- Size: 203 KB
- Stars: 2
- Watchers: 11
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## URL Constructor
This library handles creating environment specific URLs. It is intended to be used for test automation for initial page load.
## Code Example
How to construct a URL for the external web-app on production environment
```
org.dvsa.testing.lib.url.webapp.webAppURL.build(ApplicationType.INTERNAL, Environment.PRODUCTION)
```
Note that there are overloaded versions that accept a string as an argument for specifying which environment, meaning that the above example can be written as:
```
org.dvsa.testing.lib.url.webapp.webAppURL.build(ApplicationType.INTERNAL, "prod")
```
The above code snippet will return the string "https://www.vehicle-operator-licensing.service.gov.uk/"
## Installation.
Add the following Maven dependency to your project's `pom.xml` file:
```xml
org.dvsa.testing.lib
vol-uri-constructor
[LATEST VERSION HERE]