Package test.sample.valid

Examples of test.sample.valid.ElementOrAttributeNotPresent


    }

    public void testNullReturnValues() throws Exception
    {
        final Element element = this.getRootElement( "/correct/test1.xml" );
        final ElementOrAttributeNotPresent cfg = XML2Java.bind( element, ElementOrAttributeNotPresent.class );

        Assert.assertNull( "Expected null", cfg.getNoSuchAttribute() );
        Assert.assertNull( "Expected null", cfg.getNoSuchElement() );
        Assert.assertTrue( "Expected zero length array", cfg.getNoSuchElementAsArray().length == 0 );
    }
View Full Code Here


    }

    public void testObjectMethods() throws Exception
    {
        final Element element = this.getRootElement( "/correct/test1.xml" );
        final ElementOrAttributeNotPresent cfg1 = XML2Java.bind( element, ElementOrAttributeNotPresent.class );
        final ElementOrAttributeNotPresent cfg2 = XML2Java.bind( element, ElementOrAttributeNotPresent.class );

        Assert.assertNotNull( cfg1.toString() );
        Assert.assertNotNull( cfg2.toString() );
        Assert.assertFalse( "Two different proxies can't have the same hashcode", cfg1.hashCode() == cfg2.hashCode() );
        Assert.assertFalse( "Two different proxies can't be the same", cfg1.equals( cfg2 ) );
    }
View Full Code Here

TOP

Related Classes of test.sample.valid.ElementOrAttributeNotPresent

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.