/** * @see ProviderService#retireProviderAttributeType(ProviderAttributeType,String) */ @Test public void retireProviderAttributeType_shouldRetireProviderTypeAttribute() { ProviderAttributeType providerAttributeType = service.getProviderAttributeType(1); assertFalse(providerAttributeType.getRetired()); assertNull(providerAttributeType.getRetireReason()); assertEquals(2, service.getAllProviderAttributeTypes(false).size()); service.retireProviderAttributeType(providerAttributeType, "retire reason"); assertTrue(providerAttributeType.getRetired()); assertEquals("retire reason", providerAttributeType.getRetireReason()); assertEquals(1, service.getAllProviderAttributeTypes(false).size()); }