@Test public void toRoleDimensionMap() { String regex = "(.*)"; List<Integer> groups = ImmutableList.of(3, 4, 1); Map<String, String> canonicalRoleNames = ImmutableMap.of("baz", "bar", "bar", "foo"); RoleDimensionMapping rdMap = new RoleDimensionMapping(regex, groups, canonicalRoleNames); RoleDimensionMappingBean bean = new RoleDimensionMappingBean(rdMap); assertThat(bean.toRoleDimensionMapping(), equalTo(rdMap)); }
public RoleDimensionMapping toRoleDimensionMapping() { return new RoleDimensionMapping(regex, groups, canonicalRoleNames); }
RoleDimensionMappingBean { public RoleDimensionMapping toRoleDimensionMapping() { return new RoleDimensionMapping(regex, groups, canonicalRoleNames); } }
RoleDimensionMappingBean { public RoleDimensionMapping toRoleDimensionMapping() { return new RoleDimensionMapping(regex, groups, canonicalRoleNames); } @JsonCreator private  RoleDimensionMappingBean();  RoleDimensionMappingBean(RoleDimensionMapping rdMapping); }
RoleDimensionMappingBean { public RoleDimensionMapping toRoleDimensionMapping() { return new RoleDimensionMapping(regex, groups, canonicalRoleNames); } @JsonCreator private  RoleDimensionMappingBean();  RoleDimensionMappingBean(RoleDimensionMapping rdMapping); @Override boolean equals(Object o); @Override int hashCode(); RoleDimensionMapping toRoleDimensionMapping(); }
RoleDimensionMappingBean { public RoleDimensionMapping toRoleDimensionMapping() { return new RoleDimensionMapping(regex, groups, canonicalRoleNames); } @JsonCreator private  RoleDimensionMappingBean();  RoleDimensionMappingBean(RoleDimensionMapping rdMapping); @Override boolean equals(Object o); @Override int hashCode(); RoleDimensionMapping toRoleDimensionMapping(); public String regex; public List<Integer> groups; public Map<String, String> canonicalRoleNames; }