Package de.ailis.jollada.model

Examples of de.ailis.jollada.model.GeometryInstance


     */

    @Test
    public void testDefaultConstructor() throws URISyntaxException
    {
        final GeometryInstance instance = new GeometryInstance(new URI("foo"));
        final MaterialBinding binding = new MaterialBinding(instance);
        assertEquals(0, binding.getParams().size());
        assertNotNull(binding.getCommonTechnique());
    }
View Full Code Here


     */

    @Test
    public void testDefaultConstructor() throws URISyntaxException
    {
        final GeometryInstance instance = new GeometryInstance(new URI("foo"));
        final MaterialBinding binding = new MaterialBinding(instance);
        final CommonMaterialBindingTechnique common = new CommonMaterialBindingTechnique(binding);
        assertEquals(0, common.getMaterialInstances().size());
    }
View Full Code Here

        catch (final URISyntaxException e)
        {
            throw new ParserException(urlString + " is not a valid URI: " + e,
                e);
        }
        this.geometryInstance = new GeometryInstance(url);
        this.geometryInstance.setName(attributes.getValue("name"));
        this.geometryInstance.setSid(attributes.getValue("sid"));
        enterElement(ParserMode.INSTANCE_GEOMETRY);
    }
View Full Code Here

     */

    @Test
    public void testDefaultConstructor() throws URISyntaxException
    {
        final GeometryInstance instance = new GeometryInstance(new URI("foo"));
        assertEquals(new URI("foo"), instance.getUrl());
        assertNull(instance.getName());
        assertNull(instance.getSid());
        assertNotNull(instance.getMaterialBinding());
    }
View Full Code Here

     */

    @Test
    public void testSid() throws URISyntaxException
    {
        final GeometryInstance instance = new GeometryInstance(new URI("foo"));
        assertNull(instance.getSid());
        instance.setSid("foo");
        assertEquals("foo", instance.getSid());
        instance.setSid(null);
        assertNull(instance.getSid());
    }
View Full Code Here

     */

    @Test
    public void testName() throws URISyntaxException
    {
        final GeometryInstance instance = new GeometryInstance(new URI("foo"));
        assertNull(instance.getName());
        instance.setName("foo");
        assertEquals("foo", instance.getName());
        instance.setName(null);
        assertNull(instance.getName());
    }
View Full Code Here

     */

    @Test
    public void testUrl() throws URISyntaxException
    {
        final GeometryInstance instance = new GeometryInstance(new URI("foo"));
        assertEquals(new URI("foo"), instance.getUrl());
        instance.setUrl(new URI("bar"));
        assertEquals(new URI("bar"), instance.getUrl());
    }
View Full Code Here

     */

    @Test(expected = IllegalArgumentException.class)
    public void testNullUrl() throws URISyntaxException
    {
        new GeometryInstance(new URI("foo")).setUrl(null);
    }
View Full Code Here

TOP

Related Classes of de.ailis.jollada.model.GeometryInstance

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.