Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Testsuite PoC - Injection framework should support multiple instances configured differently #30613

@stianst

Description

@stianst

For example a single test class could want to have multiple realms, this would look something like:

@TestRealm
RealmResource realm; // supplier will set the realm name to default

@TestRealm(ref = "another")
RealmResource realm2;

@TestRealm(ref = "myother", config=MyOthertConfig.class)
RealmResource realm3; // supplier will set the realm name to myother

@TestRealm(config=MyOthertConfig.class)
RealmResource realm4; // this should fail as the registry shouldn't allow it

@TestUser
UserResource user1; // in realm

@TestUser(realm-ref="myother")
UserResource user; // realm3

The check for realm4 can be moved to a separate issue, and we can live with the current implementation where the registry would basically kill realm as it's not compatible with realm4.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions