Skip to content

Commit

Permalink
fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
clun committed Jan 2, 2016
1 parent a4d6189 commit b70005d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@

FF4J, standing as Feature Flipping for Java, implements the [Feature Toggle](http://martinfowler.com/bliki/FeatureToggle.html) agile development practice. It allows you to enable and disable features through configuration at runtime with dedicated consoles and services.

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.ff4j/ff4j-core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.ff4j/ff4j-core/) ![License Apache2](https://go-shields.herokuapp.com/license-apache2-blue.png)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.ff4j/ff4j-core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.ff4j/ff4j-core/)

[![Hex.pm](https://img.shields.io/hexpm/l/plug.svg)]()

[![Coverage Status](https://coveralls.io/repos/clun/ff4j/badge.svg?branch=master&service=github)](https://coveralls.io/github/clun/ff4j?branch=master)

[![Live Demo](https://img.shields.io/badge/demo-online-green.svg)](http://cannys.com/ff4j-demo/)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.ff4j.store.mongodb.FeatureDocumentBuilder;
import org.ff4j.store.mongodb.FeatureDocumentMapper;
import org.ff4j.store.mongodb.FeatureStoreMongoConstants;
import org.ff4j.utils.Util;

/**
* Implementation of {@link FeatureStore} to work with MongoDB.
Expand Down Expand Up @@ -100,6 +101,7 @@ private void updateStatus(String uid, boolean enable) {
/** {@inheritDoc} */
@Override
public boolean exist(String featId) {
Util.assertHasLength(featId);
return 1 == collection.count(BUILDER.getFeatUid(featId));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.ff4j.store.mongodb.FeatureDBObjectBuilder;
import org.ff4j.store.mongodb.FeatureDBObjectMapper;
import org.ff4j.store.mongodb.FeatureStoreMongoConstants;
import org.ff4j.utils.Util;

import com.mongodb.BasicDBObject;
import com.mongodb.BasicDBObjectBuilder;
Expand Down Expand Up @@ -103,6 +104,7 @@ private void updateStatus(String uid, boolean enable) {
/** {@inheritDoc} */
@Override
public boolean exist(String featId) {
Util.assertHasLength(featId);
return 1 == collection.count(BUILDER.getFeatUid(featId));
}

Expand Down

0 comments on commit b70005d

Please sign in to comment.