Creates a fact with no value, which will be printed in the format "key" (with no colon or value). In most cases, prefer plain #fact key-value facts, which give Truth more flexibility in how to format the fact for display. simpleFact is useful primarily for: messages fr
(String key)
| 66 | * </ul> |
| 67 | */ |
| 68 | public static Fact simpleFact(String key) { |
| 69 | return new Fact(key, null, /* padStart= */ false); |
| 70 | } |
| 71 | |
| 72 | /** Creates a fact with the given key and the value returned by the given {@link Supplier}. */ |
| 73 | static Fact factFromSupplier(String key, Supplier<?> valueSupplier) { |
no outgoing calls