You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by gg...@apache.org on 2017/12/05 21:58:09 UTC
[karaf] 12/13: [KARAF-5376] Fix ListFeaturesCommandTest
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 cf4199df02abaefaa64e107a2372fe10b9cff3ac
Author: Grzegorz Grzybek <gr...@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" <co...@karaf.apache.org>.