@Test public void crmEventTypeNotFound() { final String anEventTypeThatIsNotInCache = randomString(); when(dao.crm2AliadaClass(anEventTypeThatIsNotInCache)).thenReturn(null); assertNull(cut.getAliadaEventTypeClassFrom(anEventTypeThatIsNotInCache)); verify(dao).crm2AliadaClass(anEventTypeThatIsNotInCache); }
public String getAliadaEventTypeClassFrom(final String crmClass) { String uri = crm2AliadaEventTypes.get(crmClass); if (uri == null) { uri = rdfStore.crm2AliadaClass(crmClass); } return uri; }
Cache { public String getAliadaEventTypeClassFrom(final String crmClass) { String uri = crm2AliadaEventTypes.get(crmClass); if (uri == null) { uri = rdfStore.crm2AliadaClass(crmClass); } return uri; } }
Cache { public String getAliadaEventTypeClassFrom(final String crmClass) { String uri = crm2AliadaEventTypes.get(crmClass); if (uri == null) { uri = rdfStore.crm2AliadaClass(crmClass); } return uri; }  }
Cache { public String getAliadaEventTypeClassFrom(final String crmClass) { String uri = crm2AliadaEventTypes.get(crmClass); if (uri == null) { uri = rdfStore.crm2AliadaClass(crmClass); } return uri; }  String getAliadaClassFrom(final String crmClass); Pattern getStartPattern(final String regex); Pattern getEndPattern(final String regex); String getAliadaEventTypeClassFrom(final String crmClass); JobInstance getJobInstance(final Integer id); void removeJobInstance(final Integer jobId); }
Cache { public String getAliadaEventTypeClassFrom(final String crmClass) { String uri = crm2AliadaEventTypes.get(crmClass); if (uri == null) { uri = rdfStore.crm2AliadaClass(crmClass); } return uri; }  String getAliadaClassFrom(final String crmClass); Pattern getStartPattern(final String regex); Pattern getEndPattern(final String regex); String getAliadaEventTypeClassFrom(final String crmClass); JobInstance getJobInstance(final Integer id); void removeJobInstance(final Integer jobId);  }