Examples of FloatArray


Examples of de.ailis.jollada.model.FloatArray

     */

    @Test(expected = IllegalArgumentException.class)
    public void testConstructorNegativeCount()
    {
        new FloatArray(-1).toString();
    }
View Full Code Here

Examples of de.ailis.jollada.model.FloatArray

     */

    @Test
    public void testSetCount()
    {
        final FloatArray array = new FloatArray(4);
        array.setValue(0, 1);
        array.setValue(1, 2);
        array.setValue(2, 3);
        array.setValue(3, 4);
        array.setCount(6);
        assertEquals(6, array.getCount());
        assertEquals(1, array.getValue(0), 0.001f);
        assertEquals(2, array.getValue(1), 0.001f);
        assertEquals(3, array.getValue(2), 0.001f);
        assertEquals(4, array.getValue(3), 0.001f);
        array.setCount(2);
        assertEquals(2, array.getCount());
        assertEquals(1, array.getValue(0), 0.001f);
        assertEquals(2, array.getValue(1), 0.001f);
    }
View Full Code Here

Examples of de.ailis.jollada.model.FloatArray

     */

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

Examples of de.ailis.jollada.model.FloatArray

     */

    @Test
    public void testId()
    {
        final FloatArray array = new FloatArray(4);
        assertNull(array.getId());
        array.setId("foo");
        assertEquals("foo", array.getId());
        array.setId(null);
        assertNull(array.getId());
    }
View Full Code Here

Examples of de.ailis.jollada.model.FloatArray

     */

    @Test
    public void testSetDigits()
    {
        final FloatArray array = new FloatArray(4);
        array.setDigits(3);
        assertEquals(3, array.getDigits());
    }
View Full Code Here

Examples of de.ailis.jollada.model.FloatArray

     */

    @Test
    public void testSetMagnitude()
    {
        final FloatArray array = new FloatArray(4);
        array.setMagnitude(40);
        assertEquals(40, array.getMagnitude());
    }
View Full Code Here

Examples of de.ailis.jollada.model.FloatArray

     */

    @Test(expected = IllegalArgumentException.class)
    public void testSetMagnitudeTooHigh()
    {
        new FloatArray(0).setMagnitude(0x8000);
    }
View Full Code Here

Examples of de.ailis.jollada.model.FloatArray

     */

    @Test(expected = IllegalArgumentException.class)
    public void testSetDigitsTooHigh()
    {
        new FloatArray(0).setDigits(0x8000);
    }
View Full Code Here

Examples of de.ailis.jollada.model.FloatArray

     */

    @Test(expected = IllegalArgumentException.class)
    public void testSetDigitsTooLow()
    {
        new FloatArray(0).setDigits(-1);
    }
View Full Code Here

Examples of de.ailis.jollada.model.FloatArray

     */

    @Test(expected = IllegalArgumentException.class)
    public void testSetMagnitudeTooLow()
    {
        new FloatArray(0).setMagnitude(-1);
    }
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.