Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dvsa/vol-uri-constructor
https://github.com/dvsa/vol-uri-constructor
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dvsa/vol-uri-constructor
- Owner: dvsa
- License: other
- Created: 2018-06-15T00:13:23.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-11-19T11:56:10.000Z (about 1 month ago)
- Last Synced: 2024-11-19T12:52:59.220Z (about 1 month ago)
- Language: Java
- Size: 138 KB
- Stars: 2
- Watchers: 12
- 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.URL.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.URL.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:
```xmlorg.dvsa.testing.lib
vol-uri-constructor
[LATEST VERSION HERE]