Skip to content

TestNG test suit fails to run in IDE #56

@lpradel

Description

@lpradel

As described by @MihajloNesic here in certain IDEs the test suit will not execute because BaseTest is in package package com.lukaspradel.steamapi which is not exported in module-info.java.

Error message looks like:
java.lang.reflect.InaccessibleObjectException: Unable to make public void com.lukaspradel.steamapi.BaseTest.initMocks() accessible: module com.lukaspradel.steamapi does not "exports com.lukaspradel.steamapi" to unnamed module @44c2862d

Was finally able to reproduce in newest version of IntelliJ.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions