Package de.ailis.jollada.model

Examples of de.ailis.jollada.model.MaterialBinding


    @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(expected = IllegalArgumentException.class)
    public void testNullUrl()
    {
        new MaterialBinding(null).toString();
    }
View Full Code Here

    @Test
    public void testConstructorWithParent()
    {
        final Node node = new Node();
        final MaterialBinding binding = new MaterialBinding(node);
        assertNull(binding.getDocument());
        assertSame(node, binding.getParent());
        assertNull(binding.id);
    }
View Full Code Here

     */

    @Test(expected = IllegalArgumentException.class)
    public void testConstructorWithNullParent()
    {
        new MaterialBinding(null).toString();
    }
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

TOP

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

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.