/**
 * Copyright (c) 2015 Bosch Software Innovations GmbH and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package org.eclipse.hawkbit.rest.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.test.web.servlet.MvcResult;
import org.springframework.test.web.servlet.ResultHandler;
import org.springframework.test.web.servlet.result.PrintingResultHandler;
import org.springframework.util.CollectionUtils;

public abstract class MockMvcResultPrinter {
    private static final Logger LOG = LoggerFactory.getLogger(MockMvcResultPrinter.class);

    private MockMvcResultPrinter() {
    }

    /**
     * Print {@link MvcResult} details to the "standard" output stream.
     */
    public static ResultHandler print() {
        return new ConsolePrintingResultHandler();
    }

    /**
     * An {@link PrintingResultHandler} that writes to the "standard" output
     * stream
     */
    private static class ConsolePrintingResultHandler extends PrintingResultHandler {

        public ConsolePrintingResultHandler() {
            super(new ResultValuePrinter() {

                @Override
                public void printHeading(final String heading) {
                    LOG.debug(String.format("%20s:", heading));
                }

                @Override
                public void printValue(final String label, final Object v) {
                    Object value = v;

                    if (value != null && value.getClass().isArray()) {
                        value = CollectionUtils.arrayToList(value);
                    }
                    LOG.debug(String.format("%20s = %s", label, value));
                }
            });
        }
    }
}

@@ -886,36 +886,14 @@
  to 
-the %22standard%22 output stream
+logger
 .%0A  
@@ -1065,43 +1065,14 @@
  to 
-the %22standard%22 output%0A     * stream
+logger
 %0A   

Fix javaDoc comment (#720)