|
1 | 1 | /* |
2 | | - * Copyright 2017 ObjectBox Ltd. All rights reserved. |
| 2 | + * Copyright 2017-2024 ObjectBox Ltd. All rights reserved. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
16 | 16 |
|
17 | 17 | package io.objectbox; |
18 | 18 |
|
19 | | -import io.objectbox.annotation.IndexType; |
20 | 19 | import org.junit.Test; |
21 | 20 |
|
22 | 21 | import java.util.concurrent.CountDownLatch; |
23 | 22 | import java.util.concurrent.TimeUnit; |
24 | 23 |
|
25 | | -import static org.junit.Assert.*; |
| 24 | +import io.objectbox.annotation.IndexType; |
| 25 | + |
| 26 | + |
| 27 | +import static org.junit.Assert.assertEquals; |
| 28 | +import static org.junit.Assert.assertFalse; |
| 29 | +import static org.junit.Assert.assertNotNull; |
| 30 | +import static org.junit.Assert.assertNull; |
| 31 | +import static org.junit.Assert.assertThrows; |
| 32 | +import static org.junit.Assert.assertTrue; |
26 | 33 |
|
27 | 34 | public class CursorTest extends AbstractObjectBoxTest { |
28 | 35 |
|
@@ -60,7 +67,7 @@ public void testPutEntityWithInvalidId() { |
60 | 67 | IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, |
61 | 68 | () -> cursor.put(entity)); |
62 | 69 | assertEquals(ex.getMessage(), "ID is higher or equal to internal ID sequence: 777 (vs. 1)." + |
63 | | - " Use ID 0 (zero) to insert new entities."); |
| 70 | + " Use ID 0 (zero) to insert new objects."); |
64 | 71 | } finally { |
65 | 72 | // Always clean up, even if assertions fail, to avoid misleading clean-up errors. |
66 | 73 | cursor.close(); |
|
0 commit comments