// 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;
//		checkStringPrimitiveType( tc, OBJECT_TYPE + UNSIGNED_TYPE + SQL_TYPE );
	}

	@Test
	public void testBoolean() {
		System.out.println("--- ");
		TypeConverter tc = getTypeConverter() ;

		// Primitive type expected
		checkBooleanPrimitiveType(tc, NONE);
		checkBooleanPrimitiveType(tc, NOT_NULL);
		checkBooleanPrimitiveType(tc, PRIMITIVE_TYPE);
		checkBooleanPrimitiveType(tc, UNSIGNED_TYPE);
		checkBooleanPrimitiveType(tc, PRIMITIVE_TYPE + UNSIGNED_TYPE);
//		checkBooleanPrimitiveType(tc, SQL_TYPE);
//		checkBooleanPrimitiveType(tc, NOT_NULL + SQL_TYPE);
		checkBooleanPrimitiveType(tc, PRIMITIVE_TYPE + OBJECT_TYPE );
				
		// Object type expected
		checkBooleanPrimitiveType( tc, OBJECT_TYPE );
//		checkBooleanPrimitiveType( tc, OBJECT_TYPE + SQL_TYPE );
		checkBooleanPrimitiveType( tc, OBJECT_TYPE + NOT_NULL );
//		checkBooleanPrimitiveType( tc, OBJECT_TYPE + NOT_NULL + SQL_TYPE );
		checkBooleanPrimitiveType( tc, OBJECT_TYPE + UNSIGNED_TYPE );
//		checkBooleanPrimitiveType( tc, OBJECT_TYPE + UNSIGNED_TYPE + SQL_TYPE );
	}

	@Test
	public void testShort() {
		System.out.println("--- ");
// 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;

//		checkStringPrimitiveType( tc, OBJECT_TYPE + UNSIGNED_TYPE + SQL_TYPE );
	}

	@Test
	public void testBoolean() {
		System.out.println("--- ");
		TypeConverter tc = getTypeConverter() ;

		// Primitive type expected
		checkBooleanPrimitiveType(tc, NONE);
		checkBooleanPrimitiveType(tc, NOT_NULL);
		checkBooleanPrimitiveType(tc, PRIMITIVE_TYPE);
		checkBooleanPrimitiveType(tc, UNSIGNED_TYPE);
		checkBooleanPrimitiveType(tc, PRIMITIVE_TYPE + UNSIGNED_TYPE);
//		checkBooleanPrimitiveType(tc, SQL_TYPE);
//		checkBooleanPrimitiveType(tc, NOT_NULL + SQL_TYPE);
		checkBooleanPrimitiveType(tc, PRIMITIVE_TYPE + OBJECT_TYPE );
				
		// Object type expected
		checkBooleanPrimitiveType( tc, OBJECT_TYPE );
//		checkBooleanPrimitiveType( tc, OBJECT_TYPE + SQL_TYPE );
		checkBooleanPrimitiveType( tc, OBJECT_TYPE + NOT_NULL );
//		checkBooleanPrimitiveType( tc, OBJECT_TYPE + NOT_NULL + SQL_TYPE );
		checkBooleanPrimitiveType( tc, OBJECT_TYPE + UNSIGNED_TYPE );
//		checkBooleanPrimitiveType( tc, OBJECT_TYPE + UNSIGNED_TYPE + SQL_TYPE );
	}

	@Test
	public void testShort() {
		System.out.println("--- ");
		TypeConverter tc = getTypeConverter() ;