Skip to content

Commit

Permalink
Fix AtomJMSIT test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
osmandin authored and Andrew Woods committed Oct 24, 2013
1 parent a561e1f commit 69ffe69
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -127,17 +127,19 @@ public void testAtomStream() throws RepositoryException,
@Test
public void testAtomStreamNodePath() throws RepositoryException,
InterruptedException {
final int minEntriesSize = 2;
Session session = repository.login();
session.getRootNode().addNode("test1/sigma").addMixin(FEDORA_OBJECT);
session.save();

waitForEntry(1);
waitForEntry(minEntriesSize);
session.logout();

if (entries.isEmpty())
fail("Waited a second, got no messages");

String path = null;
assertEquals("Entries size not 2", entries.size(), 2);
for (Entry entry : entries) {
List<Category> categories = copyOf(entry.getCategories("xsd:string"));
String p = null;
Expand Down

0 comments on commit 69ffe69

Please sign in to comment.