New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Java] Feedback: The Testutil Modules are valuable and should not be removed #818
Comments
Removing these modules will impact the Cloud SDK tutorials. |
Hi @newtork , I am using com.sap.cloud.sdk.testutil.MockUtil in order to mock the destination-service from the cloud foundry environment for integration testing. |
Hi @theits @Before
public void setLoader() {
final DefaultHttpDestination dest = DefaultHttpDestination.builder("http://destination/").name("MyDest").build();
final DefaultDestinationLoader loader = new DefaultDestinationLoader().registerDestination(dest);
DestinationAccessor.setLoader(loader);
}
@After
public void resetLoader() {
DestinationAccessor.setLoader(null);
} Benefits:
Of course there are semantic differences. Please let me know, if it's missing something. |
Hi @newtork , |
Closing this as |
We are migrating the com.sap.cloud.sdk:sdk-modules-bom from 4.27.0 to 5.2.0 and trying to remove the dependency of com.sap.cloud.sdk.cloudplatform:scp-cf and com.sap.cloud.sdk.testutil:testutil-core as it is depricated. @before We are getting following error : Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.72 sec <<< FAILURE! Can you please suggest the solution? |
Ask for feedback
This issue is meant to collect user feedback regarding the upcoming removal of the
testutil-*
modules from the public deliveries of the SAP Cloud SDK for Java.Following modules wont't be available after the release of version 4:
com.sap.cloud.sdk.testutil:testutil-parent
)com.sap.cloud.sdk.testutil:testutil-core
)com.sap.cloud.sdk.testutil:testutil-resources
)If you are relying on (one of) these modules, please react with a 👍 to let us know
The text was updated successfully, but these errors were encountered: