Package de.ailis.jollada.model

Examples of de.ailis.jollada.model.DataFlowSource


     */

    @Test
    public void testConstructor()
    {
        final DataFlowSource source = new DataFlowSource("ID");
        assertEquals("ID", source.getId());
        assertNull(source.getAsset());
        assertNull(source.getCommonTechnique());
        assertNull(source.getName());
        assertNull(source.getArray());
    }
View Full Code Here


     */

    @Test(expected = IllegalArgumentException.class)
    public void testConstructorWithNull()
    {
        new DataFlowSource(null).toString();
    }
View Full Code Here

     */

    @Test
    public void testId()
    {
        final DataFlowSource param = new DataFlowSource("ID");
        param.setId("foo");
        assertEquals("foo", param.getId());
    }
View Full Code Here

     */

    @Test(expected = IllegalArgumentException.class)
    public void testSetIdWithNull()
    {
        final DataFlowSource source = new DataFlowSource("ID");
        source.setId(null);
    }
View Full Code Here

     */

    @Test
    public void testName()
    {
        final DataFlowSource source = new DataFlowSource("ID");
        assertNull(source.getName());
        source.setName("foo");
        assertEquals("foo", source.getName());
        source.setName(null);
        assertNull(source.getName());
    }
View Full Code Here

     */

    @Test
    public void testAsset()
    {
        final DataFlowSource source = new DataFlowSource("ID");
        assertNull(source.getAsset());
        source.setAsset(new Asset());
        assertNotNull(source.getAsset());
        source.setAsset(null);
        assertNull(source.getAsset());
    }
View Full Code Here

     */

    @Test
    public void testArray()
    {
        final DataFlowSource source = new DataFlowSource("ID");
        source.setArray(null);
        assertNull(source.getArray());
        final Array array = new IntArray(16);
        source.setArray(array);
        assertSame(array, source.getArray());
        source.setArray(null);
        assertNull(source.getArray());
    }
View Full Code Here

     */

    @Test
    public void testCommonSourceTechnique() throws URISyntaxException
    {
        final DataFlowSource source = new DataFlowSource("ID");
        source.setCommonTechnique(null);
        assertNull(source.getCommonTechnique());
        final CommonSourceTechnique technique = new CommonSourceTechnique(
            new Accessor(new URI("SOURCE"), 0));
        source.setCommonTechnique(technique);
        assertSame(technique, source.getCommonTechnique());
        source.setCommonTechnique(null);
        assertNull(source.getCommonTechnique());
    }
View Full Code Here

     */

    private void enterMeshDataSource(final Attributes attributes)
    {
        final String id = attributes.getValue("id");
        this.dataSource = new DataFlowSource(id);
        this.dataSource.setName(attributes.getValue("name"));
        enterElement(ParserMode.MESH_DATA_SOURCE);
    }
View Full Code Here

     */

    private void enterAnimationDataSource(final Attributes attributes)
    {
        final String id = attributes.getValue("id");
        this.dataSource = new DataFlowSource(id);
        this.dataSource.setName(attributes.getValue("name"));
        enterElement(ParserMode.ANIMATION_DATA_SOURCE);
    }
View Full Code Here

TOP

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

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.