@Test public void testDryRunRequest() { Request dryRunRequest = PropertyHelper.getCreateRequest(Collections.<Map<String,Object>>emptySet(), Collections.singletonMap(Request.DIRECTIVE_DRY_RUN, "true")); Request nonDryRunReqest1 = PropertyHelper.getCreateRequest(Collections.<Map<String,Object>>emptySet(), Collections.singletonMap(Request.DIRECTIVE_DRY_RUN, "false")); Request nonDryRunReqest2 = PropertyHelper.getCreateRequest(Collections.<Map<String,Object>>emptySet(), Collections.<String, String>emptyMap()); Assert.assertTrue(dryRunRequest.isDryRunRequest()); Assert.assertFalse(nonDryRunReqest1.isDryRunRequest()); Assert.assertFalse(nonDryRunReqest2.isDryRunRequest()); }
@Override public boolean isDryRunRequest() { return dryRun; }
RequestImpl implements Request { @Override public boolean isDryRunRequest() { return dryRun; } }
RequestImpl implements Request { @Override public boolean isDryRunRequest() { return dryRun; } RequestImpl(Set<String> propertyIds, Set<Map<String, Object>> properties,
                     Map<String, String> requestInfoProperties, Map<String,TemporalInfo> mapTemporalInfo);  RequestImpl(Set<String> propertyIds, Set<Map<String, Object>> properties,
                     Map<String, String> requestInfoProperties, Map<String, TemporalInfo> mapTemporalInfo,
                     SortRequest sortRequest, PageRequest pageRequest); }
RequestImpl implements Request { @Override public boolean isDryRunRequest() { return dryRun; } RequestImpl(Set<String> propertyIds, Set<Map<String, Object>> properties,
                     Map<String, String> requestInfoProperties, Map<String,TemporalInfo> mapTemporalInfo);  RequestImpl(Set<String> propertyIds, Set<Map<String, Object>> properties,
                     Map<String, String> requestInfoProperties, Map<String, TemporalInfo> mapTemporalInfo,
                     SortRequest sortRequest, PageRequest pageRequest); @Override Set<String> getPropertyIds(); @Override Set<Map<String, Object>> getProperties(); @Override Map<String, String> getRequestInfoProperties(); @Override TemporalInfo getTemporalInfo(String id); @Override PageRequest getPageRequest(); @Override SortRequest getSortRequest(); @Override boolean isDryRunRequest(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
RequestImpl implements Request { @Override public boolean isDryRunRequest() { return dryRun; } RequestImpl(Set<String> propertyIds, Set<Map<String, Object>> properties,
                     Map<String, String> requestInfoProperties, Map<String,TemporalInfo> mapTemporalInfo);  RequestImpl(Set<String> propertyIds, Set<Map<String, Object>> properties,
                     Map<String, String> requestInfoProperties, Map<String, TemporalInfo> mapTemporalInfo,
                     SortRequest sortRequest, PageRequest pageRequest); @Override Set<String> getPropertyIds(); @Override Set<Map<String, Object>> getProperties(); @Override Map<String, String> getRequestInfoProperties(); @Override TemporalInfo getTemporalInfo(String id); @Override PageRequest getPageRequest(); @Override SortRequest getSortRequest(); @Override boolean isDryRunRequest(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }