Skip to content

Commit 6e3f6ea

Browse files
committed
Update tests
1 parent 36ecc29 commit 6e3f6ea

File tree

7 files changed

+107
-322
lines changed

7 files changed

+107
-322
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void testEmptyParameters() {
186186
@DisplayName("generate filters for `null` column value")
187187
void testNullFilters() {
188188
EntityColumn column = mock(EntityColumn.class);
189-
when(column.storedName()).thenReturn(ID_STRING_COLUMN_NAME);
189+
when(column.name()).thenReturn(ID_STRING_COLUMN_NAME);
190190
when(column.type()).thenReturn(String.class);
191191
when(column.persistedType()).thenReturn(String.class);
192192
when(column.toPersistedValue(any())).thenReturn(null);

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class DsProjectionStorageTest extends ProjectionStorageTest {
4545

4646
@Override
4747
protected Class<? extends TestCounterEntity> getTestEntityClass() {
48-
return TestEntity.class;
48+
return TestCounterEntity.class;
4949
}
5050

5151
@Override
@@ -71,11 +71,4 @@ protected ProjectionStorage<ProjectId> newStorage(Class<? extends Entity<?, ?>>
7171
datastoreFactory.createProjectionStorage(singleTenantSpec(), projectionClass);
7272
return result;
7373
}
74-
75-
public static class TestEntity extends TestCounterEntity {
76-
77-
protected TestEntity(ProjectId id) {
78-
super(id);
79-
}
80-
}
8174
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
import io.spine.server.storage.datastore.given.CollegeEntity;
4747
import io.spine.server.storage.datastore.given.DsRecordStorageTestEnv;
4848
import io.spine.server.storage.datastore.given.DsRecordStorageTestEnv.EntityWithCustomColumnName;
49-
import io.spine.server.storage.datastore.given.DsRecordStorageTestEnv.TestEntity;
5049
import io.spine.server.storage.datastore.given.TestConstCounterEntity;
5150
import io.spine.server.storage.given.RecordStorageTestEnv.TestCounterEntity;
5251
import io.spine.test.datastore.College;
@@ -144,7 +143,7 @@ protected DsRecordStorage<ProjectId> newStorage(Class<? extends Entity<?, ?>> en
144143

145144
@Override
146145
protected Class<? extends TestCounterEntity> getTestEntityClass() {
147-
return TestEntity.class;
146+
return TestCounterEntity.class;
148147
}
149148

150149
@Override

datastore/src/test/java/io/spine/server/storage/datastore/given/DsRecordStorageTestEnv.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -426,13 +426,6 @@ public static EntityId newEntityId(Message message) {
426426
* Test Entity types
427427
************************/
428428

429-
public static class TestEntity extends RecordStorageTestEnv.TestCounterEntity {
430-
431-
protected TestEntity(ProjectId id) {
432-
super(id);
433-
}
434-
}
435-
436429
public static class EntityWithCustomColumnName extends AbstractEntity<ProjectId, Project> {
437430

438431
public EntityWithCustomColumnName(ProjectId id) {

license-report.md

Lines changed: 96 additions & 296 deletions
Large diffs are not rendered by default.

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,19 @@ all modules and does not describe the project structure per-subproject.
7070
<dependency>
7171
<groupId>org.junit.jupiter</groupId>
7272
<artifactId>junit-jupiter-api</artifactId>
73-
<version>5.5.0</version>
73+
<version>5.4.2</version>
7474
<scope>test</scope>
7575
</dependency>
7676
<dependency>
7777
<groupId>org.junit.jupiter</groupId>
7878
<artifactId>junit-jupiter-engine</artifactId>
79-
<version>5.5.0</version>
79+
<version>5.4.2</version>
8080
<scope>test</scope>
8181
</dependency>
8282
<dependency>
8383
<groupId>org.junit.jupiter</groupId>
8484
<artifactId>junit-jupiter-params</artifactId>
85-
<version>5.5.0</version>
85+
<version>5.4.2</version>
8686
<scope>test</scope>
8787
</dependency>
8888
<dependency>
@@ -110,12 +110,12 @@ all modules and does not describe the project structure per-subproject.
110110
<dependency>
111111
<groupId>com.google.protobuf</groupId>
112112
<artifactId>protoc</artifactId>
113-
<version>3.8.0</version>
113+
<version>3.9.0</version>
114114
</dependency>
115115
<dependency>
116116
<groupId>io.grpc</groupId>
117117
<artifactId>protoc-gen-grpc-java</artifactId>
118-
<version>1.21.0</version>
118+
<version>1.22.0</version>
119119
</dependency>
120120
<dependency>
121121
<groupId>io.spine.tools</groupId>
@@ -135,12 +135,12 @@ all modules and does not describe the project structure per-subproject.
135135
<dependency>
136136
<groupId>org.jacoco</groupId>
137137
<artifactId>org.jacoco.agent</artifactId>
138-
<version>0.8.3</version>
138+
<version>0.8.4</version>
139139
</dependency>
140140
<dependency>
141141
<groupId>org.jacoco</groupId>
142142
<artifactId>org.jacoco.ant</artifactId>
143-
<version>0.8.3</version>
143+
<version>0.8.4</version>
144144
</dependency>
145145
</dependencies>
146146
</project>

0 commit comments

Comments
 (0)