summaryrefslogtreecommitdiffstats
path: root/catalog-model/src/test/java/org/openecomp/sdc/be/model/ProductTest.java
blob: edde844c97dbf0f7b3313679b4e11e2e90bc204c (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
package org.openecomp.sdc.be.model;

import org.junit.Test;

import java.util.List;


public class ProductTest {

	private Product createTestSubject() {
		return new Product();
	}

	@Test
	public void testCtor() throws Exception {
		new Product(new ProductMetadataDefinition());
	}
	
	@Test
	public void testGetFullName() throws Exception {
		Product testSubject;
		String result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.getFullName();
	}

	
	@Test
	public void testSetFullName() throws Exception {
		Product testSubject;
		String fullName = "";

		// default test
		testSubject = createTestSubject();
		testSubject.setFullName(fullName);
	}

	
	@Test
	public void testGetInvariantUUID() throws Exception {
		Product testSubject;
		String result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.getInvariantUUID();
	}

	
	@Test
	public void testSetInvariantUUID() throws Exception {
		Product testSubject;
		String invariantUUID = "";

		// default test
		testSubject = createTestSubject();
		testSubject.setInvariantUUID(invariantUUID);
	}

	
	@Test
	public void testGetContacts() throws Exception {
		Product testSubject;
		List<String> result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.getContacts();
	}

	
	@Test
	public void testSetContacts() throws Exception {
		Product testSubject;
		List<String> contacts = null;

		// default test
		testSubject = createTestSubject();
		testSubject.setContacts(contacts);
	}

	
	@Test
	public void testAddContact() throws Exception {
		Product testSubject;
		String contact = "";

		// default test
		testSubject = createTestSubject();
		testSubject.addContact(contact);
	}

	
	@Test
	public void testGetIsActive() throws Exception {
		Product testSubject;
		Boolean result;

		// default test
		testSubject = createTestSubject();
		result = testSubject.getIsActive();
	}

	
	@Test
	public void testSetIsActive() throws Exception {
		Product testSubject;
		Boolean isActive = null;

		// default test
		testSubject = createTestSubject();
		testSubject.setIsActive(isActive);
	}

	

}
class="nt"></images> </configuration> <executions> <execution> <id>generate-images</id> <phase>process-sources</phase> <goals> <goal>build</goal> </goals> </execution> <execution> <id>push-images</id> <phase>deploy</phase> <goals> <goal>build</goal> <goal>push</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <executions> <execution> <id>copy-dockerfile</id> <goals> <goal>copy-resources</goal> </goals><!-- here the phase you need --> <phase>validate</phase> <configuration> <outputDirectory>${basedir}/target/docker-stage</outputDirectory> <resources> <resource> <directory>src/main/docker</directory> <includes> <include>Dockerfile</include> </includes> <filtering>true</filtering> </resource> </resources> </configuration> </execution> <execution> <id>copy-properties</id> <goals> <goal>copy-resources</goal> </goals><!-- here the phase you need --> <phase>validate</phase> <configuration> <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory> <resources> <resource> <directory>../src/main/properties</directory> <includes> <include>*.properties</include> <include>*.properties.sdnctldb01</include> </includes> <filtering>false</filtering> </resource> </resources> </configuration> </execution> <execution> <id>copy-keystores</id> <goals> <goal>copy-resources</goal> </goals><!-- here the phase you need --> <phase>validate</phase> <configuration> <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory> <resources> <resource> <directory>../src/main/stores</directory> <includes> <include>*.p12</include> </includes> <filtering>false</filtering> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>exec-maven-plugin</artifactId> <groupId>org.codehaus.mojo</groupId> <version>1.5.0</version> <executions> <execution> <id>Unzip admportal</id> <phase>generate-sources</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>/usr/bin/unzip</executable> <arguments> <argument>-d</argument> <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument> <argument>../../admportal/target/*.zip</argument> </arguments> </configuration> </execution> <execution> <id>Copy admportal config</id> <phase>generate-sources</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>/bin/cp</executable> <arguments> <argument>../../admportal/config/admportal.json</argument> <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument> </arguments> </configuration> </execution> <execution> <id>Copy admportal config1</id> <phase>generate-sources</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>/bin/cp</executable> <arguments> <argument>../../admportal/config/admportal.log4js.json</argument> <argument>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</argument> </arguments> </configuration> </execution> <execution> <id>change shell permissions</id> <phase>process-sources</phase> <goals> <goal>exec</goal> </goals> <configuration> <executable>/usr/bin/find</executable> <arguments> <argument>${basedir}/target/docker-stage/opt/onap/sdnc</argument> <argument>-name</argument> <argument>*.sh</argument> <argument>-exec</argument> <argument>chmod</argument> <argument>+x</argument> <argument>{}</argument> <argument>;</argument> </arguments> </configuration> </execution> </executions> </plugin> </plugins> </build> <organization> <name>openECOMP</name> </organization> </project>