Code format hawkbit (#1948)
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -16,7 +16,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
/**
|
||||
* A {@link SpringBootApplication} annotated class with a main method to start.
|
||||
* The minimal configuration for the stand alone hawkBit server.
|
||||
*
|
||||
*/
|
||||
@SpringBootApplication
|
||||
@EnableHawkbitManagedSecurityConfiguration
|
||||
@@ -27,8 +26,7 @@ public class Start {
|
||||
/**
|
||||
* Main method to start the spring-boot application.
|
||||
*
|
||||
* @param args
|
||||
* the VM arguments.
|
||||
* @param args the VM arguments.
|
||||
*/
|
||||
// Exception squid:S2095 - Spring boot standard behavior
|
||||
@SuppressWarnings({ "squid:S2095" })
|
||||
|
||||
@@ -34,8 +34,9 @@ import java.util.List;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
@ExtendWith({SharedSqlTestDatabaseExtension.class})
|
||||
@ExtendWith({ SharedSqlTestDatabaseExtension.class })
|
||||
class RestApiDocTest {
|
||||
|
||||
private static final String MANAGEMENT_PREFIX = "mgmt";
|
||||
private static final String DDI_PREFIX = "ddi";
|
||||
private static final String TARGET_DIRECTORY = "content/rest-api/";
|
||||
@@ -87,6 +88,7 @@ class RestApiDocTest {
|
||||
|
||||
((ObjectNode) rootNode).set("tags", modifiedTagsNode);
|
||||
}
|
||||
|
||||
private static void removePaths(final JsonNode rootNode, final boolean isMgmt) {
|
||||
final ObjectNode pathsNode = (ObjectNode) rootNode.get("paths");
|
||||
final List<String> fieldsToRemove = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user