summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/test/java/org/openecomp/sdc/be/config/DmaapConsumerConfigurationTest.java
blob: 8c19a0a48f85514c20342a76efbb2cd4164de735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package org.openecomp.sdc.be.config;

import com.google.code.beanmatchers.BeanMatchers;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;

public class DmaapConsumerConfigurationTest {

	@Test
	public void shouldHaveValidGettersAndSetters() {
		assertThat(DmaapConsumerConfiguration.class, BeanMatchers.hasValidGettersAndSetters());
	}

    @Test
    public void shouldHaveValidCtor() {
        assertThat(DmaapConsumerConfiguration.class, BeanMatchers.hasValidBeanConstructor());
    }

    @Test
    public void shouldHaveValidToString() {
        assertThat(DmaapConsumerConfiguration.class, BeanMatchers.hasValidBeanToString());
    }

    @Test
    public void shouldHaveValidGettersAndSettersNested() {
        assertThat(DmaapConsumerConfiguration.Credential.class, BeanMatchers.hasValidGettersAndSetters());
    }

    @Test
    public void shouldHaveValidCtorNested() {
        assertThat(DmaapConsumerConfiguration.Credential.class, BeanMatchers.hasValidBeanConstructor());
    }

    @Test
    public void shouldHaveValidToStringNested() {
        assertThat(DmaapConsumerConfiguration.Credential.class, BeanMatchers.hasValidBeanToString());
    }
}