Skip to content

Supporting using different json files in Class/SubClass  #242

Description

@patown

A TestBase class is commonly useful to setup shared test context . Hope Hoverfly could support this scenario below,

Public class TestBase() {
@ClassRule
public static HoverflyRule logonRule = HoverflyRule.inCaptureOrSimulationMode("logon.json");
}

public class TestA extends TestBase {
@ClassRule
public static HoverflyRule TestARule = HoverflyRule.inCaptureOrSimulationMode("TestA.json");
//
}

public class TestB extends TestBase {
@ClassRule
public static HoverflyRule TestBRule = HoverflyRule.inCaptureOrSimulationMode("TestB.json");
//
}

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions