@Test public void testConvertToEntityTypeFromScopeType() { assertEquals(EntityType.NOTSET, DomainConversionUtility.convertToEntityType(ScopeType.ALL)); assertEquals(EntityType.PERSON, DomainConversionUtility.convertToEntityType(ScopeType.PERSON)); assertEquals(EntityType.GROUP, DomainConversionUtility.convertToEntityType(ScopeType.GROUP)); assertEquals(EntityType.NOTSET, DomainConversionUtility.convertToEntityType(ScopeType.PERSONS_FOLLOWED_STREAMS)); assertEquals(EntityType.NOTSET, DomainConversionUtility.convertToEntityType(ScopeType.STARRED)); assertEquals(EntityType.RESOURCE, DomainConversionUtility.convertToEntityType(ScopeType.RESOURCE)); }
public static EntityType convertToEntityType(final ScopeType scopeType) { switch (scopeType) { case PERSON: return EntityType.PERSON; case GROUP: return EntityType.GROUP; case RESOURCE: return EntityType.RESOURCE; default: return EntityType.NOTSET; } }
DomainConversionUtility { public static EntityType convertToEntityType(final ScopeType scopeType) { switch (scopeType) { case PERSON: return EntityType.PERSON; case GROUP: return EntityType.GROUP; case RESOURCE: return EntityType.RESOURCE; default: return EntityType.NOTSET; } } }
DomainConversionUtility { public static EntityType convertToEntityType(final ScopeType scopeType) { switch (scopeType) { case PERSON: return EntityType.PERSON; case GROUP: return EntityType.GROUP; case RESOURCE: return EntityType.RESOURCE; default: return EntityType.NOTSET; } } private  DomainConversionUtility(); }
DomainConversionUtility { public static EntityType convertToEntityType(final ScopeType scopeType) { switch (scopeType) { case PERSON: return EntityType.PERSON; case GROUP: return EntityType.GROUP; case RESOURCE: return EntityType.RESOURCE; default: return EntityType.NOTSET; } } private  DomainConversionUtility(); static EntityType convertToEntityType(final ScopeType scopeType); }
DomainConversionUtility { public static EntityType convertToEntityType(final ScopeType scopeType) { switch (scopeType) { case PERSON: return EntityType.PERSON; case GROUP: return EntityType.GROUP; case RESOURCE: return EntityType.RESOURCE; default: return EntityType.NOTSET; } } private  DomainConversionUtility(); static EntityType convertToEntityType(final ScopeType scopeType);  }