assert not null.
Project: http://git-wip-us.apache.org/repos/asf/oodt/repo Commit: http://git-wip-us.apache.org/repos/asf/oodt/commit/e481b0b5 Tree: http://git-wip-us.apache.org/repos/asf/oodt/tree/e481b0b5 Diff: http://git-wip-us.apache.org/repos/asf/oodt/diff/e481b0b5 Branch: refs/heads/feature/zookeeper-config Commit: e481b0b5d9cb9d1181ccea23df0cdca8a18e716d Parents: b66a68d Author: Chris Mattmann <[email protected]> Authored: Fri Jul 14 11:45:01 2017 -0700 Committer: Chris Mattmann <[email protected]> Committed: Fri Jul 14 11:45:01 2017 -0700 ---------------------------------------------------------------------- .../config/distributed/DistributedConfigurationManagerTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/oodt/blob/e481b0b5/config/src/test/java/org/apache/oodt/config/distributed/DistributedConfigurationManagerTest.java ---------------------------------------------------------------------- diff --git a/config/src/test/java/org/apache/oodt/config/distributed/DistributedConfigurationManagerTest.java b/config/src/test/java/org/apache/oodt/config/distributed/DistributedConfigurationManagerTest.java index e531caf..975a062 100644 --- a/config/src/test/java/org/apache/oodt/config/distributed/DistributedConfigurationManagerTest.java +++ b/config/src/test/java/org/apache/oodt/config/distributed/DistributedConfigurationManagerTest.java @@ -26,6 +26,7 @@ import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.fail; +import static org.junit.Assert.assertNotNull; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; @@ -96,7 +97,7 @@ public class DistributedConfigurationManagerTest extends AbstractDistributedConf String fileName = FilePathUtils.fixForComponentHome(publisher.getComponent(), entry.getValue()); fileName = fileName.startsWith(SEPARATOR) ? fileName.substring(1) : fileName; File downloadedFile = new File(fileName); - Assert.notNull(downloadedFile); + Assert.assertNotNull(downloadedFile); Assert.assertTrue(downloadedFile.exists()); }
