Skip to content

EnvironmentVariables clear() does not work properly #86

Description

@serkan-ozkan

I have a test dependent of environment variables. I am setting environment variable in @before like this.

    @Rule
    public final EnvironmentVariables environmentVariables = new EnvironmentVariables();

@Before
    public void setUp() throws Exception {
        environmentVariables.set("someValue","testLink");
    }

In one of the test I need to clear the same environment variable. But when I do this:

environmentVariables.clear("someValue");

When I run the test alone it works fine but when I run all the tests in the class, environment variable is not cleared. Probably I am missin something but it can be a bug as well.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions