Skip to content

Support inner classes in RandomClassProvider #212

Open
@serpro69

Description

@serpro69

describe("an inner class") {
it("should throw exception when generated directly") {
assertThrows<UnsupportedOperationException> { randomProvider.randomClassInstance<Go.BuildNum>() }
}
it("should throw exception when included as constructor parameter") {
class Test(val goBuild: Go.BuildNum)
assertThrows<UnsupportedOperationException> { randomProvider.randomClassInstance<Test>() }
}
}

Using inner classes is disabled since it was causing stackoverflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    core 🧬Issue related to :core moduleenhancement 🚀New feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions