You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2022/03/25 17:23:28 UTC
[maven-integration-testing] branch master updated: [MNG-828] fix date format in assertions
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git
The following commit(s) were added to refs/heads/master by this push:
new 6afb7e0 [MNG-828] fix date format in assertions
6afb7e0 is described below
commit 6afb7e0d4848e97937a2740e79a2c2e25b4ec9f9
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Fri Mar 25 18:11:00 2022 +0100
[MNG-828] fix date format in assertions
---
.../maven/it/MavenITmng0828PluginConfigValuesInDebugTest.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0828PluginConfigValuesInDebugTest.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0828PluginConfigValuesInDebugTest.java
index 7547121..a7b6c8e 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0828PluginConfigValuesInDebugTest.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng0828PluginConfigValuesInDebugTest.java
@@ -20,6 +20,8 @@ package org.apache.maven.it;
*/
import java.io.File;
+import java.text.SimpleDateFormat;
+import java.util.Date;
import org.apache.maven.it.util.ResourceExtractor;
import org.apache.maven.shared.utils.io.FileUtils;
@@ -68,7 +70,10 @@ public class MavenITmng0828PluginConfigValuesInDebugTest
checkLog( log, "(f) byteParam = 42" );
checkLog( log, "(f) byteParam = 42" );
checkLog( log, "(f) characterParam = X" );
- checkLog( log, "(f) dateParam = Sun Nov 09 11:59:03 CET 2008" );
+
+ Date date = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss.S a" ).parse( "2008-11-09 11:59:03.0 AM" );
+ checkLog( log, "(f) dateParam = " + date );
+
checkLog( log, "(f) defaultParam = maven-core-it" );
checkLog( log, "(f) defaultParamWithExpression = org.apache.maven.its.mng0828:test1:1.0-SNAPSHOT" );
checkLog( log, "(f) domParam = <domParam><echo>one</echo>" + NL