summaryrefslogtreecommitdiffstats
path: root/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatStringConverterTest.java
blob: 3844bc81af9f808215ac3f5e8f11ae216cc898c5 (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
package org.openecomp.sdc.be.model.tosca.converters;

import static org.junit.Assert.assertEquals;

import java.util.Map;

import org.junit.Assert;
import org.junit.Test;
import org.openecomp.sdc.be.model.DataTypeDefinition;

public class HeatStringConverterTest {

	@Test
	public void convertString_strWithQuotes_returnStringAsIs() {
		String str = "'i'm string with \"quote\"'";
		String convert = HeatStringConverter.getInstance().convert(str, null, null);
		assertEquals(str, convert);
	}

	private HeatStringConverter createTestSubject() {
		return HeatStringConverter.getInstance();
	}

	
	@Test
	public void testGetInstance() throws Exception {
		HeatStringConverter result;

		// default test
		result = HeatStringConverter.getInstance();
	}

	


}