Examples of LightInstance


Examples of de.ailis.jollada.model.LightInstance

     */

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

Examples of de.ailis.jollada.model.LightInstance

     */

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

Examples of de.ailis.jollada.model.LightInstance

     */

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

Examples of de.ailis.jollada.model.LightInstance

     */

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

Examples of de.ailis.jollada.model.LightInstance

     */

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

Examples of de.ailis.jollada.model.LightInstance

        catch (final URISyntaxException e)
        {
            throw new ParserException(urlString + " is not a valid URI: " + e,
                e);
        }
        final LightInstance lightInstance = new LightInstance(url);
        lightInstance.setName(attributes.getValue("name"));
        lightInstance.setSid(attributes.getValue("sid"));
        this.node.getLightInstances().add(lightInstance);
        enterElement(ParserMode.INSTANCE_LIGHT);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.