// 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 java.math.BigDecimal;
import org.junit.Test;
import org.telosys.tools.commons.JavaTypeUtil;
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 checkLocalDate( LanguageType lt ) {
		assertNotNull(lt);
		assertEquals(JavaTypeUtil.shortType(LOCAL_DATE), lt.getSimpleType() );
		assertEquals(LOCAL_DATE, lt.getFullType() );
		assertFalse ( lt.isPrimitiveType() ) ;
	}
	private void checkLocalTime( LanguageType lt ) {
		assertNotNull(lt);
		assertEquals(JavaTypeUtil.shortType(LOCAL_TIME), lt.getSimpleType() );
		assertEquals(LOCAL_TIME, lt.getFullType() );
		assertFalse ( lt.isPrimitiveType() ) ;
	}
	private void checkLocalDateTime( LanguageType lt ) {
		assertNotNull(lt);
		assertEquals(JavaTypeUtil.shortType(LOCAL_DATE_TIME), lt.getSimpleType() );
		assertEquals(LOCAL_DATE_TIME, lt.getFullType() );
		assertFalse ( lt.isPrimitiveType() ) ;
	}
	
	@Test
	public void testString() {
		System.out.println("--- ");
		TypeConverter tc = new TypeConverterForJava() ;
		
		check( getType(tc, NeutralType.STRING, NONE ), String.class);
		check( getType(tc, NeutralType.STRING, NOT_NULL ), String.class);
		
		check( getType(tc, NeutralType.STRING, PRIMITIVE_TYPE ), String.class);
// 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/TypeConverterForJavaTest.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 java.math.BigDecimal;
import org.junit.Test;
import org.telosys.tools.commons.JavaTypeUtil;
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 checkLocalDate( LanguageType lt ) {
		assertNotNull(lt);
		assertEquals(JavaTypeUtil.shortType(LOCAL_DATE), lt.getSimpleType() );
		assertEquals(LOCAL_DATE, lt.getFullType() );
		assertFalse ( lt.isPrimitiveType() ) ;
	}
	private void checkLocalTime( LanguageType lt ) {
		assertNotNull(lt);
		assertEquals(JavaTypeUtil.shortType(LOCAL_TIME), lt.getSimpleType() );
		assertEquals(LOCAL_TIME, lt.getFullType() );
		assertFalse ( lt.isPrimitiveType() ) ;
	}
	private void checkLocalDateTime( LanguageType lt ) {
		assertNotNull(lt);
		assertEquals(JavaTypeUtil.shortType(LOCAL_DATE_TIME), lt.getSimpleType() );
		assertEquals(LOCAL_DATE_TIME, lt.getFullType() );
		assertFalse ( lt.isPrimitiveType() ) ;
	}
	
	@Test
	public void testString() {
		System.out.println("--- ");
		TypeConverter tc = new TypeConverterForJava() ;
		
		check( getType(tc, NeutralType.STRING, NONE ), String.class);
		check( getType(tc, NeutralType.STRING, NOT_NULL ), String.class);
		
		check( getType(tc, NeutralType.STRING, PRIMITIVE_TYPE ), String.class);
		check( getType(tc, NeutralType.STRING, UNSIGNED_TYPE ), String.class);