Search in sources :

Example 6 with BridgeDefinition

use of com.redhat.service.smartevents.infra.models.bridges.BridgeDefinition in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.

the class BridgeDAOTest method buildBridge.

private Bridge buildBridge(String id, String name) {
    Bridge bridge = new Bridge();
    bridge.setId(id);
    bridge.setCustomerId(DEFAULT_CUSTOMER_ID);
    bridge.setOrganisationId(TestConstants.DEFAULT_ORGANISATION_ID);
    bridge.setOwner(TestConstants.DEFAULT_USER_NAME);
    bridge.setName(name);
    bridge.setStatus(ACCEPTED);
    bridge.setSubmittedAt(ZonedDateTime.now());
    bridge.setShardId(TestConstants.SHARD_ID);
    bridge.setDefinition(new BridgeDefinition());
    return bridge;
}
Also used : BridgeDefinition(com.redhat.service.smartevents.infra.models.bridges.BridgeDefinition) Bridge(com.redhat.service.smartevents.manager.models.Bridge)

Aggregations

BridgeDefinition (com.redhat.service.smartevents.infra.models.bridges.BridgeDefinition)6 Bridge (com.redhat.service.smartevents.manager.models.Bridge)6 InternalPlatformException (com.redhat.service.smartevents.infra.exceptions.definitions.platform.InternalPlatformException)2 Work (com.redhat.service.smartevents.manager.models.Work)2 Transactional (javax.transaction.Transactional)2 AlreadyExistingItemException (com.redhat.service.smartevents.infra.exceptions.definitions.user.AlreadyExistingItemException)1 Action (com.redhat.service.smartevents.infra.models.gateways.Action)1 Processor (com.redhat.service.smartevents.manager.models.Processor)1 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1 MethodSource (org.junit.jupiter.params.provider.MethodSource)1