You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2015/11/24 23:56:51 UTC

svn commit: r1716275 - /sling/trunk/contrib/nosql/mongodb-resourceprovider/src/test/java/org/apache/sling/nosql/mongodb/resourceprovider/integration/IndexCreationIT.java

Author: sseifert
Date: Tue Nov 24 22:56:51 2015
New Revision: 1716275

URL: http://svn.apache.org/viewvc?rev=1716275&view=rev
Log:
SLING-5078 some cosmetic changes
This closes #113

Modified:
    sling/trunk/contrib/nosql/mongodb-resourceprovider/src/test/java/org/apache/sling/nosql/mongodb/resourceprovider/integration/IndexCreationIT.java

Modified: sling/trunk/contrib/nosql/mongodb-resourceprovider/src/test/java/org/apache/sling/nosql/mongodb/resourceprovider/integration/IndexCreationIT.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/nosql/mongodb-resourceprovider/src/test/java/org/apache/sling/nosql/mongodb/resourceprovider/integration/IndexCreationIT.java?rev=1716275&r1=1716274&r2=1716275&view=diff
==============================================================================
--- sling/trunk/contrib/nosql/mongodb-resourceprovider/src/test/java/org/apache/sling/nosql/mongodb/resourceprovider/integration/IndexCreationIT.java (original)
+++ sling/trunk/contrib/nosql/mongodb-resourceprovider/src/test/java/org/apache/sling/nosql/mongodb/resourceprovider/integration/IndexCreationIT.java Tue Nov 24 22:56:51 2015
@@ -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;