use of com.google.recaptchaenterprise.v1beta1.Event in project requery by requery.
the class UpsertTest method testUpsertManyToMany.
@Test
public void testUpsertManyToMany() {
Event event1 = new Event();
event1.setId(UUID.randomUUID());
Tag tag = new Tag();
tag.setId(UUID.randomUUID());
tag.getEvents().add(event1);
data.upsert(tag);
Event event2 = new Event();
event2.setId(UUID.randomUUID());
tag.getEvents().add(event2);
data.upsert(event2);
data.upsert(tag);
}
use of com.google.recaptchaenterprise.v1beta1.Event in project requery by requery.
the class UpsertTest method testUpsertInsert.
@Test
public void testUpsertInsert() {
Event event = new Event();
UUID id = UUID.randomUUID();
event.setId(id);
event.setName("test");
data.upsert(event);
Event found = data.findByKey(Event.class, id);
assertEquals(event.getId(), found.getId());
}
use of com.google.recaptchaenterprise.v1beta1.Event in project kie-wb-common by kiegroup.
the class BaseEventPropertyReaderTest method testSLADueDate.
@Test
public void testSLADueDate() {
List<ExtensionAttributeValue> extensionValues = mockExtensionValues(DroolsPackage.Literals.DOCUMENT_ROOT__META_DATA, SLADUEDATE_ELEMENT_NAME, SLADUEDATE);
Event eventMock = getCurrentEventMock();
when(eventMock.getExtensionValues()).thenReturn(extensionValues);
assertEquals(SLADUEDATE, propertyReader.getSlaDueDate());
}
use of com.google.recaptchaenterprise.v1beta1.Event in project kie-wb-common by kiegroup.
the class BaseEventPropertyReaderTest method testGetSignalScope.
@Test
public void testGetSignalScope() {
List<ExtensionAttributeValue> extensionValues = mockExtensionValues(DroolsPackage.Literals.DOCUMENT_ROOT__META_DATA, SCOPE_ELEMENT_NAME, SCOPE);
Event eventMock = getCurrentEventMock();
when(eventMock.getExtensionValues()).thenReturn(extensionValues);
assertEquals(SCOPE, propertyReader.getSignalScope());
}
use of com.google.recaptchaenterprise.v1beta1.Event in project kie-wb-common by kiegroup.
the class IntermediateCatchEventConverterTest method setUp.
@Before
public void setUp() {
Event boundaryEvent = bpmn2.createBoundaryEvent();
boundaryEventPropertyWriter = spy(new BoundaryEventPropertyWriter((BoundaryEvent) spy(boundaryEvent), new FlatVariableScope(), new HashSet<>()));
// when(boundaryEventPropertyWriter.getFlowElement()).thenReturn(spy(FlowElement.class));
Event catchEvent = bpmn2.createIntermediateCatchEvent();
catchEventPropertyWriter = spy(new CatchEventPropertyWriter((CatchEvent) spy(catchEvent), new FlatVariableScope(), new HashSet<>()));
propertyWriterFactory = spy(PropertyWriterFactory.class);
when(propertyWriterFactory.of(any(BoundaryEvent.class))).thenReturn(boundaryEventPropertyWriter);
when(propertyWriterFactory.of(any(CatchEvent.class))).thenReturn(catchEventPropertyWriter);
generalSet = new BPMNGeneralSet(NAME, DOCUMENTATION);
assignmentsInfo = new AssignmentsInfo(ASSIGNMENTS_INFO);
dataIOSet = new DataIOSet(assignmentsInfo);
advancedData = new AdvancedData();
slaDueDate = mock(SLADueDate.class);
errorRef = mock(ErrorRef.class);
signalRef = mock(SignalRef.class);
linkRef = mock(LinkRef.class);
timerSettingsValue = mock(TimerSettingsValue.class);
timerSettings = new TimerSettings(timerSettingsValue);
messageRef = mock(MessageRef.class);
scriptTypeValue = mock(ScriptTypeValue.class);
conditionExpression = new ConditionExpression(scriptTypeValue);
escalationRef = mock(EscalationRef.class);
tested = spy(new IntermediateCatchEventConverter(propertyWriterFactory));
}
Aggregations