@Test public void getTagContentSingleLineSampleTag() throws Exception { when(elements.getDocComment(executableElement)) .thenReturn( "\n" + " Updates the given map of customer address attributes, for the given customer address\n" + " <p/>\n" + " {@sample.xml ../../../doc/magento-connector.xml.sample magento:updateCustomerAddress}\n" + " \n" + " @param addressId the customer address to update\n" + " @param attributes the address attributes to update"); JavaDocUtils javaDocUtils = new JavaDocUtils(elements); String sample = javaDocUtils.getTagContent("sample.xml", executableElement); assertEquals("../../../doc/magento-connector.xml.sample magento:updateCustomerAddress", sample); }