// Path: src/test/java/ch/rasc/extclassgenerator/bean/UserDataOptionsAll.java
// @Model(value = "User", allDataOptions = @AllDataOptions(associated = true))
// public class UserDataOptionsAll {
// 
// 	@ModelField
// 	public UUID id;
// 
// 	@NotEmpty
// 	@Email
// 	@Size(max = 128)
// 	public String email;
// 
// }
// 
// Path: src/test/java/ch/rasc/extclassgenerator/bean/UserDataOptionsAllAndPartial.java
// @Model(value = "User",
// 		partialDataOptions = @PartialDataOptions(associated = true, critical = false),
// 		allDataOptions = @AllDataOptions(associated = true))
// public class UserDataOptionsAllAndPartial {
// 
// 	@ModelField
// 	public UUID id;
// 
// 	@NotEmpty
// 	@Email
// 	@Size(max = 128)
// 	public String email;
// 
// }
// 
// Path: src/test/java/ch/rasc/extclassgenerator/bean/UserDataOptionsPartial.java
// @Model(value = "User", partialDataOptions = @PartialDataOptions(associated = true))
// public class UserDataOptionsPartial {
// 
// 	@ModelField
// 	public UUID id;
// 
// 	@NotEmpty
// 	@Email
// 	@Size(max = 128)
// 	public String email;
// 
// }


import org.junit.Before;
import org.junit.Test;
import ch.rasc.extclassgenerator.bean.UserDataOptionsAll;
import ch.rasc.extclassgenerator.bean.UserDataOptionsAllAndPartial;
import ch.rasc.extclassgenerator.bean.UserDataOptionsPartial;

		GeneratorTestUtil.compareExtJs4Code("UserDataOptionsAll", code, false, false);
	}

	@Test
	public void testAllDataOptionsExtJs5() {
		ModelBean modelBean = ModelGenerator.createModel(UserDataOptionsAll.class,
				IncludeValidation.ALL);
		OutputConfig outputConfig = new OutputConfig();
		outputConfig.setOutputFormat(OutputFormat.EXTJS5);
		outputConfig.setDebug(false);
		String code = ModelGenerator.generateJavascript(modelBean, outputConfig);

		GeneratorTestUtil.compareExtJs5Code("UserDataOptionsAll", code, false, false);
	}

	@Test
	public void testAllDataOptionsTouch2() {
		ModelBean modelBean = ModelGenerator.createModel(UserDataOptionsAll.class,
				IncludeValidation.ALL);
		OutputConfig outputConfig = new OutputConfig();
		outputConfig.setOutputFormat(OutputFormat.TOUCH2);
		outputConfig.setDebug(false);
		String code = ModelGenerator.generateJavascript(modelBean, outputConfig);

		GeneratorTestUtil.compareTouch2Code("UserDataOptionsAll", code, false, false);
	}

	@Test
	public void testPartialDataOptionsExtJs4() {
// Path: src/test/java/ch/rasc/extclassgenerator/bean/UserDataOptionsAll.java
// @Model(value = "User", allDataOptions = @AllDataOptions(associated = true))
// public class UserDataOptionsAll {
// 
// 	@ModelField
// 	public UUID id;
// 
// 	@NotEmpty
// 	@Email
// 	@Size(max = 128)
// 	public String email;
// 
// }
// 
// Path: src/test/java/ch/rasc/extclassgenerator/bean/UserDataOptionsAllAndPartial.java
// @Model(value = "User",
// 		partialDataOptions = @PartialDataOptions(associated = true, critical = false),
// 		allDataOptions = @AllDataOptions(associated = true))
// public class UserDataOptionsAllAndPartial {
// 
// 	@ModelField
// 	public UUID id;
// 
// 	@NotEmpty
// 	@Email
// 	@Size(max = 128)
// 	public String email;
// 
// }
// 
// Path: src/test/java/ch/rasc/extclassgenerator/bean/UserDataOptionsPartial.java
// @Model(value = "User", partialDataOptions = @PartialDataOptions(associated = true))
// public class UserDataOptionsPartial {
// 
// 	@ModelField
// 	public UUID id;
// 
// 	@NotEmpty
// 	@Email
// 	@Size(max = 128)
// 	public String email;
// 
// }


// Path: src/test/java/ch/rasc/extclassgenerator/ModelGeneratorDataOptionsTest.java
import org.junit.Before;
import org.junit.Test;
import ch.rasc.extclassgenerator.bean.UserDataOptionsAll;
import ch.rasc.extclassgenerator.bean.UserDataOptionsAllAndPartial;
import ch.rasc.extclassgenerator.bean.UserDataOptionsPartial;


		GeneratorTestUtil.compareExtJs4Code("UserDataOptionsAll", code, false, false);
	}

	@Test
	public void testAllDataOptionsExtJs5() {
		ModelBean modelBean = ModelGenerator.createModel(UserDataOptionsAll.class,
				IncludeValidation.ALL);
		OutputConfig outputConfig = new OutputConfig();
		outputConfig.setOutputFormat(OutputFormat.EXTJS5);
		outputConfig.setDebug(false);
		String code = ModelGenerator.generateJavascript(modelBean, outputConfig);

		GeneratorTestUtil.compareExtJs5Code("UserDataOptionsAll", code, false, false);
	}

	@Test
	public void testAllDataOptionsTouch2() {
		ModelBean modelBean = ModelGenerator.createModel(UserDataOptionsAll.class,
				IncludeValidation.ALL);
		OutputConfig outputConfig = new OutputConfig();
		outputConfig.setOutputFormat(OutputFormat.TOUCH2);
		outputConfig.setDebug(false);
		String code = ModelGenerator.generateJavascript(modelBean, outputConfig);

		GeneratorTestUtil.compareTouch2Code("UserDataOptionsAll", code, false, false);
	}

	@Test
	public void testPartialDataOptionsExtJs4() {
		ModelBean modelBean = ModelGenerator.createModel(UserDataOptionsPartial.class,