Skip to content

@EnvContext is ignored when applied on the method level #77

Open

Description

@nfx

should be possible to set env context

@ExtendWith(EnvTest.class)
public class UsersIT2 {
  @Test
  @EnvContext("account")
  void lists(DatabricksAccount a) {
    Iterable<User> list = a.users().list(new ListAccountUsersRequest());

    java.util.List<User> all = CollectionUtils.asList(list);

    CollectionUtils.assertUnique(all);
  }

  @Test
  @EnvContext("workspace")
  void lists(DatabricksWorkspace w) {
    Iterable<User> list = w.users().list(new ListUsersRequest());

    java.util.List<User> all = CollectionUtils.asList(list);

    CollectionUtils.assertUnique(all);
  }
}

Activity

  1. added
    Bug
    Triaged
    on Apr 16, 2026
  2. eminfikret commented on Nov 14, 2026

    @eminfikret

    Hi @nfx and @renaudhartert-db, I was able to reproduce the bug. Can I pick up this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugTriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions