// Path: bean-grid-addon/src/test/java/com/vaadin/peter/addon/beangrid/testmaterial/BeanWithDoubleDefinitions.java
// public class BeanWithDoubleDefinitions {
// 
// 	@GridColumn(translationKey = "first.name", defaultOrder = 0, defaultVisible = true)
// 	private String firstname;
// 
// 	@GridColumn(translationKey = "first.name", defaultOrder = 0, defaultVisible = true)
// 	public String getFirstname() {
// 		return firstname;
// 	}
// }
// 
// Path: bean-grid-addon/src/test/java/com/vaadin/peter/addon/beangrid/testmaterial/SimpleBean.java
// public class SimpleBean {
// 
// 	private String firstname;
// 	private String lastname;
// 
// 	@GridColumn(translationKey = "first.name", defaultOrder = 0, defaultVisible = true)
// 	public String getFirstname() {
// 		return firstname;
// 	}
// 
// 	public void setFirstname(String firstname) {
// 		this.firstname = firstname;
// 	}
// 
// 	@GridColumn(translationKey = "last.name", defaultOrder = 1, defaultVisible = true)
// 	public String getLastname() {
// 		return lastname;
// 	}
// 
// 	public void setLastname(String lastname) {
// 		this.lastname = lastname;
// 	}
// }
// 
// Path: bean-grid-addon/src/test/java/com/vaadin/peter/addon/beangrid/testmaterial/SimpleBeanFieldDefinitions.java
// public class SimpleBeanFieldDefinitions {
// 
// 	@GridColumn(translationKey = "first.name", defaultOrder = 0)
// 	private String firstname;
// 
// 	@GridColumn(translationKey = "last.name", defaultOrder = 1)
// 	private String lastname;
// 
// 	public String getFirstname() {
// 		return firstname;
// 	}
// 
// 	public String getLastname() {
// 		return lastname;
// 	}
// }
// 
// Path: bean-grid-addon/src/test/java/com/vaadin/peter/addon/beangrid/testmaterial/SimpleBeanWithBaseClass.java
// public class SimpleBeanWithBaseClass extends AbstractBaseBean {
// 
// 	private String firstname;
// 	private String lastname;
// 
// 	@GridColumn(translationKey = "first.name", defaultOrder = 2, defaultVisible = true)
// 	public String getFirstname() {
// 		return firstname;
// 	}
// 
// 	public void setFirstname(String firstname) {
// 		this.firstname = firstname;
// 	}
// 
// 	@GridColumn(translationKey = "last.name", defaultOrder = 3, defaultVisible = true)
// 	public String getLastname() {
// 		return lastname;
// 	}
// 
// 	public void setLastname(String lastname) {
// 		this.lastname = lastname;
// 	}
// }
// 
// Path: bean-grid-addon/src/test/java/com/vaadin/peter/addon/beangrid/testmaterial/SimpleBeanWithOnlyWriteMethod.java
// public class SimpleBeanWithOnlyWriteMethod {
// 
// 	@GridColumn(translationKey = "id", defaultOrder = 0)
// 	private int id;
// 
// 	public void setId(int id) {
// 		this.id = id;
// 	}
// }
// 
// Path: bean-grid-addon/src/test/java/com/vaadin/peter/addon/beangrid/testmaterial/SimpleBeanWithoutReadMethod.java
// public class SimpleBeanWithoutReadMethod {
// 
// 	@GridColumn(translationKey = "id", defaultOrder = 0)
// 	private int id;
// }


import java.time.LocalDate;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.vaadin.peter.addon.beangrid.testmaterial.BeanWithDoubleDefinitions;
import com.vaadin.peter.addon.beangrid.testmaterial.SimpleBean;
import com.vaadin.peter.addon.beangrid.testmaterial.SimpleBeanFieldDefinitions;
import com.vaadin.peter.addon.beangrid.testmaterial.SimpleBeanWithBaseClass;
import com.vaadin.peter.addon.beangrid.testmaterial.SimpleBeanWithOnlyWriteMethod;
import com.vaadin.peter.addon.beangrid.testmaterial.SimpleBeanWithoutReadMethod;
package com.vaadin.peter.addon.beangrid;




public class TestColumnDefinitions {

	private static Logger logger = LoggerFactory.getLogger(TestColumnDefinitions.class);

