@Test public void testSimpleRead() { TraversalPlan plan = new TraversalPlan( RequestType.READ, new ResourcePath("/foo/bar/baz" ) ); assertThat( plan.steps() ).hasSize( 3 ); assertThat( plan.steps().get(0)).isInstanceOf(ReadStep.class); assertThat( plan.steps().get(1)).isInstanceOf(ReadStep.class); assertThat( plan.steps().get(2)).isInstanceOf( ReadStep.class ); }
public List<Step> steps() { return this.steps; }
TraversalPlan { public List<Step> steps() { return this.steps; } }
TraversalPlan { public List<Step> steps() { return this.steps; } TraversalPlan(RequestType requestType, ResourcePath path); }
TraversalPlan { public List<Step> steps() { return this.steps; } TraversalPlan(RequestType requestType, ResourcePath path); List<Step> steps(); void replace(Step oldStep, Step newStep); String toString(); }
TraversalPlan { public List<Step> steps() { return this.steps; } TraversalPlan(RequestType requestType, ResourcePath path); List<Step> steps(); void replace(Step oldStep, Step newStep); String toString();  }