Closed dilook closed 4 years ago
Is your feature request related to a problem? Please describe. I'd like to be able to set base part of url for easy testing with unirest
Describe the solution you'd like Add config to set base url part, smth like that:
@BeforeMethod void setUp() { Unirest.config().setDefaultBaseUrl("http://localhost/api/v1") } @Test void testForMethod1() { Unirest.get("method1").asString() ... } void testForMethod2() { Unirest.get("method2").asString() ... }
Describe alternatives you've considered Now I'm everytime write full path in each test:
@Test void testForMethod1() { Unirest.get("http://localhost/api/v1/method1").asString() ... } void testForMethod2() { Unirest.get("http://localhost/api/v1/method2").asString() ... }
this is complete in 4.7.00 https://github.com/Kong/unirest-java/blob/master/unirest/src/test/java/BehaviorTests/BaseUrlTest.java
Cool, thanks
Is your feature request related to a problem? Please describe. I'd like to be able to set base part of url for easy testing with unirest
Describe the solution you'd like Add config to set base url part, smth like that:
Describe alternatives you've considered Now I'm everytime write full path in each test: