@Test public void with_custom_fileending_path_is_like_expected_for_given_value_with_custom_ending() { testAdapter.fileEnding="something"; assertEquals("/adapter/mockdata/TestAbstractMockedAdapter/v10/valueY.something",testAdapter.getPathToMockResultFile("valueY")); }
protected String getPathToMockResultFile(String wantedTrafficLight) { return "/adapter/mockdata/" + createAdapterId() + "/v" + getAdapterVersion() + "/" + wantedTrafficLight + "." + getMockDataFileEnding(); }
AbstractMockedAdapter extends AbstractAdapter<A, C> implements MockedAdapter<C> { protected String getPathToMockResultFile(String wantedTrafficLight) { return "/adapter/mockdata/" + createAdapterId() + "/v" + getAdapterVersion() + "/" + wantedTrafficLight + "." + getMockDataFileEnding(); } }
AbstractMockedAdapter extends AbstractAdapter<A, C> implements MockedAdapter<C> { protected String getPathToMockResultFile(String wantedTrafficLight) { return "/adapter/mockdata/" + createAdapterId() + "/v" + getAdapterVersion() + "/" + wantedTrafficLight + "." + getMockDataFileEnding(); }  }
AbstractMockedAdapter extends AbstractAdapter<A, C> implements MockedAdapter<C> { protected String getPathToMockResultFile(String wantedTrafficLight) { return "/adapter/mockdata/" + createAdapterId() + "/v" + getAdapterVersion() + "/" + wantedTrafficLight + "." + getMockDataFileEnding(); }  @Override int getAdapterVersion(); final String execute(C config, AdapterRuntimeContext runtimeContext); String getAdapterId(); }
AbstractMockedAdapter extends AbstractAdapter<A, C> implements MockedAdapter<C> { protected String getPathToMockResultFile(String wantedTrafficLight) { return "/adapter/mockdata/" + createAdapterId() + "/v" + getAdapterVersion() + "/" + wantedTrafficLight + "." + getMockDataFileEnding(); }  @Override int getAdapterVersion(); final String execute(C config, AdapterRuntimeContext runtimeContext); String getAdapterId();  }