use of com.epam.pipeline.controller.vo.ContextualPreferenceVO in project cloud-pipeline by epam.
the class ContextualPreferenceManagerTest method upsertShouldSavePreference.
@Test
public void upsertShouldSavePreference() {
final ContextualPreferenceVO preferenceVO = new ContextualPreferenceVO(NAME, VALUE, TYPE, toolResource);
final ContextualPreference preference = new ContextualPreference(NAME, VALUE, TYPE, toolResource);
when(contextualPreferenceHandler.isValid(eq(preference))).thenReturn(true);
manager.upsert(preferenceVO);
verify(contextualPreferenceDao).upsert(eq(preference));
}
Aggregations