Commit 9ec7ad37 by Dan Markwat

Cleaned up comments

parent cdb6c314
...@@ -12,6 +12,9 @@ import org.testng.annotations.Test; ...@@ -12,6 +12,9 @@ import org.testng.annotations.Test;
/** /**
* Unit test for Guice injector service loading * Unit test for Guice injector service loading
*
* Uses TestNG's Guice annotation to load the necessary modules and inject the
* objects from Guice
*/ */
@Guice(modules = RepositoryMetadataModule.class) @Guice(modules = RepositoryMetadataModule.class)
public class RepositoryServiceLoadingTest { public class RepositoryServiceLoadingTest {
...@@ -29,9 +32,6 @@ public class RepositoryServiceLoadingTest { ...@@ -29,9 +32,6 @@ public class RepositoryServiceLoadingTest {
@Test @Test
public void testGetGraphService() throws Exception { public void testGetGraphService() throws Exception {
/*
* Now that we've got the injector, we can build objects.
*/
Assert.assertNotNull(gs); Assert.assertNotNull(gs);
} }
} }
...@@ -35,6 +35,12 @@ import com.tinkerpop.blueprints.Direction; ...@@ -35,6 +35,12 @@ import com.tinkerpop.blueprints.Direction;
import com.tinkerpop.blueprints.Edge; import com.tinkerpop.blueprints.Edge;
import com.tinkerpop.blueprints.Vertex; import com.tinkerpop.blueprints.Vertex;
/**
* GraphBackedMetadataRepository test
*
* Guice loads the dependencies and injects the necessary objects
*
*/
@Test (enabled = false) @Test (enabled = false)
@Guice(modules = RepositoryMetadataModule.class) @Guice(modules = RepositoryMetadataModule.class)
public class GraphBackedMetadataRepositoryTest { public class GraphBackedMetadataRepositoryTest {
...@@ -52,8 +58,9 @@ public class GraphBackedMetadataRepositoryTest { ...@@ -52,8 +58,9 @@ public class GraphBackedMetadataRepositoryTest {
@BeforeClass @BeforeClass
public void setUp() throws Exception { public void setUp() throws Exception {
// start the injected graph service
titanGraphService.start(); titanGraphService.start();
// start the injected repository service
repositoryService.start(); repositoryService.start();
ts = TypeSystem.getInstance(); ts = TypeSystem.getInstance();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment