// Path: src/main/java/org/telosys/tools/generic/model/types/AttributeTypeInfo.java
// public static final int     NONE           =  0 ;
// 
// Path: src/main/java/org/telosys/tools/generic/model/types/AttributeTypeInfo.java
// public static final int     NOT_NULL       =  1 ;
// 
// Path: src/main/java/org/telosys/tools/generic/model/types/AttributeTypeInfo.java
// public static final int     OBJECT_TYPE    =  4 ;
// 
// Path: src/main/java/org/telosys/tools/generic/model/types/AttributeTypeInfo.java
// public static final int     PRIMITIVE_TYPE =  2 ;
// 
// Path: src/main/java/org/telosys/tools/generic/model/types/AttributeTypeInfo.java
// public static final int     UNSIGNED_TYPE  =  8 ;


import static org.telosys.tools.generic.model.types.AttributeTypeInfo.NONE;
import static org.telosys.tools.generic.model.types.AttributeTypeInfo.NOT_NULL;
import static org.telosys.tools.generic.model.types.AttributeTypeInfo.OBJECT_TYPE;
import static org.telosys.tools.generic.model.types.AttributeTypeInfo.PRIMITIVE_TYPE;
import static org.telosys.tools.generic.model.types.AttributeTypeInfo.UNSIGNED_TYPE;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
	}
	private void checkTimeObjectType(TypeConverter tc, int typeInfo ) {
		checkObjectType( getType(tc, NeutralType.TIME, typeInfo ), "Date", "Date");
	}
	private void checkTimestampObjectType(TypeConverter tc, int typeInfo ) {
		checkObjectType( getType(tc, NeutralType.TIMESTAMP, typeInfo ), "Date", "Date");
	}
	
	private void checkPrimitiveType( LanguageType lt, String primitiveType, String wrapperType) {
		assertNotNull(lt);
		assertEquals(primitiveType, lt.getSimpleType() );
		assertEquals(primitiveType, lt.getFullType() );
		assertTrue ( lt.isPrimitiveType() ) ;
		assertEquals(wrapperType, lt.getWrapperType() );
	}

	private void checkObjectType( LanguageType lt, String simpleType, String fullType) {
		assertNotNull(lt);
		assertEquals(simpleType, lt.getSimpleType() );
		assertEquals(fullType,   lt.getFullType() );
		assertFalse ( lt.isPrimitiveType() ) ;
		assertEquals(fullType,   lt.getWrapperType() );
	}
	
	@Test
	public void testString() {
		System.out.println("--- ");
		TypeConverter tc = getTypeConverter() ;
		
		// Primitive type expected
// Path: src/main/java/org/telosys/tools/generic/model/types/AttributeTypeInfo.java
// public static final int     NONE           =  0 ;
// 
// Path: src/main/java/org/telosys/tools/generic/model/types/AttributeTypeInfo.java
// public static final int     NOT_NULL       =  1 ;
// 
// Path: src/main/java/org/telosys/tools/generic/model/types/AttributeTypeInfo.java
// public static final int     OBJECT_TYPE    =  4 ;
// 
// Path: src/main/java/org/telosys/tools/generic/model/types/AttributeTypeInfo.java
// public static final int     PRIMITIVE_TYPE =  2 ;
// 
// Path: src/main/java/org/telosys/tools/generic/model/types/AttributeTypeInfo.java
// public static final int     UNSIGNED_TYPE  =  8 ;


// Path: src/test/java/org/telosys/tools/generic/model/types/TypeConverterForTypeScriptTest.java
import static org.telosys.tools.generic.model.types.AttributeTypeInfo.NONE;
import static org.telosys.tools.generic.model.types.AttributeTypeInfo.NOT_NULL;
import static org.telosys.tools.generic.model.types.AttributeTypeInfo.OBJECT_TYPE;
import static org.telosys.tools.generic.model.types.AttributeTypeInfo.PRIMITIVE_TYPE;
import static org.telosys.tools.generic.model.types.AttributeTypeInfo.UNSIGNED_TYPE;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

	}
	private void checkTimeObjectType(TypeConverter tc, int typeInfo ) {
		checkObjectType( getType(tc, NeutralType.TIME, typeInfo ), "Date", "Date");
	}
	private void checkTimestampObjectType(TypeConverter tc, int typeInfo ) {
		checkObjectType( getType(tc, NeutralType.TIMESTAMP, typeInfo ), "Date", "Date");
	}
	
	private void checkPrimitiveType( LanguageType lt, String primitiveType, String wrapperType) {
		assertNotNull(lt);
		assertEquals(primitiveType, lt.getSimpleType() );
		assertEquals(primitiveType, lt.getFullType() );
		assertTrue ( lt.isPrimitiveType() ) ;
		assertEquals(wrapperType, lt.getWrapperType() );
	}

	private void checkObjectType( LanguageType lt, String simpleType, String fullType) {
		assertNotNull(lt);
		assertEquals(simpleType, lt.getSimpleType() );
		assertEquals(fullType,   lt.getFullType() );
		assertFalse ( lt.isPrimitiveType() ) ;
		assertEquals(fullType,   lt.getWrapperType() );
	}
	
	@Test
	public void testString() {
		System.out.println("--- ");
		TypeConverter tc = getTypeConverter() ;
		
		// Primitive type expected
		checkStringPrimitiveType(tc, NONE);