@Test public void testGetObjectdetails() throws NoSuchMethodException, SecurityException { ReturnTest testClass = new ReturnTest(); testClass.setName("testName"); testClass.setAge("testAget"); String result = sut.getObjectdetails(adhocQuery); assertNotNull(result); }
public String getObjectdetails(Object obj){ StringBuilder builder = new StringBuilder(); try { Map<String, String> properties = BeanUtils.describe(obj); for (Map.Entry<String, String> entry : properties.entrySet()) { if( null != entry.getValue() && entry.getValue().length() > 0) { String value = toString(entry.getValue()); builder.append( entry.getKey() + " : " + value + "\t"); } } } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) { e.printStackTrace(); } return builder.toString(); }
AspectUtils { public String getObjectdetails(Object obj){ StringBuilder builder = new StringBuilder(); try { Map<String, String> properties = BeanUtils.describe(obj); for (Map.Entry<String, String> entry : properties.entrySet()) { if( null != entry.getValue() && entry.getValue().length() > 0) { String value = toString(entry.getValue()); builder.append( entry.getKey() + " : " + value + "\t"); } } } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) { e.printStackTrace(); } return builder.toString(); } }
AspectUtils { public String getObjectdetails(Object obj){ StringBuilder builder = new StringBuilder(); try { Map<String, String> properties = BeanUtils.describe(obj); for (Map.Entry<String, String> entry : properties.entrySet()) { if( null != entry.getValue() && entry.getValue().length() > 0) { String value = toString(entry.getValue()); builder.append( entry.getKey() + " : " + value + "\t"); } } } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) { e.printStackTrace(); } return builder.toString(); } AspectUtils();  AspectUtils(SimpleMarshaller marshaller); }
AspectUtils { public String getObjectdetails(Object obj){ StringBuilder builder = new StringBuilder(); try { Map<String, String> properties = BeanUtils.describe(obj); for (Map.Entry<String, String> entry : properties.entrySet()) { if( null != entry.getValue() && entry.getValue().length() > 0) { String value = toString(entry.getValue()); builder.append( entry.getKey() + " : " + value + "\t"); } } } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) { e.printStackTrace(); } return builder.toString(); } AspectUtils();  AspectUtils(SimpleMarshaller marshaller); void beforeMethod(JoinPoint joinPoint); void afterMethod(JoinPoint joinPoint, Object result,
			long lengthMillis); StringBuilder logParamValues(StringBuilder logLine,
			String[] paramNames, Object[] paramValues); @SuppressWarnings("rawtypes") String toString(Object object); SimpleMarshaller getMarshaller(); void setMarshaller(SimpleMarshaller marshaller); String getObjectdetails(Object obj); String getInXMLFormat(Object object); }
AspectUtils { public String getObjectdetails(Object obj){ StringBuilder builder = new StringBuilder(); try { Map<String, String> properties = BeanUtils.describe(obj); for (Map.Entry<String, String> entry : properties.entrySet()) { if( null != entry.getValue() && entry.getValue().length() > 0) { String value = toString(entry.getValue()); builder.append( entry.getKey() + " : " + value + "\t"); } } } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) { e.printStackTrace(); } return builder.toString(); } AspectUtils();  AspectUtils(SimpleMarshaller marshaller); void beforeMethod(JoinPoint joinPoint); void afterMethod(JoinPoint joinPoint, Object result,
			long lengthMillis); StringBuilder logParamValues(StringBuilder logLine,
			String[] paramNames, Object[] paramValues); @SuppressWarnings("rawtypes") String toString(Object object); SimpleMarshaller getMarshaller(); void setMarshaller(SimpleMarshaller marshaller); String getObjectdetails(Object obj); String getInXMLFormat(Object object);  }