@Test public void testExecute_Include() { SelectContext<Tr> context = new SelectContext<>(Tr.class); context.setMergedRequest(requestBuilderFactory .builder() .addInclude(new Include("a")) .addInclude(new Include("b")).build()); stage.execute(context); ResourceEntity<Tr> resourceEntity = context.getEntity(); assertNotNull(resourceEntity); assertFalse(resourceEntity.isIdIncluded()); assertEquals(2, resourceEntity.getAttributes().size()); assertTrue(resourceEntity.getAttributes().containsKey("a")); assertTrue(resourceEntity.getAttributes().containsKey("b")); assertTrue(resourceEntity.getChildren().isEmpty()); }
@Override public ProcessorOutcome execute(SelectContext<?> context) { doExecute(context); return ProcessorOutcome.CONTINUE; }
CreateResourceEntityStage implements Processor<SelectContext<?>> { @Override public ProcessorOutcome execute(SelectContext<?> context) { doExecute(context); return ProcessorOutcome.CONTINUE; } }
CreateResourceEntityStage implements Processor<SelectContext<?>> { @Override public ProcessorOutcome execute(SelectContext<?> context) { doExecute(context); return ProcessorOutcome.CONTINUE; } CreateResourceEntityStage(
            @Inject IMetadataService metadataService,
            @Inject ICayenneExpMerger expMerger,
            @Inject ISortMerger sortMerger,
            @Inject IMapByMerger mapByMerger,
            @Inject ISizeMerger sizeMerger,
            @Inject IIncludeMerger includeMerger,
            @Inject IExcludeMerger excludeMerger); }
CreateResourceEntityStage implements Processor<SelectContext<?>> { @Override public ProcessorOutcome execute(SelectContext<?> context) { doExecute(context); return ProcessorOutcome.CONTINUE; } CreateResourceEntityStage(
            @Inject IMetadataService metadataService,
            @Inject ICayenneExpMerger expMerger,
            @Inject ISortMerger sortMerger,
            @Inject IMapByMerger mapByMerger,
            @Inject ISizeMerger sizeMerger,
            @Inject IIncludeMerger includeMerger,
            @Inject IExcludeMerger excludeMerger); @Override ProcessorOutcome execute(SelectContext<?> context); }
CreateResourceEntityStage implements Processor<SelectContext<?>> { @Override public ProcessorOutcome execute(SelectContext<?> context) { doExecute(context); return ProcessorOutcome.CONTINUE; } CreateResourceEntityStage(
            @Inject IMetadataService metadataService,
            @Inject ICayenneExpMerger expMerger,
            @Inject ISortMerger sortMerger,
            @Inject IMapByMerger mapByMerger,
            @Inject ISizeMerger sizeMerger,
            @Inject IIncludeMerger includeMerger,
            @Inject IExcludeMerger excludeMerger); @Override ProcessorOutcome execute(SelectContext<?> context);  }