mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-16 11:09:33 +02:00
32 lines
695 B
Groovy
32 lines
695 B
Groovy
|
package com.sap.piper.k8s
|
||
|
|
||
|
import com.sap.piper.k8s.ContainerMap
|
||
|
import org.junit.Before
|
||
|
import org.junit.Test
|
||
|
|
||
|
import static org.junit.Assert.assertEquals
|
||
|
import static org.junit.Assert.assertNotNull
|
||
|
|
||
|
class ContainerMapTest {
|
||
|
@Before
|
||
|
void setUp() {
|
||
|
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
void testIfObjectCreated() {
|
||
|
assertNotNull(ContainerMap.instance)
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
void testSetMap() {
|
||
|
ContainerMap.instance.setMap(['testpod': ['maven:3.5-jdk-8-alpine': 'mavenexec']])
|
||
|
assertEquals(['testpod': ['maven:3.5-jdk-8-alpine': 'mavenexec']],ContainerMap.instance.getMap())
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
void testGetMap() {
|
||
|
assertNotNull(ContainerMap.instance.getMap())
|
||
|
}
|
||
|
}
|