Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
BalduinLandolt committed Jun 12, 2024
1 parent 89b6e76 commit e09edad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import org.knora.webapi.*
import org.knora.webapi.config.AppConfig
import org.knora.webapi.core.MessageRelay
import org.knora.webapi.messages.*
import org.knora.webapi.messages.IriConversions.*
import org.knora.webapi.messages.admin.responder.permissionsmessages.DefaultObjectAccessPermissionsStringForResourceClassGetADM
import org.knora.webapi.messages.admin.responder.permissionsmessages.DefaultObjectAccessPermissionsStringResponseADM
import org.knora.webapi.messages.admin.responder.permissionsmessages.PermissionADM
import org.knora.webapi.messages.admin.responder.permissionsmessages.PermissionType
import org.knora.webapi.messages.admin.responder.permissionsmessages.ResourceCreateOperation
import org.knora.webapi.messages.twirl.NewLinkValueInfo
import org.knora.webapi.messages.twirl.NewValueInfo
import org.knora.webapi.messages.twirl.TypeSpecificValueInfo.*
import org.knora.webapi.messages.util.*
import org.knora.webapi.messages.util.PermissionUtilADM.AGreaterThanB
import org.knora.webapi.messages.util.PermissionUtilADM.PermissionComparisonResult
Expand Down Expand Up @@ -52,7 +52,6 @@ import org.knora.webapi.slice.ontology.domain.service.OntologyServiceLive
import org.knora.webapi.slice.resources.repo.service.ResourceReadyToCreate
import org.knora.webapi.slice.resources.repo.service.ResourcesRepo
import org.knora.webapi.util.ZioHelper
import org.knora.webapi.messages.twirl.TypeSpecificValueInfo.*

final case class CreateResourceV2Handler(
appConfig: AppConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import java.time.Instant
import java.util.UUID

import dsp.valueobjects.UuidUtil
import org.knora.webapi.ApiV2Complex
import org.knora.webapi.messages.OntologyConstants
import org.knora.webapi.messages.StringFormatter
import org.knora.webapi.messages.twirl.NewLinkValueInfo
import org.knora.webapi.messages.twirl.NewValueInfo
import org.knora.webapi.messages.v2.responder.valuemessages.IntegerValueContentV2
import org.knora.webapi.messages.twirl.TypeSpecificValueInfo
import org.knora.webapi.slice.resourceinfo.domain.InternalIri
import org.knora.webapi.store.triplestore.api.TriplestoreService.Queries.Update

Expand Down Expand Up @@ -109,13 +109,16 @@ object ResourcesRepoLiveSpec extends ZIOSpecDefault {
NewValueInfo(
resourceIri = resourceIri,
propertyIri = "fooProperty",
value = IntegerValueContentV2(ApiV2Complex, 42),
valueIri = valueIri,
valueTypeIri = OntologyConstants.KnoraBase.IntValue,
valueUUID = uuid,
valueCreator = valueCreator,
value = TypeSpecificValueInfo.IntegerValueInfo(42),
valuePermissions = valuePermissions,
valueCreator = valueCreator,
creationDate = valueCreationDate,
valueHasOrder = 1,
valueHasString = "42",
comment = None,
),
),
linkUpdates = Seq.empty,
Expand Down

0 comments on commit e09edad

Please sign in to comment.