@Test public void addProjectForProjectExcludeOperator() { Project project = Mockito.mock(Project.class); when(project.isExcluded()).thenReturn(true); UnresolvedPlan plan = UnresolvedPlanHelper.addSelectAll(project); assertTrue(plan instanceof Project); assertThat(((Project) plan).getProjectList(), Matchers.contains(AllFields.of())); }
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);  }