Skip to content

Commit

Permalink
script for tagging persistence once more...
Browse files Browse the repository at this point in the history
  • Loading branch information
jactor-rises committed Mar 2, 2025
1 parent 21853d6 commit ac2b053
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tag-persistence.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
NEW_SEM_VER=$(.github/workflows/new-semver.main.kts majorMinor=${{ steps.version.outputs.toPatch }} \
currentSemVer=${{ steps.current.outputs.semver }})
echo "new semantic version: $NEW_SEM_VER"
echo "$NEW_SEM_VER" >> $GITHUB_OUTPUT
echo "newSemVer=$NEW_SEM_VER" >> $GITHUB_OUTPUT
- name: Fetch github event metadata
id: metadata
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.jactor.persistence.cucumber

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.HttpStatus
import assertk.assertThat
import assertk.assertions.contains
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.github.jactor.persistence.cucumber

import org.springframework.http.HttpStatusCode
import org.springframework.http.ResponseEntity
import org.springframework.stereotype.Component
import io.cucumber.spring.ScenarioScope
Expand All @@ -10,6 +11,6 @@ internal class ScenarioValues {
lateinit var responseEntity: ResponseEntity<String>
lateinit var restService: RestService

fun hentStatusKode() = responseEntity.statusCode
fun hentResponse() = responseEntity.body
fun hentStatusKode(): HttpStatusCode = responseEntity.statusCode
fun hentResponse(): String? = responseEntity.body
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ internal class GuestBookEntryRepositoryTest : AbstractSpringBootNoDirtyContextTe
assertThat(entriesByGuestBook).hasSize(1)
entriesByGuestBook.iterator().next().modify("Willie", "On the road again")

flush { guestBookEntryRepository.save<GuestBookEntryEntity>(entriesByGuestBook.iterator().next()) }
flush { guestBookEntryRepository.save(entriesByGuestBook.iterator().next()) }

val modifiedEntriesByGuestBook = guestBookEntryRepository.findByGuestBook(savedGuestBook)
assertThat(modifiedEntriesByGuestBook).hasSize(1)
Expand Down

0 comments on commit ac2b053

Please sign in to comment.