This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-nosql-mongodb-resourceprovider.git
commit a090df7dfe695eae2e0d39ce699c964d615a2a43 Author: Stefan Seifert <[email protected]> AuthorDate: Tue Nov 24 22:56:51 2015 +0000 SLING-5078 some cosmetic changes This closes #113 git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1716275 13f79535-47bb-0310-9956-ffa450edef68 --- .../resourceprovider/integration/IndexCreationIT.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/apache/sling/nosql/mongodb/resourceprovider/integration/IndexCreationIT.java b/src/test/java/org/apache/sling/nosql/mongodb/resourceprovider/integration/IndexCreationIT.java index 3ec88fe..a159514 100644 --- a/src/test/java/org/apache/sling/nosql/mongodb/resourceprovider/integration/IndexCreationIT.java +++ b/src/test/java/org/apache/sling/nosql/mongodb/resourceprovider/integration/IndexCreationIT.java @@ -30,32 +30,35 @@ import org.junit.Test; import com.mongodb.MongoClient; +/** + * Test creation of indexes in MongoDB + */ public class IndexCreationIT { - private MongoDBNoSqlAdapter obj; + private MongoDBNoSqlAdapter underTest; private MongoClient mongoClient; private String database; private String collection; @Before - public void setUp() throws Exception { + public void setUp() { String connectionString = System.getProperty("connectionString", "localhost:27017"); database = System.getProperty("database", "sling") + "_indextest"; collection = System.getProperty("collection", "resources"); mongoClient = new MongoClient(connectionString); - obj = new MongoDBNoSqlAdapter(mongoClient, database, collection); + underTest = new MongoDBNoSqlAdapter(mongoClient, database, collection); } @After - public void tearDown() throws Exception { + public void tearDown() { mongoClient.dropDatabase(database); mongoClient.close(); } @Test public void testIndexesPresent() { - assertNotNull(obj); + assertNotNull(underTest); //expecting at least 3 indexes (_id, _path, _parentPath) int expected = 3; -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
