Skip to content

Commit

Permalink
dan 4 coming before dan 5
Browse files Browse the repository at this point in the history
  • Loading branch information
karesti committed Dec 20, 2018
1 parent 298ccad commit c130dfe
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,7 +1,6 @@
package org.infinispan.spring.common.session.util;

import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNotNull;

import java.util.List;
import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -54,9 +53,10 @@ public static void assertSessionContent(Supplier<Stream<ApplicationEvent>> event
.filter(e -> e.getSessionId().equals(sessionId))
.map(e -> (Session) e.getSession())
.collect(Collectors.toList());
if (sessions.size() > 0) {
break;
}
}

assertNotNull(sessions);
assertEquals(1, sessions.size());
assertEquals(attValue, sessions.get(0).getAttribute(attName));
}
Expand Down

0 comments on commit c130dfe

Please sign in to comment.