Skip to content

Commit

Permalink
Remove unnecessary FedoraRepositoryImportTest and just rely on the Fe…
Browse files Browse the repository at this point in the history
…doraImportTest instead
  • Loading branch information
cbeer committed Jun 27, 2013
1 parent 8f432df commit b7ab7b0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 71 deletions.
16 changes: 16 additions & 0 deletions fcrepo-http-api/src/test/java/org/fcrepo/api/FedoraImportTest.java
Expand Up @@ -74,4 +74,20 @@ public void testImportObject() throws Exception {
mockInputStream);

}

@Test
public void testImportObjectAtRoot() throws Exception {
final InputStream mockInputStream = mock(InputStream.class);
final FedoraObjectSerializer mockSerializer =
mock(FedoraObjectSerializer.class);
when(mockSerializers.getSerializer("fake-format")).thenReturn(mockSerializer);

Node mockNode = mock(Node.class);
when(mockNode.getPath()).thenReturn("/");
when(mockSession.getNode("/")).thenReturn(mockNode);

testObj.importObject(createPathList(), "fake-format", mockInputStream);
verify(mockSerializer).deserialize(mockSession, "/", mockInputStream);

}
}

This file was deleted.

0 comments on commit b7ab7b0

Please sign in to comment.