Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions sdk/resourcemanager/azure-resourcemanager-test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# Release History

## 2.0.0-beta.3 (Unreleased)
## 2.0.0-beta.3 (2026-06-01)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
- Added new `buildManager` overload to `ResourceManagerTestProxyTestBase`, enabling setting long-running operation's default polling interval via entry class.

## 2.0.0-beta.2 (2025-08-20)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,31 @@ protected <T> T buildManager(Class<T> manager, HttpPipeline httpPipeline, AzureP
}
}

/**
* Builds the manager with provided http pipeline, profile and defaultPollInterval in general manner.
* This is useful when you are doing recording tests and want to share the already set-up HttpPipeline.
*
* @param manager the class of the manager
* @param httpPipeline the http pipeline
* @param profile the azure profile
* @param defaultPollInterval default poll interval for long-running operations
* @param <T> the type of the manager
* @return the manager instance
* @throws RuntimeException when field cannot be found or set.
*/
protected <T> T buildManager(Class<T> manager, HttpPipeline httpPipeline, AzureProfile profile,
Duration defaultPollInterval) {
try {
Constructor<T> constructor = manager.getDeclaredConstructor(httpPipeline.getClass(), profile.getClass(),
defaultPollInterval.getClass());
setAccessible(constructor);
return constructor.newInstance(httpPipeline, profile, defaultPollInterval);

} catch (ReflectiveOperationException ex) {
throw LOGGER.logExceptionAsError(new RuntimeException(ex));
}
}

/**
* Builds an HttpPipeline.
*
Expand Down
Loading