@Test public void addProjectForRenameOperator() { Rename rename = Mockito.mock(Rename.class); UnresolvedPlan plan = UnresolvedPlanHelper.addSelectAll(rename); assertTrue(plan instanceof Project); }
public UnresolvedPlan addSelectAll(UnresolvedPlan plan) { if ((plan instanceof Project) && !((Project) plan).isExcluded()) { return plan; } else { return new Project(ImmutableList.of(AllFields.of())).attach(plan); } }
UnresolvedPlanHelper { public UnresolvedPlan addSelectAll(UnresolvedPlan plan) { if ((plan instanceof Project) && !((Project) plan).isExcluded()) { return plan; } else { return new Project(ImmutableList.of(AllFields.of())).attach(plan); } } }
UnresolvedPlanHelper { public UnresolvedPlan addSelectAll(UnresolvedPlan plan) { if ((plan instanceof Project) && !((Project) plan).isExcluded()) { return plan; } else { return new Project(ImmutableList.of(AllFields.of())).attach(plan); } }  }
UnresolvedPlanHelper { public UnresolvedPlan addSelectAll(UnresolvedPlan plan) { if ((plan instanceof Project) && !((Project) plan).isExcluded()) { return plan; } else { return new Project(ImmutableList.of(AllFields.of())).attach(plan); } }  UnresolvedPlan addSelectAll(UnresolvedPlan plan); }
UnresolvedPlanHelper { public UnresolvedPlan addSelectAll(UnresolvedPlan plan) { if ((plan instanceof Project) && !((Project) plan).isExcluded()) { return plan; } else { return new Project(ImmutableList.of(AllFields.of())).attach(plan); } }  UnresolvedPlan addSelectAll(UnresolvedPlan plan);  }