|
39 | 39 | import io.spine.base.Time; |
40 | 40 | import io.spine.core.Version; |
41 | 41 | import io.spine.core.Versions; |
42 | | -import io.spine.protobuf.AnyPacker; |
43 | 42 | import io.spine.server.entity.EntityRecord; |
44 | 43 | import io.spine.server.entity.given.Given; |
45 | 44 | import io.spine.server.entity.storage.ColumnTypeMapping; |
|
55 | 54 |
|
56 | 55 | import static com.google.cloud.Timestamp.ofTimeSecondsAndNanos; |
57 | 56 | import static io.spine.base.Identifier.newUuid; |
| 57 | +import static io.spine.protobuf.AnyPacker.pack; |
58 | 58 |
|
59 | 59 | /** |
60 | 60 | * A test environment for {@link DsProjectionColumnsTest}. |
@@ -97,15 +97,15 @@ public static College newCollege(CollegeId id, Timestamp admissionDeadline) { |
97 | 97 | .setStateSponsored(false) |
98 | 98 | .setCreated(Time.currentTime()) |
99 | 99 | .addAllSubjects( |
100 | | - ImmutableList.of("English Literature", "Engineering", "Psychology")) |
| 100 | + ImmutableList.of("English Literature", "Engineering","Psychology")) |
101 | 101 | .vBuild(); |
102 | 102 | return college; |
103 | 103 | } |
104 | 104 |
|
105 | | - private static EntityRecord toEntityRecord(College collegeNoAdmission, Version version) { |
| 105 | + private static EntityRecord toEntityRecord(College college, Version version) { |
106 | 106 | EntityRecord recordNoAdmission = EntityRecord |
107 | 107 | .newBuilder() |
108 | | - .setState(AnyPacker.pack(collegeNoAdmission)) |
| 108 | + .setState(pack(college)) |
109 | 109 | .setVersion(version) |
110 | 110 | .vBuild(); |
111 | 111 | return recordNoAdmission; |
|
0 commit comments