Package com.sequenceiq.cloudbreak.controller.json

Examples of com.sequenceiq.cloudbreak.controller.json.SnsTopicJson


@Component
public class SnsTopicConverter extends AbstractConverter<SnsTopicJson, SnsTopic> {

    @Override
    public SnsTopicJson convert(SnsTopic entity) {
        SnsTopicJson snsTopicJson = new SnsTopicJson();
        snsTopicJson.setId(entity.getId());
        snsTopicJson.setName(entity.getName());
        snsTopicJson.setRegion(entity.getRegion());
        snsTopicJson.setTopicArn(entity.getTopicArn());
        snsTopicJson.setConfirmed(entity.isConfirmed());
        return snsTopicJson;
    }
View Full Code Here


    @Test(expected = UnsupportedOperationException.class)
    public void testConvertSnsTopicJsonToEntity() {
        // GIVEN
        // WHEN
        underTest.convert(new SnsTopicJson());
    }
View Full Code Here

    @Test
    public void testConvertSnsTopicEntityToJson() {
        // GIVEN
        // WHEN
        SnsTopicJson result = underTest.convert(snsTopic);
        // THEN
        assertEquals(result.getId(), snsTopic.getId());
        assertEquals(result.getName(), snsTopic.getName());
        assertEquals(result.getRegion(), snsTopic.getRegion());
        assertEquals(result.getTopicArn(), snsTopic.getTopicArn());
    }
View Full Code Here

TOP

Related Classes of com.sequenceiq.cloudbreak.controller.json.SnsTopicJson

Copyright © 2018 www.massapicom. 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.