Skip to content

Commit

Permalink
fixes tests at graph
Browse files Browse the repository at this point in the history
  • Loading branch information
otaviojava committed Mar 5, 2019
1 parent a02ec09 commit 191ab63
Showing 1 changed file with 2 additions and 7 deletions.
Expand Up @@ -17,7 +17,6 @@
import org.jnosql.artemis.ConfigurationUnit;
import org.jnosql.artemis.graph.BookRepository;
import org.jnosql.artemis.graph.cdi.CDIExtension;
import org.jnosql.artemis.graph.model.Book;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

Expand All @@ -30,27 +29,23 @@
public class RepositoryExtensionTest {

@Inject
@ConfigurationUnit(database = "database", fileName = "graph.json", name = "name")
@ConfigurationUnit(database = "database", fileName = "graph.json", name = "graphA")
private BookRepository repositoryMock;


@Inject
@ConfigurationUnit(database = "database", fileName = "graph.json", name = "name", repository = GRAPH)
@ConfigurationUnit(database = "database", fileName = "graph.json", name = "graphA", repository = GRAPH)
private BookRepository repositoryMock2;

@Test
public void shouldUseUserRepository() {
assertNotNull(repositoryMock);
Book book = repositoryMock.save(Book.builder().withName("name").withAge(21).withId(12L).build());
assertNotNull(book);

}

@Test
public void shouldUseUserRepository2() {
assertNotNull(repositoryMock2);
Book book = repositoryMock2.save(Book.builder().withName("name").withAge(21).withId(12L).build());
assertNotNull(book);

}
}

0 comments on commit 191ab63

Please sign in to comment.