// Path: src/main/java/org/telosys/tools/generic/model/types/AttributeTypeInfo.java
// public static final int     NONE           =  0 ;


import static org.telosys.tools.generic.model.types.AttributeTypeInfo.NONE;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
package org.telosys.tools.generic.model.types;




public class LiteralValuesProviderForJavaScriptTest {
	
	//----------------------------------------------------------------------------------
	private TypeConverter getTypeConverter() {
		return new TypeConverterForJavaScript() ;
	}
	private LiteralValuesProvider getLiteralValuesProvider() {
		return new LiteralValuesProviderForJavaScript() ;
	}
	private LanguageType getLanguageType(AttributeTypeInfo typeInfo ) {
		System.out.println( typeInfo + " --> " + typeInfo );
		LanguageType lt = getTypeConverter().getType(typeInfo);
		return lt ;
	}
	private LanguageType getLanguageType(String neutralType, int typeInfo ) {
		AttributeTypeInfo attributeTypeInfo = new AttributeTypeInfo(neutralType, typeInfo);
		System.out.println("AttributeTypeInfo : " + attributeTypeInfo);
		return getLanguageType(attributeTypeInfo);
	}
	//----------------------------------------------------------------------------------

	@Test
	public void testLiteralNull() {
		assertEquals("null", getLiteralValuesProvider().getLiteralNull() );
	}

	@Test
	public void testLiteralValuesForBOOLEAN() {
// Path: src/main/java/org/telosys/tools/generic/model/types/AttributeTypeInfo.java
// public static final int     NONE           =  0 ;


// Path: src/test/java/org/telosys/tools/generic/model/types/LiteralValuesProviderForJavaScriptTest.java
import static org.telosys.tools.generic.model.types.AttributeTypeInfo.NONE;
import org.junit.Test;
import static org.junit.Assert.assertEquals;

package org.telosys.tools.generic.model.types;




public class LiteralValuesProviderForJavaScriptTest {
	
	//----------------------------------------------------------------------------------
	private TypeConverter getTypeConverter() {
		return new TypeConverterForJavaScript() ;
	}
	private LiteralValuesProvider getLiteralValuesProvider() {
		return new LiteralValuesProviderForJavaScript() ;
	}
	private LanguageType getLanguageType(AttributeTypeInfo typeInfo ) {
		System.out.println( typeInfo + " --> " + typeInfo );
		LanguageType lt = getTypeConverter().getType(typeInfo);
		return lt ;
	}
	private LanguageType getLanguageType(String neutralType, int typeInfo ) {
		AttributeTypeInfo attributeTypeInfo = new AttributeTypeInfo(neutralType, typeInfo);
		System.out.println("AttributeTypeInfo : " + attributeTypeInfo);
		return getLanguageType(attributeTypeInfo);
	}
	//----------------------------------------------------------------------------------

	@Test
	public void testLiteralNull() {
		assertEquals("null", getLiteralValuesProvider().getLiteralNull() );
	}

	@Test
	public void testLiteralValuesForBOOLEAN() {
		LanguageType lt = getLanguageType(NeutralType.BOOLEAN, NONE );