Skip to content

Commit 92d0c47

Browse files
author
TanyaEf
committed
Resolved issue #122 (refactoring in integration tests, new method in RestClientConfiguration)
1 parent cdbd6c9 commit 92d0c47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/jaspersoft/jasperserver/jaxrs/client/core/JasperserverRestClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public class JasperserverRestClient {
3636
private final RestClientConfiguration configuration;
3737

3838
public JasperserverRestClient(RestClientConfiguration configuration) {
39-
if (configuration == null) {
40-
throw new IllegalArgumentException("You must define the configuration");
39+
if (configuration == null || configuration.getJasperReportsServerUrl() == null) {
40+
throw new IllegalArgumentException("You must define the configuration (at least Jasperserver URL)");
4141
}
4242
this.configuration = configuration;
4343
}

0 commit comments

Comments
 (0)