Skip to content

Suggestions on using fixtures for ktorm database objects #76

@sean-abbott

Description

@sean-abbott

I realize that this is a bit of a long shot question, because it's not directly related to this code.

I'm trying to figure out how I can use these fixtures to test ktorm (https://github.com/kotlin-orm/ktorm). The ktorm objects are fairly complex, consisting of a singleton object that connects to the database, fronted by an abstract interface for interacting with the singleton that instantiates a proxy whenever it itself is instantiated.

Needless to say, the reflection based auto-fixture didn't work.

I tried created a class that reifies the interface, but the companion object is making that hard.

I was just wondering if anyone here has any experience or can point me in the direction of something I can read to figure this out. Or if someone here's experience says "this is probably not the right approach, don't bother".

(I asked a similar question at ktorm and it was not a question that intrigued them, so that got closed and I understand if that happens here as well)

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions