@Test public void should_map_file_lookup() throws Exception { mockFileLookup(); ReportResource resource = mapper.transform(mReportLookup); assertThat(resource.alwaysPromptControls(), is(true)); }
@Override public ReportResource transform(ReportLookup lookup) { ReportResource.Builder builder = new ReportResource.Builder(); AbstractResourceBuilder abstractResourceBuilder = builder.addResource(); buildLookup(abstractResourceBuilder, lookup); builder.withAlwaysPrompt(lookup.alwaysPromptControls()); return builder.build(); }
ReportResourceMapper extends AbstractResourceMapper<ReportResource, ReportLookup> { @Override public ReportResource transform(ReportLookup lookup) { ReportResource.Builder builder = new ReportResource.Builder(); AbstractResourceBuilder abstractResourceBuilder = builder.addResource(); buildLookup(abstractResourceBuilder, lookup); builder.withAlwaysPrompt(lookup.alwaysPromptControls()); return builder.build(); } }
ReportResourceMapper extends AbstractResourceMapper<ReportResource, ReportLookup> { @Override public ReportResource transform(ReportLookup lookup) { ReportResource.Builder builder = new ReportResource.Builder(); AbstractResourceBuilder abstractResourceBuilder = builder.addResource(); buildLookup(abstractResourceBuilder, lookup); builder.withAlwaysPrompt(lookup.alwaysPromptControls()); return builder.build(); } ReportResourceMapper(@NotNull SimpleDateFormat format, @Nullable ResourceType backupType);  ReportResourceMapper(@NotNull SimpleDateFormat format); }
ReportResourceMapper extends AbstractResourceMapper<ReportResource, ReportLookup> { @Override public ReportResource transform(ReportLookup lookup) { ReportResource.Builder builder = new ReportResource.Builder(); AbstractResourceBuilder abstractResourceBuilder = builder.addResource(); buildLookup(abstractResourceBuilder, lookup); builder.withAlwaysPrompt(lookup.alwaysPromptControls()); return builder.build(); } ReportResourceMapper(@NotNull SimpleDateFormat format, @Nullable ResourceType backupType);  ReportResourceMapper(@NotNull SimpleDateFormat format); @Override ReportResource transform(ReportLookup lookup); }
ReportResourceMapper extends AbstractResourceMapper<ReportResource, ReportLookup> { @Override public ReportResource transform(ReportLookup lookup) { ReportResource.Builder builder = new ReportResource.Builder(); AbstractResourceBuilder abstractResourceBuilder = builder.addResource(); buildLookup(abstractResourceBuilder, lookup); builder.withAlwaysPrompt(lookup.alwaysPromptControls()); return builder.build(); } ReportResourceMapper(@NotNull SimpleDateFormat format, @Nullable ResourceType backupType);  ReportResourceMapper(@NotNull SimpleDateFormat format); @Override ReportResource transform(ReportLookup lookup);  }