MCPcopy Create free account
hub / github.com/google/truth / twoFacts

Method twoFacts

core/src/test/java/com/google/common/truth/FactTest.java:58–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 @Test
59 public void twoFacts() {
60 assertThat(
61 makeMessage(
62 ImmutableList.of(),
63 ImmutableList.of(fact("foo", "bar"), fact("longer name", "other value"))))
64 .isEqualTo(
65 TEXT.join(
66 "foo : bar", // force a line break
67 "longer name: other value"));
68 }
69
70 @Test
71 public void mixingFactsAndNumericFacts() {

Callers

nothing calls this directly

Calls 6

makeMessageMethod · 0.80
factMethod · 0.80
joinMethod · 0.80
isEqualToMethod · 0.65
assertThatMethod · 0.45
ofMethod · 0.45

Tested by

no test coverage detected