@Test( dataProvider = "inAndOutTestCases") public void getTests( String testDescription, SimpleTraversal simpleTraversal, Object ignoredForTest, Object input, String expected ) throws IOException { Object original = JsonUtils.cloneJson( input ); Object tree = JsonUtils.cloneJson( input ); Optional actual = simpleTraversal.get( tree ); Assert.assertEquals( expected, actual.get() ); JoltTestUtil.runDiffy( "Get should not have modified the input", original, tree ); }
public Optional<DataType> get( Object tree ) { return (Optional<DataType>) traversr.get( tree, keys ); }
SimpleTraversal { public Optional<DataType> get( Object tree ) { return (Optional<DataType>) traversr.get( tree, keys ); } }
SimpleTraversal { public Optional<DataType> get( Object tree ) { return (Optional<DataType>) traversr.get( tree, keys ); } SimpleTraversal( String humanReadablePath ); }
SimpleTraversal { public Optional<DataType> get( Object tree ) { return (Optional<DataType>) traversr.get( tree, keys ); } SimpleTraversal( String humanReadablePath ); static SimpleTraversal<T> newTraversal(String humanReadablePath); Optional<DataType> get( Object tree ); Optional<DataType> set( Object tree, DataType data ); Optional<DataType> remove( Object tree ); }
SimpleTraversal { public Optional<DataType> get( Object tree ) { return (Optional<DataType>) traversr.get( tree, keys ); } SimpleTraversal( String humanReadablePath ); static SimpleTraversal<T> newTraversal(String humanReadablePath); Optional<DataType> get( Object tree ); Optional<DataType> set( Object tree, DataType data ); Optional<DataType> remove( Object tree );  }