Asserting multiple attributes of an Object

48 views Asked by At

In order to assert multiple attributes of a call, I am planning to use auto-value.

But the documentation says:

  // You probably don't need to write assertions like these; just illustrating.
  assertTrue(Animal.create("dog", 4).equals(dog));
  assertFalse(Animal.create("cat", 4).equals(dog));
  assertFalse(Animal.create("dog", 2).equals(dog));

https://chromium.googlesource.com/external/github.com/google/auto/+/auto-value-1.6.2/value/userguide/index.md#usage

What are the better ways of asserting multiple attributs of dog?

0

There are 0 answers