Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
9ec7ad37
Commit
9ec7ad37
authored
Jan 23, 2015
by
Dan Markwat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up comments
parent
cdb6c314
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
RepositoryServiceLoadingTest.java
.../apache/hadoop/metadata/RepositoryServiceLoadingTest.java
+4
-4
GraphBackedMetadataRepositoryTest.java
.../metadata/services/GraphBackedMetadataRepositoryTest.java
+8
-1
No files found.
repository/src/test/java/org/apache/hadoop/metadata/RepositoryServiceLoadingTest.java
View file @
9ec7ad37
...
@@ -12,10 +12,13 @@ import org.testng.annotations.Test;
...
@@ -12,10 +12,13 @@ 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
{
@Inject
@Inject
GraphService
gs
;
GraphService
gs
;
...
@@ -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
);
}
}
}
}
repository/src/test/java/org/apache/hadoop/metadata/services/GraphBackedMetadataRepositoryTest.java
View file @
9ec7ad37
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment