You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ma...@apache.org on 2021/10/14 01:10:53 UTC
[nifi] branch main updated: NIFI-9299 - junit test failure (#5455)
This is an automated email from the ASF dual-hosted git repository.
markap14 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 507a8f5 NIFI-9299 - junit test failure (#5455)
507a8f5 is described below
commit 507a8f5bc3ca8ad05b08c43c278ca407220a3cd6
Author: greyp9 <gr...@users.noreply.github.com>
AuthorDate: Wed Oct 13 21:10:19 2021 -0400
NIFI-9299 - junit test failure (#5455)
---
.../nifi/components/resource/TestStandardResourceReferenceFactory.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nifi-api/src/test/java/org/apache/nifi/components/resource/TestStandardResourceReferenceFactory.java b/nifi-api/src/test/java/org/apache/nifi/components/resource/TestStandardResourceReferenceFactory.java
index 35a274f..5a297d9 100644
--- a/nifi-api/src/test/java/org/apache/nifi/components/resource/TestStandardResourceReferenceFactory.java
+++ b/nifi-api/src/test/java/org/apache/nifi/components/resource/TestStandardResourceReferenceFactory.java
@@ -19,6 +19,7 @@ package org.apache.nifi.components.resource;
import org.junit.jupiter.api.Test;
+import java.io.File;
import java.util.Collections;
import java.util.List;
@@ -81,7 +82,7 @@ public class TestStandardResourceReferenceFactory {
}
private void assertResourceReference(ResourceReference resourceReference, String location) {
- assertEquals(location, resourceReference.getLocation());
+ assertEquals(new File(location).getAbsolutePath(), resourceReference.getLocation());
assertEquals(ResourceType.FILE, resourceReference.getResourceType());
}