truth icon indicating copy to clipboard operation
truth copied to clipboard

Fluent assertions for Java and Android

Results 86 truth issues
Sort by recently updated
recently updated
newest added

When doing assertions on an Optional containing a simple type like a string, the current OptionalSubject#hasValue method is sufficient. However, when the Optional contains a custom type which might even...

type=addition
P3

How does Truth feel about adding things to ClassSubject? There are assertions that I'd like to make using reflection (e.g. `assertThat(someClass).isAnnotatedWith(Singleton.class);`) that aren't currently supported without custom subjects. Is there...

type=addition
P3

https://truth.dev/api/0.46/com/google/common/truth/Ordered.html This does not indicate whether intervening elements are or are not allowed. E.g. does assertThat(list).containsAllElementsIn("a", "b", "c").inOrder(); pass or fail if list in fact contains: "a", "z", "b", "c"...

type=documentation
P3

Some types in the Truth-JavaDoc are still linked to developers.google.com URLs, which are not accessible for the public. Example: In the JavaDoc for class LiteProtoTruth and method "assertThat" (https://truth.dev/api/1.0/com/google/common/truth/extensions/proto/LiteProtoTruth.html#assertThat-com.google.protobuf.MessageLite-) the...

type=documentation
P3

Off-the-wall idea, posting here to see what others think: I'm envisioning using Truth to verify some data processing involving nested structures (think traversing a tree and asserting things about individual...

P3

Someone just commented internally that this would be handy for testing `AbstractFuture`. \[edit: Well, maybe not for that specifically, in light of https://github.com/google/truth/issues/268. But it's useful for plenty of other...

type=addition
P3

If you go to the [java docs](https://google.github.io/truth/api/0.42/) you're left with 0 indication where to start - just a jumble of classpaths. Clicking on any of those 3 main packages is...

P3

I see that you added subjects from JDK 8, but I wonder if you planned on adding `java.time` classes such as `LocalDate`, `LocalTime`, `LocalDateTime`, `ZonedDateTime` and `Instant`. I am willing...

P3

I'm testing some library APIs which throw various exceptions that are documented as part of its API contract. However, some of the exceptions are subtypes of each other. I want...

P3
type=enhancement

I found myself wanting to use a `java.util.Optional` with `TruthJunit.assume()`: ``` assume().that(javaUtilOptional).isPresent(); ``` Unfortunately this doesn't work, since `TruthJunit` doesn't support Java 8 types. Hence this feature request: It's be...

P3