Examples of CloudbreakEvent


Examples of com.sequenceiq.cloudbreak.domain.CloudbreakEvent

                return null;
        }
    }

    public static CloudbreakEvent createEvent(Long stackId, Long userId, String eventStatus, Date eventTimestamp) {
        CloudbreakEvent event = new CloudbreakEvent();
        event.setStackId(stackId);
        event.setEventType(eventStatus);
        event.setEventTimestamp(eventTimestamp);
        return event;
    }
View Full Code Here

Examples of com.sequenceiq.cloudbreak.domain.CloudbreakEvent

        //WHEN
        eventService.createStackEvent(1L, "STACK_CREATED", "Stack created");

        //THEN
        BDDMockito.verify(eventRepository).save(captor.capture());
        CloudbreakEvent event = captor.getValue();

        Assert.assertNotNull(event);
        Assert.assertEquals("The user name is not the expected", "John", event.getOwner());
        Assert.assertEquals("The cloudprovider is not the expected", CloudPlatform.AWS.name(), event.getCloud());
    }
View Full Code Here

Examples of com.sequenceiq.cloudbreak.domain.CloudbreakEvent

        //WHEN
        eventService.createStackEvent(1L, "STACK_CREATED", "Stack created");

        //THEN
        BDDMockito.verify(eventRepository).save(captor.capture());
        CloudbreakEvent event = captor.getValue();

        Assert.assertNotNull(event);
        Assert.assertEquals("The user name is not the expected", "John", event.getOwner());
        Assert.assertEquals("The cloudprovider is not the expected", CloudPlatform.AZURE.name(), event.getCloud());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.