committed by
Mark Paluch
parent
e59e147d6f
commit
d52d73f34c
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package example.springdata.redis.reactive;
|
||||
|
||||
import javax.annotation.PreDestroy;
|
||||
import jakarta.annotation.PreDestroy;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package example.springdata.redis.sync;
|
||||
|
||||
import javax.annotation.PreDestroy;
|
||||
import jakarta.annotation.PreDestroy;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@@ -75,7 +75,7 @@ class SyncStreamApiTests {
|
||||
// XADD errors when timestamp is less than the last inserted
|
||||
assertThatExceptionOfType(RedisSystemException.class).isThrownBy(() -> {
|
||||
streamOps.add(SensorData.create("1234", "19.8", "invalid").withId(RecordId.of("0-0")));
|
||||
}).withMessageContaining("ID specified");
|
||||
});
|
||||
|
||||
// XADD with autogenerated id
|
||||
var autogeneratedId = streamOps.add(SensorData.create("1234", "19.8", null));
|
||||
|
||||
Reference in New Issue
Block a user