Search in sources :

Example 6 with PresentationModelInfo

use of org.robobinding.codegen.presentationmodel.PresentationModelInfo in project RoboBinding by RoboBinding.

the class ItemPresentationModelTest method shouldAllDataSetPropertiesTreatedAsProperties.

@Test
public void shouldAllDataSetPropertiesTreatedAsProperties() {
    PresentationModelInfo result = processJavaFileOf(PresentationModelForDataSetProp.class);
    assertThat(result.properties().size(), is(1));
    assertThat(result.dataSetProperties().size(), is(0));
}
Also used : PresentationModelInfo(org.robobinding.codegen.presentationmodel.PresentationModelInfo) Test(org.junit.Test)

Example 7 with PresentationModelInfo

use of org.robobinding.codegen.presentationmodel.PresentationModelInfo in project RoboBinding by RoboBinding.

the class PresentationModelTest method shouldMethodForDataSetPropertyIgnored.

@Test
public void shouldMethodForDataSetPropertyIgnored() {
    PresentationModelInfo result = processJavaFileOf(MethodsForDataSetPropertyIgnored.class);
    assertThat(result.properties().size(), is(0));
}
Also used : PresentationModelInfo(org.robobinding.codegen.presentationmodel.PresentationModelInfo) Test(org.junit.Test)

Example 8 with PresentationModelInfo

use of org.robobinding.codegen.presentationmodel.PresentationModelInfo in project RoboBinding by RoboBinding.

the class PresentationModelTest method shouldInvalidEventMethodIgnored.

@Test
public void shouldInvalidEventMethodIgnored() {
    PresentationModelInfo result = processJavaFileOf(InvalidEventMethodIgnored.class);
    assertThat(result.eventMethods().size(), is(0));
}
Also used : PresentationModelInfo(org.robobinding.codegen.presentationmodel.PresentationModelInfo) Test(org.junit.Test)

Example 9 with PresentationModelInfo

use of org.robobinding.codegen.presentationmodel.PresentationModelInfo in project RoboBinding by RoboBinding.

the class PresentationModelTest method shouldInvaidPropertiesIgnored.

@Test
public void shouldInvaidPropertiesIgnored() {
    PresentationModelInfo result = processJavaFileOf(InvalidPropertiesIgnored.class);
    assertThat(result.properties().size(), is(0));
}
Also used : PresentationModelInfo(org.robobinding.codegen.presentationmodel.PresentationModelInfo) Test(org.junit.Test)

Aggregations

PresentationModelInfo (org.robobinding.codegen.presentationmodel.PresentationModelInfo)9 Test (org.junit.Test)7 Logger (org.robobinding.codegen.apt.Logger)2 WrappedTypeElement (org.robobinding.codegen.apt.element.WrappedTypeElement)2 JClassAlreadyExistsException (com.helger.jcodemodel.JClassAlreadyExistsException)1 IOException (java.io.IOException)1 ProcessingContext (org.robobinding.codegen.apt.ProcessingContext)1 RoundContext (org.robobinding.codegen.apt.RoundContext)1 DataSetPropertyInfo (org.robobinding.codegen.presentationmodel.DataSetPropertyInfo)1 ItemPresentationModelObjectClassGen (org.robobinding.codegen.presentationmodel.ItemPresentationModelObjectClassGen)1