Fix test condition

This commit is contained in:
Rossen Stoyanchev
2014-07-30 09:02:06 -04:00
parent 057efa0676
commit ba952ca331

View File

@@ -40,7 +40,7 @@ public class SockJsUrlInfoTests {
public void serverId() throws Exception {
SockJsUrlInfo info = new SockJsUrlInfo(new URI("http://example.com"));
int serverId = Integer.valueOf(info.getServerId());
assertTrue("Invalid serverId: " + serverId, serverId > 0 && serverId < 1000);
assertTrue("Invalid serverId: " + serverId, serverId >= 0 && serverId < 1000);
}
@Test