From ae9e3591def68ef1a4cea89c4c3cce75620670b8 Mon Sep 17 00:00:00 2001 From: Kris De Volder Date: Tue, 20 Dec 2016 17:01:21 -0800 Subject: [PATCH] Fix some failing tests. Cause: Expected error messages have changed --- .../vscode/manifest/yaml/ManifestYamlEditorTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vscode-extensions/vscode-manifest-yaml/src/test/java/org/springframework/ide/vscode/manifest/yaml/ManifestYamlEditorTest.java b/vscode-extensions/vscode-manifest-yaml/src/test/java/org/springframework/ide/vscode/manifest/yaml/ManifestYamlEditorTest.java index 9491a37c1..928a04895 100644 --- a/vscode-extensions/vscode-manifest-yaml/src/test/java/org/springframework/ide/vscode/manifest/yaml/ManifestYamlEditorTest.java +++ b/vscode-extensions/vscode-manifest-yaml/src/test/java/org/springframework/ide/vscode/manifest/yaml/ManifestYamlEditorTest.java @@ -149,10 +149,10 @@ public class ManifestYamlEditorTest { " health-check-type: unhealthy" ); editor.assertProblems( - "not a number|Positive Integer", + "not a number|NumberFormatException", "notBool|boolean", - "1024|Memory", - "2048|Memory", + "1024|doesn't end with a valid unit of memory", + "2048|doesn't end with a valid unit of memory", "unhealthy|Health Check Type" ); @@ -165,9 +165,9 @@ public class ManifestYamlEditorTest { " disk_quota: -2048M\n" ); editor.assertProblems( - "-3|Positive Integer", - "-1024M|Memory", - "-2048M|Memory" + "-3|Value must be at least 1", + "-1024M|Negative value is not allowed", + "-2048M|Negative value is not allowed" ); //check that correct values are indeed accepted