(fix) Umbau zu SCS

This commit is contained in:
stefan
2025-07-21 12:10:55 +02:00
parent 62b5e71427
commit 77953c18f6
2 changed files with 3 additions and 28 deletions
+3 -3
View File
@@ -127,10 +127,10 @@ val data = call.safeReceive<Artikel>() ?: return
2. **Update Route Paths**: 2. **Update Route Paths**:
```kotlin ```kotlin
// Before // Before
route("/api/artikel") { ... } route("/api/artikel") { '...' }
// After // After
route("/artikel") { ... } // /api prefix handled by RouteConfiguration route("/artikel") { '...' } // /api prefix handled by RouteConfiguration
``` ```
3. **Use Response Utilities**: 3. **Use Response Utilities**:
@@ -145,7 +145,7 @@ val data = call.safeReceive<Artikel>() ?: return
4. **Use Route Utilities**: 4. **Use Route Utilities**:
```kotlin ```kotlin
// Before // Before
val id = call.parameters["id"] ?: return@get call.respond(...) val id = call.parameters["id"] ?: return@get call.respond('...')
val uuid = uuidFrom(id) val uuid = uuidFrom(id)
// After // After
-25
View File
@@ -47,13 +47,6 @@ When converting the standalone scripts to proper unit tests, the following guide
1. Create the target directory if it doesn't exist 1. Create the target directory if it doesn't exist
2. Create a new file AuthenticationTest.kt with the following structure: 2. Create a new file AuthenticationTest.kt with the following structure:
```kotlin ```kotlin
package at.mocode.members.test
import at.mocode.members.domain.service.UserAuthorizationService
import at.mocode.members.domain.service.JwtService
import at.mocode.members.domain.service.AuthenticationService
import at.mocode.members.infrastructure.repository.*
import kotlin.test.*
class AuthenticationTest { class AuthenticationTest {
private lateinit var userRepository: UserRepositoryImpl private lateinit var userRepository: UserRepositoryImpl
@@ -134,24 +127,6 @@ When converting the standalone scripts to proper unit tests, the following guide
1. Create the target directory if it doesn't exist 1. Create the target directory if it doesn't exist
2. Create a new file DatabaseIntegrationTest.kt with the following structure: 2. Create a new file DatabaseIntegrationTest.kt with the following structure:
```kotlin ```kotlin
package at.mocode.shared.database.test
import at.mocode.gateway.config.configureDatabase
import at.mocode.masterdata.domain.model.LandDefinition
import at.mocode.masterdata.infrastructure.repository.LandRepositoryImpl
import at.mocode.events.domain.model.Veranstaltung
import at.mocode.events.infrastructure.repository.VeranstaltungRepositoryImpl
import at.mocode.enums.SparteE
import com.benasher44.uuid.uuid4
import io.ktor.server.application.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*
import kotlinx.coroutines.runBlocking
import kotlinx.datetime.Clock
import kotlinx.datetime.LocalDate
import org.jetbrains.exposed.sql.transactions.transaction
import kotlin.test.*
class DatabaseIntegrationTest { class DatabaseIntegrationTest {
private lateinit var application: Application private lateinit var application: Application
private lateinit var landRepository: LandRepositoryImpl private lateinit var landRepository: LandRepositoryImpl