@Test public void testJavaLoggerProxyAndAssertions() { ITest<Person> testClient = Person::new; ITest clientProxy = LoggerProxyFactory.newProxyFactory(testClient).buildProxy(); testClient.demoAPI("name", "address", Arrays.asList("12345")); Person person = (Person) clientProxy.demoAPI("name proxy", "address proxy", Arrays.asList("54321")); new JsonAssertion(person.toString()) .pathMatch("$.name", "name proxy") .pathMatch("$.phone", CoreMatchers.hasItem("54321")); }
public void run(ITest test) { test.doit(1); }