@Test public void testToString() { when(apiConfig.getRequestContextXPath()).thenReturn("/foo/bar"); String toString = xPathSet.toString(); assertThat( "Missing label for context XPath", toString, Matchers.containsString("contextXPath")); assertThat( "toString should contain all of the context XPath elements", toString, Matchers.stringContainsInOrder(Arrays.asList("foo", "bar"))); assertThat("Missing label for context name", toString, Matchers.containsString("contextName")); }
@Override public String toString() { return MoreObjects.toStringHelper(this) .add("contextName", contextName) .add("contextXPath", contextXPath) .toString(); }
RequestInfoXPathSet { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("contextName", contextName) .add("contextXPath", contextXPath) .toString(); } }
RequestInfoXPathSet { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("contextName", contextName) .add("contextXPath", contextXPath) .toString(); } @Inject  RequestInfoXPathSet(
      AdsApiConfiguration apiConfig,
      NodeExtractor nodeExtractor,
      Supplier<Transformer> transformerSupplier,
      @Named("libLogger") Logger libLogger); }
RequestInfoXPathSet { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("contextName", contextName) .add("contextXPath", contextXPath) .toString(); } @Inject  RequestInfoXPathSet(
      AdsApiConfiguration apiConfig,
      NodeExtractor nodeExtractor,
      Supplier<Transformer> transformerSupplier,
      @Named("libLogger") Logger libLogger); IterableXPath getContextXPath(); String getContextName(); @Override String toString(); RequestInfo.Builder parseMessage(RequestInfo.Builder builder, SOAPMessage soapMessage); }
RequestInfoXPathSet { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("contextName", contextName) .add("contextXPath", contextXPath) .toString(); } @Inject  RequestInfoXPathSet(
      AdsApiConfiguration apiConfig,
      NodeExtractor nodeExtractor,
      Supplier<Transformer> transformerSupplier,
      @Named("libLogger") Logger libLogger); IterableXPath getContextXPath(); String getContextName(); @Override String toString(); RequestInfo.Builder parseMessage(RequestInfo.Builder builder, SOAPMessage soapMessage);  }