From 358a0c7b3acf21473a7086f1ac0b51e85050c630 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Sun, 5 May 2024 19:21:08 +0200 Subject: [PATCH] formatting --- ...ingAssetPropsControllerAcceptanceTest.java | 228 +++++++++--------- 1 file changed, 114 insertions(+), 114 deletions(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/hosting/asset/HsHostingAssetPropsControllerAcceptanceTest.java b/src/test/java/net/hostsharing/hsadminng/hs/hosting/asset/HsHostingAssetPropsControllerAcceptanceTest.java index 92f7e2b8..58c7bf91 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/hosting/asset/HsHostingAssetPropsControllerAcceptanceTest.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/hosting/asset/HsHostingAssetPropsControllerAcceptanceTest.java @@ -23,19 +23,19 @@ class HsHostingAssetPropsControllerAcceptanceTest { RestAssured // @formatter:off .given() - .port(port) + .port(port) .when() - .get("http://localhost/api/hs/hosting/asset-types") + .get("http://localhost/api/hs/hosting/asset-types") .then().log().all().assertThat() - .statusCode(200) - .contentType("application/json") - .body("", lenientlyEquals(""" - [ - "MANAGED_SERVER", - "MANAGED_WEBSPACE", - "CLOUD_SERVER" - ] - """)); + .statusCode(200) + .contentType("application/json") + .body("", lenientlyEquals(""" + [ + "MANAGED_SERVER", + "MANAGED_WEBSPACE", + "CLOUD_SERVER" + ] + """)); // @formatter:on } @@ -44,112 +44,112 @@ class HsHostingAssetPropsControllerAcceptanceTest { RestAssured // @formatter:off .given() - .port(port) + .port(port) .when() - .get("http://localhost/api/hs/hosting/asset-types/" + HsHostingAssetType.MANAGED_SERVER) + .get("http://localhost/api/hs/hosting/asset-types/" + HsHostingAssetType.MANAGED_SERVER) .then().log().all().assertThat() - .statusCode(200) - .contentType("application/json") - .body("", lenientlyEquals(""" - [ - { - "type": "integer", - "propertyName": "CPUs", - "required": true, - "unit": null, - "min": 1, - "max": 32, - "step": null - }, - { - "type": "integer", - "propertyName": "RAM", - "required": true, - "unit": "GB", - "min": 1, - "max": 128, - "step": null - }, - { - "type": "integer", - "propertyName": "SSD", - "required": true, - "unit": "GB", - "min": 25, - "max": 1000, - "step": 25 - }, - { - "type": "integer", - "propertyName": "HDD", - "required": false, - "unit": "GB", - "min": 0, - "max": 4000, - "step": 250 - }, - { - "type": "integer", - "propertyName": "Traffic", - "required": true, - "unit": "GB", - "min": 250, - "max": 10000, - "step": 250 - }, - { - "type": "enumeration", - "propertyName": "SLA-Platform", - "required": false, - "values": [ - "BASIC", - "EXT8H", - "EXT4H", - "EXT2H" - ] - }, - { - "type": "boolean", - "propertyName": "SLA-EMail", - "required": false, - "falseIf": { - "SLA-Platform": "BASIC" - } - }, - { - "type": "boolean", - "propertyName": "SLA-Maria", - "required": false, - "falseIf": { - "SLA-Platform": "BASIC" - } - }, - { - "type": "boolean", - "propertyName": "SLA-PgSQL", - "required": false, - "falseIf": { - "SLA-Platform": "BASIC" - } - }, - { - "type": "boolean", - "propertyName": "SLA-Office", - "required": false, - "falseIf": { - "SLA-Platform": "BASIC" - } - }, - { - "type": "boolean", - "propertyName": "SLA-Web", - "required": false, - "falseIf": { - "SLA-Platform": "BASIC" + .statusCode(200) + .contentType("application/json") + .body("", lenientlyEquals(""" + [ + { + "type": "integer", + "propertyName": "CPUs", + "required": true, + "unit": null, + "min": 1, + "max": 32, + "step": null + }, + { + "type": "integer", + "propertyName": "RAM", + "required": true, + "unit": "GB", + "min": 1, + "max": 128, + "step": null + }, + { + "type": "integer", + "propertyName": "SSD", + "required": true, + "unit": "GB", + "min": 25, + "max": 1000, + "step": 25 + }, + { + "type": "integer", + "propertyName": "HDD", + "required": false, + "unit": "GB", + "min": 0, + "max": 4000, + "step": 250 + }, + { + "type": "integer", + "propertyName": "Traffic", + "required": true, + "unit": "GB", + "min": 250, + "max": 10000, + "step": 250 + }, + { + "type": "enumeration", + "propertyName": "SLA-Platform", + "required": false, + "values": [ + "BASIC", + "EXT8H", + "EXT4H", + "EXT2H" + ] + }, + { + "type": "boolean", + "propertyName": "SLA-EMail", + "required": false, + "falseIf": { + "SLA-Platform": "BASIC" + } + }, + { + "type": "boolean", + "propertyName": "SLA-Maria", + "required": false, + "falseIf": { + "SLA-Platform": "BASIC" + } + }, + { + "type": "boolean", + "propertyName": "SLA-PgSQL", + "required": false, + "falseIf": { + "SLA-Platform": "BASIC" + } + }, + { + "type": "boolean", + "propertyName": "SLA-Office", + "required": false, + "falseIf": { + "SLA-Platform": "BASIC" + } + }, + { + "type": "boolean", + "propertyName": "SLA-Web", + "required": false, + "falseIf": { + "SLA-Platform": "BASIC" + } } - } - ] - """)); + ] + """)); // @formatter:on }