@Test public void shouldThrowExceptionWhenOrderingKeyIsConstructedFromNegativeNumber() throws Exception { expectedException.expect(IllegalArgumentException.class); expectedException.expectMessage("Priority level must be a positive integer number"); RedisBasedPersistenceServiceConstants.orderingKey(-1); fail(); }
public static final String orderingKey(final int priorityLevel) { Preconditions.checkArgument(priorityLevel > 0, "Priority level must be a positive integer number"); return orderingKeyPrefix() + priorityLevel; }
RedisBasedPersistenceServiceConstants { public static final String orderingKey(final int priorityLevel) { Preconditions.checkArgument(priorityLevel > 0, "Priority level must be a positive integer number"); return orderingKeyPrefix() + priorityLevel; } }
RedisBasedPersistenceServiceConstants { public static final String orderingKey(final int priorityLevel) { Preconditions.checkArgument(priorityLevel > 0, "Priority level must be a positive integer number"); return orderingKeyPrefix() + priorityLevel; }  }
RedisBasedPersistenceServiceConstants { public static final String orderingKey(final int priorityLevel) { Preconditions.checkArgument(priorityLevel > 0, "Priority level must be a positive integer number"); return orderingKeyPrefix() + priorityLevel; }  static final String orderingKey(final int priorityLevel); static final String orderingKeyPrefix(); }
RedisBasedPersistenceServiceConstants { public static final String orderingKey(final int priorityLevel) { Preconditions.checkArgument(priorityLevel > 0, "Priority level must be a positive integer number"); return orderingKeyPrefix() + priorityLevel; }  static final String orderingKey(final int priorityLevel); static final String orderingKeyPrefix(); static final String ORDERING_KEY_PREFIX; }