@Test void nestedList() { JazonList drinks = new JazonList("pepsi", "coca cola", "sprite"); JazonList birds = new JazonList("pigeon", "sparrow"); JazonList jazonList = new JazonList(drinks, birds); List<JsonExpectationInput> list = jazonList.list(); assertEquals(2, list.size()); assertEquals(new ObjectExpectationInput(drinks), list.get(0)); assertEquals(new ObjectExpectationInput(birds), list.get(1)); }
public List<JsonExpectationInput> list() { return list; }
JazonList { public List<JsonExpectationInput> list() { return list; } }
JazonList { public List<JsonExpectationInput> list() { return list; } JazonList(Predicate<?>... predicates);  JazonList(Object... objects); }
JazonList { public List<JsonExpectationInput> list() { return list; } JazonList(Predicate<?>... predicates);  JazonList(Object... objects); JazonList with(Object object); JazonList with(Predicate<T> predicate); List<JsonExpectationInput> list(); }
JazonList { public List<JsonExpectationInput> list() { return list; } JazonList(Predicate<?>... predicates);  JazonList(Object... objects); JazonList with(Object object); JazonList with(Predicate<T> predicate); List<JsonExpectationInput> list();  }