Skip to content

Commit 859b068

Browse files
authored
Merge pull request #221 from scottkurz/clarify-application-path
Clarify base application path in Rest Client injection log msgs
2 parents 1a11580 + d440ea1 commit 859b068

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

core/src/main/java/org/microshed/testing/jaxrs/RestClientBuilder.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ private static String locateApplicationPath(Class<?> clazz) {
181181
}
182182

183183
if (appClasses.size() == 0) {
184-
LOG.info("No classes implementing 'javax.ws.rs.core.Application' found on classpath to set as context root for " + clazz +
185-
". Defaulting context root to '/'");
184+
LOG.info("No classes implementing 'javax.ws.rs.core.Application' found on classpath to set base path from " + clazz +
185+
". Defaulting base path to '/'");
186186
return "";
187187
}
188188

@@ -193,10 +193,10 @@ private static String locateApplicationPath(Class<?> clazz) {
193193
ApplicationPath appPath = AnnotationSupport.findAnnotation(selectedClass, ApplicationPath.class).get();
194194
if (appClasses.size() > 1) {
195195
LOG.warn("Found multiple classes implementing 'javax.ws.rs.core.Application' on classpath: " + appClasses +
196-
". Setting context root to the first class discovered (" + selectedClass.getCanonicalName() + ") with path: " +
196+
". Setting base path from the first class discovered (" + selectedClass.getCanonicalName() + ") with path: " +
197197
appPath.value());
198198
}
199-
LOG.debug("Using ApplicationPath of '" + appPath.value() + "'");
199+
LOG.debug("Using base ApplicationPath of '" + appPath.value() + "'");
200200
return appPath.value();
201201
}
202202

0 commit comments

Comments
 (0)