Skip to content

Commit 6e75689

Browse files
Migrate to new ServerEnvironment API.
1 parent 6c6690c commit 6e75689

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

datastore/src/test/java/io/spine/server/storage/datastore/DsAggregateStorageTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ class DynamicSnapshotTrigger {
238238

239239
@BeforeEach
240240
void setUp() {
241-
ServerEnvironment.instance()
242-
.use(datastoreFactory, Tests.class);
241+
ServerEnvironment.when(Tests.class)
242+
.use(datastoreFactory);
243243
repository = new ProjectAggregateRepository();
244244
BoundedContext.singleTenant(DsAggregateStorageTest.class.getName())
245245
.add(repository)

datastore/src/test/java/io/spine/server/storage/datastore/DsAggregateStorageTruncationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
import org.junit.jupiter.api.DisplayName;
3030

3131
@DisplayName("`DsAggregateStorage` after truncation should")
32-
public class DsAggregateStorageTruncationTest extends AggregateStorageTruncationTest {
32+
class DsAggregateStorageTruncationTest extends AggregateStorageTruncationTest {
3333

3434
@BeforeAll
3535
static void prepareStorageFactory() {
36-
ServerEnvironment.instance()
37-
.use(TestDatastoreStorageFactory.local(), Tests.class);
36+
ServerEnvironment.when(Tests.class)
37+
.use(TestDatastoreStorageFactory.local());
3838
}
3939

4040
@AfterAll

datastore/src/test/java/io/spine/server/storage/datastore/DsCatchUpSmokeTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class DsCatchUpSmokeTest extends CatchUpTest {
4646
@BeforeEach
4747
public void setUp() {
4848
factory = TestDatastoreStorageFactory.local();
49-
ServerEnvironment.instance()
50-
.use(factory, Tests.class);
49+
ServerEnvironment.when(Tests.class)
50+
.use(factory);
5151
}
5252

5353
@Override

datastore/src/test/java/io/spine/server/storage/datastore/DsDeliverySmokeTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public class DsDeliverySmokeTest extends DeliveryTest {
4848
public void setUp() {
4949
super.setUp();
5050
factory = TestDatastoreStorageFactory.local();
51-
ServerEnvironment.instance()
52-
.use(factory, Tests.class);
51+
ServerEnvironment.when(Tests.class)
52+
.use(factory);
5353
}
5454

5555
@AfterEach

datastore/src/test/java/io/spine/server/storage/datastore/tenant/NamespaceIndexTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ void findPrefixedNamespaces() {
164164
.newBuilder()
165165
.setDatastore(datastore)
166166
.build();
167-
ServerEnvironment.instance()
168-
.use(storageFactory, Tests.class);
167+
ServerEnvironment.when(Tests.class)
168+
.use(storageFactory);
169169
storageFactory.configureTenantIndex(contextBuilder);
170170
BoundedContext context = contextBuilder.build();
171171
RecordStorage<String> storage = storageFactory

version.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
* `.config/gradle/dependencies.gradle`.
2626
*/
2727

28-
val spineBaseVersion: String by extra("1.6.11")
29-
val spineCoreVersion: String by extra("1.6.11")
30-
val versionToPublish: String by extra("1.6.11")
28+
val spineBaseVersion: String by extra("1.6.12")
29+
val spineCoreVersion: String by extra("1.6.13")
30+
val versionToPublish: String by extra("1.6.12")

0 commit comments

Comments
 (0)