#BAEL-6916: change timestamp to date for test assertion

This commit is contained in:
hmdrzsharifi 2023-09-26 09:10:13 +03:30
parent 84efed044f
commit d05f27429a
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ public class FileProcessor implements Processor {
String originalFileName = (String) exchange.getIn().getHeader(Exchange.FILE_NAME, String.class);
Date date = new Date();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss");
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
String changedFileName = dateFormat.format(date) + originalFileName;
exchange.getIn().setHeader(Exchange.FILE_NAME, changedFileName);
}