Skip to content

Updating test for set({}, mergeAll:true)#3115

Merged
pongad merged 3 commits intomasterfrom
mrschmidt-conformancefix
Apr 3, 2018
Merged

Updating test for set({}, mergeAll:true)#3115
pongad merged 3 commits intomasterfrom
mrschmidt-conformancefix

Conversation

@schmidt-sebastian
Copy link
Contributor

This pulls in the updated conformance test (https://github.com/GoogleCloudPlatform/google-cloud-common/pull/251).

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 2, 2018
@schmidt-sebastian schmidt-sebastian force-pushed the mrschmidt-conformancefix branch from a3b2be6 to dc4708b Compare April 2, 2018 16:57
@schmidt-sebastian schmidt-sebastian requested review from pongad and removed request for pongad April 2, 2018 16:57
@pongad pongad merged commit c17e1a6 into master Apr 3, 2018
@pongad pongad deleted the mrschmidt-conformancefix branch April 3, 2018 17:22
suztomo pushed a commit that referenced this pull request Mar 9, 2026
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.truth:truth](https://togithub.com/google/truth) | `1.3.0` -> `1.4.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.truth:truth/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.truth:truth/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.truth:truth/1.3.0/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.truth:truth/1.3.0/1.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>google/truth (com.google.truth:truth)</summary>

### [`v1.4.0`](https://togithub.com/google/truth/releases/tag/v1.4.0): 1.4.0

In this release, our assertions on Java 8 types continue to move from the `Truth8` class to the main `Truth` class. This change should not break compatibility for any supported JDK or Android version, even users who test under old versions of Android without [API desugaring](https://developer.android.com/studio/write/java8-support#library-desugaring). Additionally, we will never break binary compatibility, though some users will have to make changes to their source code in order for it to compile against newer versions.

This release is likely to lead to more **build failures** than [1.3.0](https://togithub.com/google/truth/releases/tag/v1.3.0) did. However, those failures should be **straightforward to fix**.

#### Example build failure

    Foo.java:152: error: reference to assertThat is ambiguous
        assertThat(repo.findFileWithName("foo")).isNull();
        ^
      both method assertThat(@&#8203;org.jspecify.nullness.Nullable Path) in Truth8 and method assertThat(@&#8203;org.jspecify.nullness.Nullable Path) in Truth match

#### Simplest upgrade strategy (if you can update all your code atomically in the same commit as the Truth upgrade)

In the same commit:

1.  Upgrade Truth to 1.4.0.
2.  Replace `import static com.google.common.truth.Truth8.assertThat;` with `import static com.google.common.truth.Truth.assertThat;`.
    -   If you use Kotlin, replace `import com.google.common.truth.Truth8.assertThat` with `import com.google.common.truth.Truth.assertThat`.
3.  Replace `import com.google.common.truth.Truth8;` with `import com.google.common.truth.Truth;`.
    -   again, similarly for Kotlin if needed
4.  Replace remaining references to `Truth8` with references to `Truth`.
    -   For example, replace `Truth8.assertThat(optional).isPresent()` with `Truth.assertThat(optional).isPresent()`.

If you're feeling lucky, you can try this one-liner for the code updates:

```sh
git grep -l Truth8 | xargs perl -pi -e 's/import static com.google.common.truth.Truth8.assertThat;/import static com.google.common.truth.Truth.assertThat;/g; s/import com.google.common.truth.Truth8.assertThat/import com.google.common.truth.Truth.assertThat/g; s/import com.google.common.truth.Truth8/import com.google.common.truth.Truth/g; s/\bTruth8[.]/Truth./g;'
```

After that process, it is possible that you'll still see build errors from ambiguous usages of `assertThat` static imports. If so, you can find a workaround in the section about overload ambiguity in the release notes for [1.3.0](https://togithub.com/google/truth/releases/tag/v1.3.0). Alternatively, you can wait to upgrade until after a future Truth release, which will eliminate the ambiguity by changing the signatures of some `Truth.assertThat` overloads.

#### Incremental upgrade strategy

If you have a very large repo or you have other reasons to prefer to upgrade incrementally, you can use the approach that we used inside Google. Roughly, that approach was:

1.  Make the optional changes discussed in the release notes for [1.3.0](https://togithub.com/google/truth/releases/tag/v1.3.0).
2.  For any remaining calls to `Truth8.assertThat`, change them to *avoid* static import.
    -   That is, replace `assertThat(optional).isPresent()` with `Truth8.assertThat(optional).isPresent()`.
3.  Upgrade Truth to 1.4.0.
4.  Optionally replace references to `Truth8` with references to `Truth` (including restoring static imports if desired), as discussed in section about the simple upgrade strategy above.

#### Optional additional changes

-   If you use `assertWithMessage(...).about(intStreams()).that(...)`, `expect.about(optionalLongs()).that(...)`, or similar, you can remove your call to `about`. This change will never be necessary; it is just a simplification.
    -   This is similar to a previous optional change from [1.3.0](https://togithub.com/google/truth/releases/tag/v1.3.0), except that 1.3.0 solved this problem for `streams` and `optionals`, whereas 1.4.0 solves it for the other `Truth8` types.

#### For help

Please feel welcome to [open an issue](https://togithub.com/google/truth/issues/new) to report problems or request help.

#### Changelog

-   Added the remaining `Truth8.assertThat` overloads to the main `Truth` class. ([`9be8e77`](https://togithub.com/google/truth/commit/9be8e774c), [`1f81827`](https://togithub.com/google/truth/commit/1f81827f1))
-   Added more `that` overloads to make it possible to write type-specific assertions when using the remaining Java 8 types. ([`7c65fc6`](https://togithub.com/google/truth/commit/7c65fc611))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-bigquery).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE3MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [net.bytebuddy:byte-buddy](https://bytebuddy.net) | `1.14.18` ->
`1.15.1` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/net.bytebuddy:byte-buddy/1.15.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/net.bytebuddy:byte-buddy/1.15.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/net.bytebuddy:byte-buddy/1.14.18/1.15.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/net.bytebuddy:byte-buddy/1.14.18/1.15.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/googleapis/sdk-platform-java).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguNTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>2.45.0</summary>

##
[2.45.0](googleapis/sdk-platform-java@v2.44.0...v2.45.0)
(2024-09-09)


### Features

* add Batcher#close(timeout) and Batcher#cancelOutstanding
([#3141](googleapis/sdk-platform-java#3141))
([68fd533](googleapis/sdk-platform-java@68fd533))
* add full RetrySettings sample code to Settings classes
([#3056](googleapis/sdk-platform-java#3056))
([6fd1b0e](googleapis/sdk-platform-java@6fd1b0e))
* add toString to futures returned by operations
([#3140](googleapis/sdk-platform-java#3140))
([fbdbe04](googleapis/sdk-platform-java@fbdbe04))
* bake gapic-generator-java into the hermetic build docker image
([#3067](googleapis/sdk-platform-java#3067))
([96d45e1](googleapis/sdk-platform-java@96d45e1))


### Bug Fixes

* **gax:** prevent truncation/overflow when converting time values
([#3095](googleapis/sdk-platform-java#3095))
([95366a6](googleapis/sdk-platform-java@95366a6))


### Dependencies

* add opentelemetry exporter-metrics and shared-resoucemapping to shared
dependencies
([#3078](googleapis/sdk-platform-java#3078))
([dd7d6e4](googleapis/sdk-platform-java@dd7d6e4))
* update dependency certifi to v2024.8.30
([#3150](googleapis/sdk-platform-java#3150))
([2a2c1f6](googleapis/sdk-platform-java@2a2c1f6))
* update dependency com.google.api-client:google-api-client-bom to
v2.7.0
([#3151](googleapis/sdk-platform-java#3151))
([9defdc9](googleapis/sdk-platform-java@9defdc9))
* update dependency com.google.errorprone:error_prone_annotations to
v2.31.0
([#3153](googleapis/sdk-platform-java#3153))
([494abe9](googleapis/sdk-platform-java@494abe9))
* update dependency com.google.errorprone:error_prone_annotations to
v2.31.0
([#3154](googleapis/sdk-platform-java#3154))
([7bf94b1](googleapis/sdk-platform-java@7bf94b1))
* update dependency com.google.guava:guava to v33.3.0-jre
([#3119](googleapis/sdk-platform-java#3119))
([2f33f20](googleapis/sdk-platform-java@2f33f20))
* update dependency dev.cel:cel to v0.7.1
([#3155](googleapis/sdk-platform-java#3155))
([8db2f84](googleapis/sdk-platform-java@8db2f84))
* update dependency filelock to v3.16.0
([#3175](googleapis/sdk-platform-java#3175))
([2091eba](googleapis/sdk-platform-java@2091eba))
* update dependency idna to v3.8
([#3156](googleapis/sdk-platform-java#3156))
([0668758](googleapis/sdk-platform-java@0668758))
* update dependency io.netty:netty-tcnative-boringssl-static to
v2.0.66.final
([#3148](googleapis/sdk-platform-java#3148))
([7729251](googleapis/sdk-platform-java@7729251))
* update dependency net.bytebuddy:byte-buddy to v1.15.1
([#3115](googleapis/sdk-platform-java#3115))
([e173c58](googleapis/sdk-platform-java@e173c58))
* update dependency org.apache.commons:commons-lang3 to v3.17.0
([#3157](googleapis/sdk-platform-java#3157))
([a37dc70](googleapis/sdk-platform-java@a37dc70))
* update dependency org.checkerframework:checker-qual to v3.47.0
([#3166](googleapis/sdk-platform-java#3166))
([912e1e0](googleapis/sdk-platform-java@912e1e0))
* update dependency org.yaml:snakeyaml to v2.3
([#3158](googleapis/sdk-platform-java#3158))
([0ed2059](googleapis/sdk-platform-java@0ed2059))
* update dependency platformdirs to v4.3.2
([#3176](googleapis/sdk-platform-java#3176))
([610fadc](googleapis/sdk-platform-java@610fadc))
* update dependency virtualenv to v20.26.4
([#3177](googleapis/sdk-platform-java#3177))
([bcef38a](googleapis/sdk-platform-java@bcef38a))
* update google api dependencies
([#3118](googleapis/sdk-platform-java#3118))
([b32b80b](googleapis/sdk-platform-java@b32b80b))
* update google auth library dependencies to v1.25.0
([#3168](googleapis/sdk-platform-java#3168))
([f48afb7](googleapis/sdk-platform-java@f48afb7))
* update google http client dependencies to v1.45.0
([#3159](googleapis/sdk-platform-java#3159))
([e1cd2fc](googleapis/sdk-platform-java@e1cd2fc))
* update googleapis/java-cloud-bom digest to 6626f91
([#3147](googleapis/sdk-platform-java#3147))
([db9e878](googleapis/sdk-platform-java@db9e878))
* update junit5 monorepo to v5.11.0
([#3111](googleapis/sdk-platform-java#3111))
([b11b5dc](googleapis/sdk-platform-java@b11b5dc))
* update netty dependencies to v4.1.113.final
([#3165](googleapis/sdk-platform-java#3165))
([1be261a](googleapis/sdk-platform-java@1be261a))
* update opentelemetry-java monorepo to v1.42.0
([#3172](googleapis/sdk-platform-java#3172))
([ef61b8c](googleapis/sdk-platform-java@ef61b8c))


### Documentation

* Update DEVELOPMENT.md
([#3126](googleapis/sdk-platform-java#3126))
([b7670c4](googleapis/sdk-platform-java@b7670c4))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: ldetmer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants