Skip to content
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

feat: Add Custom Part Metadata Decorator to ParallelCompositeUploadConfig #2434

Merged
merged 24 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
Add in version to javadoc
  • Loading branch information
sydney-munro committed Mar 15, 2024
commit 9f127592c6edb2f3c5af270f628890e7806b6a4e
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ protected String fmtFields(String randomKey, String ultimateObjectName, String p
* aid in part cleanup via OLM Rules.
*
* @see #withPartCustomTimeStrategy(PartCustomTimeStrategy)
* @since <TBD></> This new api is in preview and is subject to breaking changes.
* @since 2.35.1</> This new api is in preview and is subject to breaking changes.
*/
@BetaApi
@Immutable
Expand Down Expand Up @@ -689,7 +689,7 @@ public static NoCustomTime noCustomTime() {
static final class CustomTimeSet extends PartCustomTimeStrategy {
private final Duration timeInFuture;

protected Duration getTimeInFuture() {
Duration getTimeInFuture() {
return timeInFuture;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ public void partNameStrategy_objectNamePrefix() throws Exception {
() -> assertThat(fmt).startsWith("a/b/obj"));
BenWhitehead marked this conversation as resolved.
Show resolved Hide resolved
}

@Test
@Test(expected = IllegalStateException.class)
public void partCustomTimeStrategy_noCustomTime() {
PartCustomTimeStrategy strategy = PartCustomTimeStrategy.noCustomTime();
assertThat(strategy.isSetCustomTime()).isFalse();
assertThat(strategy.getTimeInFuture()).isNull();
strategy.getTimeInFuture();
}

@Test
Expand Down