karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggrzy...@apache.org
Subject [karaf] 12/12: [KARAF-5376] Fix ListFeaturesCommandTest
Date Mon, 04 Dec 2017 10:12:46 GMT
This is an automated email from the ASF dual-hosted git repository.

ggrzybek pushed a commit to branch KARAF-5376-overrides_v2
in repository https://gitbox.apache.org/repos/asf/karaf.git

commit 0bfc07176e478afe9230f996e7c8583c8b4c36c3
Author: Grzegorz Grzybek <gr.grzybek@gmail.com>
AuthorDate: Sun Dec 3 16:24:32 2017 +0100

    [KARAF-5376] Fix ListFeaturesCommandTest
---
 .../java/org/apache/karaf/features/command/ListFeaturesCommandTest.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/features/command/src/test/java/org/apache/karaf/features/command/ListFeaturesCommandTest.java
b/features/command/src/test/java/org/apache/karaf/features/command/ListFeaturesCommandTest.java
index 18ca254..a56347c 100644
--- a/features/command/src/test/java/org/apache/karaf/features/command/ListFeaturesCommandTest.java
+++ b/features/command/src/test/java/org/apache/karaf/features/command/ListFeaturesCommandTest.java
@@ -41,6 +41,7 @@ public class ListFeaturesCommandTest {
         EasyMock.expect(service.listRepositories()).andReturn(new Repository[] { repo });
         EasyMock.expect(repo.getFeatures()).andReturn(new Feature[] { feature });
         EasyMock.expect(feature.isHidden()).andReturn(true);
+        EasyMock.expect(feature.isBlacklisted()).andReturn(false);
 
         EasyMock.replay(service, repo, feature);
 
@@ -69,6 +70,7 @@ public class ListFeaturesCommandTest {
         EasyMock.expect(service.listRepositories()).andReturn(new Repository[] { repo });
         EasyMock.expect(repo.getFeatures()).andReturn(new Feature[] { feature });
         EasyMock.expect(feature.isHidden()).andReturn(true).anyTimes();
+        EasyMock.expect(feature.isBlacklisted()).andReturn(false).anyTimes();
         EasyMock.expect(feature.getName()).andReturn("feature");
         EasyMock.expect(feature.getId()).andReturn("feature/1.0.0");
         EasyMock.expect(service.getState(EasyMock.eq("feature/1.0.0"))).andReturn(FeatureState.Started);

-- 
To stop receiving notification emails like this one, please contact
"commits@karaf.apache.org" <commits@karaf.apache.org>.

Mime
View raw message