Package org.eclipse.sapphire.tests.modeling.properties.element.TestElement

Examples of org.eclipse.sapphire.tests.modeling.properties.element.TestElement.Child


   
    public void Homogeneous_Content()
    {
        assertNull( this.element.getHomogeneous().content() );
       
        final Child child = this.element.getHomogeneous().content( true );
       
        assertNotNull( child );
        assertSame( child, this.element.getHomogeneous().content() );
    }
View Full Code Here


   
    public void Homogeneous_Content_Boolean()
    {
        assertNull( this.element.getHomogeneous().content( false ) );
       
        final Child child = this.element.getHomogeneous().content( true );
       
        assertNotNull( child );
        assertSame( child, this.element.getHomogeneous().content( false ) );
        assertSame( child, this.element.getHomogeneous().content( true ) );
    }
View Full Code Here

   
    public void Homogeneous_Content_Boolean_ElementType()
    {
        assertNull( this.element.getHomogeneous().content( false, Child.TYPE ) );
       
        final Child child = this.element.getHomogeneous().content( true, Child.TYPE );
       
        assertNotNull( child );
        assertSame( child, this.element.getHomogeneous().content( false, Child.TYPE ) );
        assertSame( child, this.element.getHomogeneous().content( true, Child.TYPE ) );
    }
View Full Code Here

    @Test
   
    public void Homogeneous_Content_Boolean_ElementType_NullType()
    {
        final Child child = this.element.getHomogeneous().content( true, (ElementType) null );
       
        assertNotNull( child );
    }
View Full Code Here

   
    public void Homogeneous_Content_Boolean_Class()
    {
        assertNull( this.element.getHomogeneous().content( false, Child.class ) );
       
        final Child child = this.element.getHomogeneous().content( true, Child.class );
       
        assertNotNull( child );
        assertSame( child, this.element.getHomogeneous().content( false, Child.class ) );
        assertSame( child, this.element.getHomogeneous().content( true, Child.class ) );
    }
View Full Code Here

    @Test
   
    public void Homogeneous_Content_Boolean_Class_NullType()
    {
        final Child child = this.element.getHomogeneous().content( true, (Class<Child>) null );
       
        assertNotNull( child );
    }
View Full Code Here

   
    public void Heterogeneous_Content_Boolean()
    {
        assertNull( this.element.getHeterogeneous().content( false ) );
       
        final Child child = this.element.getHeterogeneous().content( true, ChildVariant1.class );
       
        assertNotNull( child );
        assertSame( child, this.element.getHeterogeneous().content( false ) );
        assertSame( child, this.element.getHeterogeneous().content( true ) );
    }
View Full Code Here

    @Test
   
    public void Heterogeneous_Content_Boolean_ElementType_NullType_WithoutForce_OnEmpty()
    {
        final Child x = this.element.getHeterogeneous().content( false, (ElementType) null );
       
        assertNull( x );
    }
View Full Code Here

    {
        final ChildVariant1 x = (ChildVariant1) this.element.getHeterogeneous().content( true, ChildVariant1.TYPE );
       
        assertNotNull( x );

        final Child y = this.element.getHeterogeneous().content( false, (ElementType) null );
       
        assertNotNull( y );
        assertSame( x, y );
    }
View Full Code Here

    @Test
   
    public void Heterogeneous_Content_Boolean_Class_NullType_WithoutForce_OnEmpty()
    {
        final Child x = this.element.getHeterogeneous().content( false, (Class<ChildVariant1>) null );
       
        assertNull( x );
    }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.tests.modeling.properties.element.TestElement.Child

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.