	@Test
	public void testColumnDefinitionLookup_simpleBeanWithMehtodDefinitions_definitionsFound() {
		List<ColumnDefinition> columnDefinitions = GridConfigurationTools.discoverColumnDefinitions(SimpleBean.class);
		Assert.assertEquals(2, columnDefinitions.size());

		Assert.assertEquals("first.name", columnDefinitions.get(0).getTranslationKey());
// Path: bean-grid-addon/src/test/java/com/vaadin/peter/addon/beangrid/testmaterial/BeanWithDoubleDefinitions.java
// public class BeanWithDoubleDefinitions {
// 
// 	@GridColumn(translationKey = "first.name", defaultOrder = 0, defaultVisible = true)
// 	private String firstname;
// 
// 	@GridColumn(translationKey = "first.name", defaultOrder = 0, defaultVisible = true)
// 	public String getFirstname() {
// 		return firstname;
// 	}
// }
// 
// Path: bean-grid-addon/src/test/java/com/vaadin/peter/addon/beangrid/testmaterial/SimpleBean.java
// public class SimpleBean {
// 
// 	private String firstname;
// 	private String lastname;
// 
// 	@GridColumn(translationKey = "first.name", defaultOrder = 0, defaultVisible = true)
// 	public String getFirstname() {
// 		return firstname;
// 	}
// 
// 	public void setFirstname(String firstname) {
// 		this.firstname = firstname;
// 	}
// 
// 	@GridColumn(translationKey = "last.name", defaultOrder = 1, defaultVisible = true)
// 	public String getLastname() {
// 		return lastname;
// 	}
// 
// 	public void setLastname(String lastname) {
// 		this.lastname = lastname;
// 	}
// }
// 
// Path: bean-grid-addon/src/test/java/com/vaadin/peter/addon/beangrid/testmaterial/SimpleBeanFieldDefinitions.java
// public class SimpleBeanFieldDefinitions {
// 
// 	@GridColumn(translationKey = "first.name", defaultOrder = 0)
// 	private String firstname;
// 
// 	@GridColumn(translationKey = "last.name", defaultOrder = 1)
// 	private String lastname;
// 
// 	public String getFirstname() {
// 		return firstname;
// 	}
// 
// 	public String getLastname() {
// 		return lastname;
// 	}
// }
// 
// Path: bean-grid-addon/src/test/java/com/vaadin/peter/addon/beangrid/testmaterial/SimpleBeanWithBaseClass.java
// public class SimpleBeanWithBaseClass extends AbstractBaseBean {
// 
// 	private String firstname;
// 	private String lastname;
// 
// 	@GridColumn(translationKey = "first.name", defaultOrder = 2, defaultVisible = true)
// 	public String getFirstname() {
// 		return firstname;
// 	}
// 
// 	public void setFirstname(String firstname) {
// 		this.firstname = firstname;
// 	}
// 
// 	@GridColumn(translationKey = "last.name", defaultOrder = 3, defaultVisible = true)
// 	public String getLastname() {
// 		return lastname;
// 	}
// 
// 	public void setLastname(String lastname) {
// 		this.lastname = lastname;
// 	}
// }
// 
// Path: bean-grid-addon/src/test/java/com/vaadin/peter/addon/beangrid/testmaterial/SimpleBeanWithOnlyWriteMethod.java
// public class SimpleBeanWithOnlyWriteMethod {
// 
// 	@GridColumn(translationKey = "id", defaultOrder = 0)
// 	private int id;
// 
// 	public void setId(int id) {
// 		this.id = id;
// 	}
// }
// 
// Path: bean-grid-addon/src/test/java/com/vaadin/peter/addon/beangrid/testmaterial/SimpleBeanWithoutReadMethod.java
// public class SimpleBeanWithoutReadMethod {
// 
// 	@GridColumn(translationKey = "id", defaultOrder = 0)
// 	private int id;
// }


// Path: bean-grid-addon/src/test/java/com/vaadin/peter/addon/beangrid/TestColumnDefinitions.java
import java.time.LocalDate;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.vaadin.peter.addon.beangrid.testmaterial.BeanWithDoubleDefinitions;
import com.vaadin.peter.addon.beangrid.testmaterial.SimpleBean;
import com.vaadin.peter.addon.beangrid.testmaterial.SimpleBeanFieldDefinitions;
import com.vaadin.peter.addon.beangrid.testmaterial.SimpleBeanWithBaseClass;
import com.vaadin.peter.addon.beangrid.testmaterial.SimpleBeanWithOnlyWriteMethod;
import com.vaadin.peter.addon.beangrid.testmaterial.SimpleBeanWithoutReadMethod;

package com.vaadin.peter.addon.beangrid;




public class TestColumnDefinitions {

	private static Logger logger = LoggerFactory.getLogger(TestColumnDefinitions.class);

	@Test
	public void testColumnDefinitionLookup_simpleBeanWithMehtodDefinitions_definitionsFound() {
		List<ColumnDefinition> columnDefinitions = GridConfigurationTools.discoverColumnDefinitions(SimpleBean.class);
		Assert.assertEquals(2, columnDefinitions.size());

		Assert.assertEquals("first.name", columnDefinitions.get(0).getTranslationKey());
		Assert.assertEquals(0, columnDefinitions.get(0).getDefaultOrderNumber());