@Test public void testExecute_IncludeExcludeBothAttrs() { SelectContext<Ts> context = new SelectContext<>(Ts.class); context.setMergedRequest(requestBuilderFactory .builder() .addInclude(new Include("rtt.o")) .addExclude(new Exclude("m")) .build()); stage.execute(context); ResourceEntity<Ts> resourceEntity = context.getEntity(); assertNotNull(resourceEntity); assertTrue(resourceEntity.isIdIncluded()); assertEquals(1, resourceEntity.getAttributes().size()); assertTrue(resourceEntity.getAttributes().containsKey("n")); assertEquals(1, resourceEntity.getChildren().size()); assertEquals(1, resourceEntity.getChildren().entrySet().size()); assertTrue(resourceEntity.getChildren().keySet().contains("rtt")); ResourceEntity<?> e3ResourceEntity = resourceEntity.getChildren().get("rtt"); assertFalse(e3ResourceEntity.isIdIncluded()); assertEquals(1, e3ResourceEntity.getAttributes().size()); assertTrue(e3ResourceEntity.getAttributes().containsKey("o")); assertTrue(e3ResourceEntity.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);  }