// Path: storm-apt/api/src/main/java/com/turbomanage/storm/types/BooleanConverter.java
// @Converter(forTypes = { boolean.class, Boolean.class }, bindType = BindType.INT, sqlType = SqlType.INTEGER)
// public class BooleanConverter extends TypeConverter<Boolean,Integer> {
// 
// 	public static final BooleanConverter GET = new BooleanConverter();
// 
// 	@Override
// 	public Integer toSql(Boolean javaValue) {
// 		if (javaValue == null)
// 			return null;
// 		return (javaValue==Boolean.TRUE) ? 1 : 0;
// 	}
// 
// 	@Override
// 	public Boolean fromSql(Integer sqlValue) {
// 		if (sqlValue == null)
// 			return null;
// 		return sqlValue==0 ? Boolean.FALSE : Boolean.TRUE;
// 	}
// 
// 	@Override
// 	public Integer fromString(String strValue) {
// 		if (strValue == null)
// 			return null;
// 		return Integer.valueOf(strValue);
// 	}
// 
// }
// 
// Path: storm-apt/api/src/main/java/com/turbomanage/storm/types/DoubleConverter.java
// @Converter(forTypes = { double.class, Double.class }, bindType = BindType.DOUBLE, sqlType = SqlType.REAL)
// public class DoubleConverter extends TypeConverter<Double,Double> {
// 
// 	public static final DoubleConverter GET = new DoubleConverter();
// 
// 	@Override
// 	public Double toSql(Double javaValue) {
// 		return javaValue;
// 	}
// 
// 	@Override
// 	public Double fromSql(Double sqlValue) {
// 		return sqlValue;
// 	}
// 
// 	@Override
// 	public Double fromString(String strValue) {
// 		// use long bits as hex to preserve exact value
// 		return Double.longBitsToDouble(Long.parseLong(strValue, 16));
// 	}
// 
// 	@Override
// 	public String toString(Double sqlValue) {
// 		// use long bits as hex to preserve exact value
// 		// Don't use Long.toHexString! Long.parseLong doesn't understand 2's complement
// 		return (sqlValue == null) ? null : Long.toString(Double.doubleToLongBits(sqlValue), 16);
// 	}
// }


import junit.framework.TestCase;
import com.turbomanage.storm.types.BooleanConverter;
import com.turbomanage.storm.types.DoubleConverter;
package com.turbomanage.storm.apt.converter;



public class ConverterTestCase extends TestCase {

	public void testBooleanConversions() {
// Path: storm-apt/api/src/main/java/com/turbomanage/storm/types/BooleanConverter.java
// @Converter(forTypes = { boolean.class, Boolean.class }, bindType = BindType.INT, sqlType = SqlType.INTEGER)
// public class BooleanConverter extends TypeConverter<Boolean,Integer> {
// 
// 	public static final BooleanConverter GET = new BooleanConverter();
// 
// 	@Override
// 	public Integer toSql(Boolean javaValue) {
// 		if (javaValue == null)
// 			return null;
// 		return (javaValue==Boolean.TRUE) ? 1 : 0;
// 	}
// 
// 	@Override
// 	public Boolean fromSql(Integer sqlValue) {
// 		if (sqlValue == null)
// 			return null;
// 		return sqlValue==0 ? Boolean.FALSE : Boolean.TRUE;
// 	}
// 
// 	@Override
// 	public Integer fromString(String strValue) {
// 		if (strValue == null)
// 			return null;
// 		return Integer.valueOf(strValue);
// 	}
// 
// }
// 
// Path: storm-apt/api/src/main/java/com/turbomanage/storm/types/DoubleConverter.java
// @Converter(forTypes = { double.class, Double.class }, bindType = BindType.DOUBLE, sqlType = SqlType.REAL)
// public class DoubleConverter extends TypeConverter<Double,Double> {
// 
// 	public static final DoubleConverter GET = new DoubleConverter();
// 
// 	@Override
// 	public Double toSql(Double javaValue) {
// 		return javaValue;
// 	}
// 
// 	@Override
// 	public Double fromSql(Double sqlValue) {
// 		return sqlValue;
// 	}
// 
// 	@Override
// 	public Double fromString(String strValue) {
// 		// use long bits as hex to preserve exact value
// 		return Double.longBitsToDouble(Long.parseLong(strValue, 16));
// 	}
// 
// 	@Override
// 	public String toString(Double sqlValue) {
// 		// use long bits as hex to preserve exact value
// 		// Don't use Long.toHexString! Long.parseLong doesn't understand 2's complement
// 		return (sqlValue == null) ? null : Long.toString(Double.doubleToLongBits(sqlValue), 16);
// 	}
// }


// Path: storm-apt/impl/src/test/java/com/turbomanage/storm/apt/converter/ConverterTestCase.java
import junit.framework.TestCase;
import com.turbomanage.storm.types.BooleanConverter;
import com.turbomanage.storm.types.DoubleConverter;

package com.turbomanage.storm.apt.converter;



public class ConverterTestCase extends TestCase {

	public void testBooleanConversions() {
		BooleanConverter conv = new BooleanConverter();